backgroundTaskManager Error Codes
NOTE
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.
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
Parcel operation failed.
Possible Causes
An exception occurs when invoking the MessageParcel object to read or write an object.
Solution
Try again later or restart the device.
9800003 IPC Failure
Error Message
IPC failed.
Possible Causes
IPC fails.
Solution
Try again later or restart the device.
9800004 System Service Failure
Error Message
System service operation failed.
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.
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.
- A non-PC device requests the continuous task KEEPING_TASK, which is available only for PCs.
- A third-party application requests the continuous task WIFI_INTERACTION or VOIP, which is available only for system applications.
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.
9800006 Notification Verification Failure
Error Message
Notification verification failed.
Possible Causes
- The continuous task resources cached in the resource subsystem fail to be loaded.
- The notification subsystem functions abnormally.
Solution
- Check for the continuous task resources ohos.backgroundtaskmgr.resources.
- Try again later or restart the device.
9800007 Continuous Task Storage Failure
Error Message
Task storage failed.
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.
9900001 Caller Information Verification Failure for a Transient Task
Error Message
Caller information verification failed for a transient task.
Possible Causes
- Failed to obtain the UID or PID of the caller.
- Failed to obtain the bundle name of the caller.
- The request ID passed in the API used to cancel the transient task is invalid.
Solution
- Check whether the application UID exists.
- Check whether the application has requested a transient task.
- Try again later or restart the device.
9900002 Continuous Task Verification Failure
Error Message
Transient task verification failed.
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.
18700001 Caller Information Verification Failure for an Energy Resource Request
Error Message
Caller information verification failed when applying for efficiency resources.
Possible Causes
- Failed to obtain the UID or PID of the caller.
- The value of **resourceTypes **for requesting energy resources exceeds the upper limit.
Solution
Check the input parameters.