This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
9800001 Memory Operation Failure
Error Message
Memory operation failed.
Description
This error code is reported when a memory operation fails.
Possible Causes
- A memory leak occurs.
- The system memory is insufficient.
Solution
- Release the memory.
- Check whether memory leak occurs.
9800002 Parcel Operation Failure
Error Message
Failed to write data into parcel. Possible reasons: 1. Invalid parameters; 2. Failed to apply for memory.
Description
When an API related to a continuous task is called, the read or write operation fails during IPC.
Possible Causes
-
The data object fails to be read or written during IPC.
-
The memory fails to be allocated for the read or write operation.
During RPC, the sender can use the write() method provided by MessageParcel to write data in specific format to a MessageParcel object. The receiver can use the read() method provided by MessageParcel to read data in specific format from a MessageParcel object.
Solution
Try again later or restart the device.
9800003 IPC Failure
Error Message
Internal transaction failed.
Description
This error code is reported when IPC fails.
Possible Causes
IPC fails.
Solution
Try again later or restart the device.
9800004 System Service Failure
Error Message
System service operation failed.
Description
When an API related to a continuous task is called, the client process fails to request the system service.
Possible Causes
- The system service is not started.
- The system service is abnormal.
Solution
Try again later or restart the device.
9800005 Continuous Task Verification Failure
Error Message
Continuous task verification failed.
Description
This error code is reported when continuous task verification fails.
Possible Causes
- The application repeatedly requests a continuous task.
- The application repeatedly cancels a continuous task.
- The value of bgMode is invalid because no continuous task type is configured for backgroundModes in the application's configuration file.
- Only specific devices can request continuous tasks of the TASK_KEEPING type.
- The main type or subtype of the continuous task is not configured.
- The main type and subtype of the continuous task are not of the same length or type.
- The main type or subtype of the continuous task is not defined.
- The input continuousTaskId is invalid.
- The data transmission type does not support notification combination.
- The continuous task notification does not exist and cannot be combined.
- Neither the current continuous task nor the target continuous task supports notification combination.
- The continuous task types of the combined notifications are inconsistent.
- The application has not obtained ACL authorization when requesting the TASK_KEEPING continuous task.
- The data transmission type does not support updating the continuous task type via the update API.
- A new continuous task type (other than audio playback) is requested in the background.
- The application has not obtained ACL authorization when requesting a continuous task of the MODE_SPECIAL_SCENARIO_PROCESSING type.
Solution
- Check the application code.
- Check whether the application has the system permissions.
- Check the type of the device where the application is located.
- Check the value of backgroundModes.
- Check whether the main type and subtype of the continuous task are configured.
- Check whether the main type and subtype of the continuous task are of the same length or whether their types match.
- Check whether the main type and subtype of the continuous task are out of range.
- Check whether the input continuousTaskId parameter is valid.
- During notification combination, check whether the requested continuous task type includes the data transmission type.
- During notification combination, check whether the continuous task notification exists.
- During notification combination, confirm whether the current continuous task or the target continuous task supports notification combination.
- During notification combination, check whether the continuous task types are consistent.
- When applying for the TASK_KEEPING continuous task, verify whether the ACL authorization for ohos.permission.KEEP_BACKGROUND_RUNNING_SYSTEM has been obtained.
- When updating the continuous task, check whether either the original type or the new type includes the data transmission type.
- Check if any background continuous tasks are being requested, other than audio playback or continuous tasks that have already been requested in the foreground.
- Check whether the application has obtained the ohos.permission.KEEP_BACKGROUND_RUNNING_SPECIAL_SCENARIO or ohos.permission.KEEP_BACKGROUND_RUNNING_SYSTEM ACL authorization when requesting a continuous task of the MODE_SPECIAL_SCENARIO_PROCESSING type.
9800006 Notification Verification Failure for a Continuous Task
Error Message
Notification verification failed for a continuous task.
Description
This error code is reported when notification verification in a continuous task fails.
Possible Causes
- The continuous task resources cached in the resource subsystem fail to be loaded.
- The notification subsystem functions abnormally.
Solution
- Check whether the continuous task resource ohos.backgroundtaskmgr.resources exists.
- Try again later or restart the device.
9800007 Continuous Task Storage Failure
Error Message
Continuous task storage failed.
Description
This error code is reported when information storage in a continuous task fails.
Possible Causes
- Failed to create a file to store the task information.
- Failed to obtain the file path.
- Failed to open the file that stores the task information.
Solution
- Check the /data/service/el1/public/background_task_mgr/running_task file.
- Try again later or restart the device.
9900002 Transient Task Verification Failure
Error Message
Transient task verification failed.
Description
This error code is reported when transient task verification fails.
Possible Causes
- The callback passed in requestSuspendDelay() already exists.
- The callback passed in cancelSuspendDelay() does not exist.
- The application attempts to request a transient task 5 seconds after it switches to the background.
- The application has already requested three transient tasks.
- The application's daily quota for transient tasks is used up.
Solution
- Check the application code.
- The application should cancel transient tasks immediately after they are complete.
9900003 Parcel Operation Failure
Error Message
Failed to write data into parcel. Possible reasons: 1. Invalid parameters; 2. Failed to apply for memory.
Description
When an API related to a transient task is called, the read or write operation fails during IPC.
Possible Causes
-
The data object fails to be read or written during IPC.
-
The memory fails to be allocated for the read or write operation.
During RPC, the sender can use the write() method provided by MessageParcel to write data in specific format to a MessageParcel object. The receiver can use the read() method provided by MessageParcel to read data in specific format from a MessageParcel object.
Solution
Try again later or restart the device.
9900004 System Service Failure
Error Message
System service operation failed.
Description
When an API related to a transient task is called, the client process fails to request the system service.
Possible Causes
- The system service is not started.
- The system service is abnormal.
Solution
Try again later or restart the device.