目录

ArkTS API Error Codes

This section describes only module-specific error codes. For details about universal error codes, please refer to Universal Error Codes. If the fault persists, submit a ticket online. Huawei will get back to you as soon as possible.

1023801001 System Internal Error

Error message

System service exception.

Error description

A system internal error has occurred.

Possible causes

The system is in an insecure state (for example, the device is not unlocked), or there is a hardware failure.

Solution

  1. Ensure that the system status is normal and try again.
  2. If the fault persists, submit a ticket online.

1023802001 Target File Not Exist

Error message

File not found.

Error description

The file in does not exist in the target path.

Possible causes

The target path is incorrectly configured or the file has been deleted.

Solution

Verify the target path and file status.

1023802002 Path Cannot Be Accessed or Handled

Error message

Access and disposal denied for this path.

Error description

The target path cannot be accessed or handled.

Possible causes

The target path does not meet the file access restrictions or file handling restrictions, such as permission levels and app sandbox restrictions.

Solution

Check whether the path meets the access and handling restrictions.

1023802003 File Name Conflict

Error message

A file with the same name already exists in the restored path.

Error description

Duplicate file names exist in the restoration path.

Possible causes

The restoration fails because new and old files have the same name.

Solution

Check whether duplicate file names exist in the restoration path. You can rename the files or delete the old files to rectify the fault.

1023803001 Attempting to Access Files of Other Users

Error message

Access to other users' files is restricted.

Error description

The target path contains files of other users.

Possible causes

The file resources are not under the current user account.

Solution

Verify the identity of the current user and change the path to a valid one.

1023804001 Invalid File Type

Error message

Invalid file type.

Error description

The file type in the target path is invalid.

Possible causes

Currently, only single files can be handled. Directories are not supported.

Solution

Check whether the path contains a single file. If not, change the target to a single file and perform the operation again.

1023804002 Handling Not Supported

Error message

Disposal is not supported. Please handle it manually.

Error description

The target path cannot be handled.

Possible causes

The target path is the app package path. You are advised to handle it in the following ways:

  1. Prohibit the app from running.
  2. Uninstall the app.

Solution

Check whether the path is the app package path and select a proper handling method. For details about the handling methods, see file access restrictions and file handling restrictions.

1023804003 Invalid Operation

Error message

Invalid operation.

Error description

The requested isolation ID is invalid.

Possible causes

The requested ID is in an incorrect format or is invalid.

Solution

Check whether the isolation ID is the same as that stored in the app and whether the file corresponding to the isolation ID is in the isolated state (that is, there is an isolation record that has not been released).

1023805001 Insufficient Space in Isolation Zone

Error message

Quarantine storage space is full.

Error description

The space in the isolation zone is insufficient.

Possible causes

The disk in the isolation zone is full or has reached the upper capacity limit.

Solution

  1. Check the space usage and status of the current isolation zone.
  2. Use the removeIsolatedFile API to clear the space of the isolation area.

1023806001 Database Corrupted

Error message

Database corruption detected.

Error description

The database is corrupted.

Possible causes

The table structure is abnormal or the connection fails.

Solution

  1. Run preliminary self-check commands or view logs to obtain detailed error information.
  2. If the fault persists, submit a ticket online.

1023807001 Process Not Exist

Error message

Process not found.

Error description

The process to be handled does not exist or has stopped running.

Possible causes

The process ID is incorrect or the process has exited.

Solution

Ensure that the input process ID is correct. You are advised to use the task manager or other tools to verify the actual PID of the target process.

1023807002 System Processes Cannot Be Handled

Error message

Access and disposal are denied for this process.

Error description

The target process is a key system process and cannot be handled.

Possible causes

The process is a system process and cannot be handled.

Solution

If the target process is not a system process, submit a ticket online.

1023807003 Other User's Process Cannot Be Handled

Error message

Access to other users' processes is not allowed.

Error description

The target process belongs to another user, and the current user does not have the permission to handle the process.

Possible causes

The target process is started by another user.

Solution

Check whether the target process ID belongs to the current user.