• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# backgroundTaskManager Error Codes
2
3> **NOTE**
4>
5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](errorcode-universal.md).
6
7## 9800001 Memory Operation Failure
8
9**Error Message**
10
11Memory operation failed.
12
13**Possible Causes**
14
151. A memory leak occurs.
162. The system memory is insufficient.
17
18**Solution**
19
201. Release the memory.
212. Check whether memory leak occurs.
22
23## 9800002 Parcel Operation Failure
24
25**Error Message**
26
27Parcel operation failed.
28
29**Possible Causes**
30
31An exception occurs when invoking the **MessageParcel** object to read or write an object.
32
33**Solution**
34
35Try again later or restart the device.
36
37## 9800003 IPC Failure
38
39**Error Message**
40
41Inner transact failed.
42
43**Possible Causes**
44
45IPC fails.
46
47**Solution**
48
49Try again later or restart the device.
50
51## 9800004 System Service Failure
52
53**Error Message**
54
55System service operation failed.
56
57**Possible Causes**
58
591. The system service is not started.
602. The system service is abnormal.
61
62**Solution**
63
64Try again later or restart the device.
65
66## 9800005 Continuous Task Verification Failure
67
68**Error Message**
69
70Background task verification failed.
71
72**Possible Causes**
73
741. The application repeatedly requests a continuous task.
752. The application repeatedly cancels a continuous task.
763. The value of **bgMode** is invalid because no continuous task type is configured for **backgroundModes** in the application's configuration file.
774. A non-PC device requests the continuous task **KEEPING_TASK**, which is available only for PCs.
78
79**Solution**
80
811. Check the application code.
822. Check whether the application has the system permissions.
833. Check the type of the device where the application is located.
844. Check the value of **backgroundModes**.
85
86## 9800006 Notification Verification Failure
87
88**Error Message**
89
90Notification verification failed.
91
92**Possible Causes**
93
941. The continuous task resources cached in the resource subsystem fail to be loaded.
952. The notification subsystem functions abnormally.
96
97**Solution**
98
991. Check for the continuous task resources **ohos.backgroundtaskmgr.resources**.
1002. Try again later or restart the device.
101
102## 9800007 Continuous Task Storage Failure
103
104**Error Message**
105
106Task storage failed.
107
108**Possible Causes**
109
1101. Failed to create a file to store the task information.
1112. Failed to obtain the file path.
1123. Failed to open the file that stores the task information.
113
114**Solution**
115
1161. Check the **/data/service/el1/public/background_task_mgr/running_task** file.
1172. Try again later or restart the device.
118
119## 9900001 Caller Information Verification Failure for a Transient Task
120
121**Error Message**
122
123Caller information verification failed.
124
125**Possible Causes**
126
1271. Failed to obtain the UID or PID of the caller.
1282. Failed to obtain the bundle name of the caller.
1293. The request ID passed in the API used to cancel the transient task is invalid.
130
131**Solution**
132
1331. Check whether the application UID exists.
1342. Check whether the application has requested a transient task.
1353. Try again later or restart the device.
136
137## 9900002 Continuous Task Verification Failure
138
139**Error Message**
140
141Background task verification failed.
142
143**Possible Causes**
144
1451. The callback passed in **requestSuspendDelay()** already exists.
1462. The callback passed in **cancelSuspendDelay()** does not exist.
1473. The application attempts to request a transient task 5 seconds after it switches to the background.
1484. The application has already requested three transient tasks.
1495. The application's daily quota for transient tasks is used up.
150
151**Solution**
152
1531. Check the application code.
1542. The application should cancel transient tasks immediately after they are complete.
155
156## 18700001 Caller Information Verification Failure for an Energy Resource Request
157
158**Error Message**
159
160Caller information verification failed.
161
162**Possible Causes**
163
1641. Failed to obtain the UID or PID of the caller.
1652. The value of **resourceTypes **for requesting energy resources exceeds the upper limit.
166
167**Solution**
168
169Check the input parameters.
170