• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Enterprise Device Management 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## 9200001 DeviceAdmin Not Enabled
8
9**Error Message**
10
11The application is not an administrator application of the device.
12
13**Description**
14
15This error code is reported when the caller is not an enabled device administrator application.
16
17**Possible Causes**
18
19The enterprise device management APIs can be called only by a device administrator application that has been enabled.
20
21**Solution**
22
23Check whether the caller is a device administrator application enabled.
24
25## 9200002 Permission Denied
26
27**Error Message**
28
29The administrator application does not have permission to manage the device.
30
31**Description**
32
33This error code is reported when the device administrator application does not have the permission to invoke the API.
34
35**Possible Causes**
36
37A device administrator application calls an API that is accessible only by a super device administrator application.
38
39**Solution**
40
41Check that the device administrator type enabled for the caller is the same as that required by the API.
42
43## 9200003 Invalid Administrator Ability Component
44
45**Error Message**
46
47The administrator ability component is invalid.
48
49**Description**
50
51This error code is reported when the specified device manager ability component is invalid.
52
53**Possible Causes**
54
55The specified administrator ability component is invalid due to any of the following causes:
561. The administrator ability component does not exist when the device administrator application is enabled.
572. The administrator ability component is not a valid enterprise administrator ability component.
58
59**Solution**
60
611. Check that the name of the administrator ability component is included in the application bundle when the application is enabled as a device administrator application.
622. Check that the administrator ability component inherits the **EnterpriseAdminExtensionAbility** component defined by the enterprise device management framework.
63
64## 9200004 Failed to Enable the Device Administrator Application
65
66**Error Message**
67
68Failed to activate the administrator application of the device.
69
70**Description**
71
72This error code is reported when an application fails to be enabled as a device administrator application.
73
74**Possible Causes**
75
76The possible causes are as follows:
771. Multiple applications are enabled as the super device administrator application.
782. The application has been enabled as a device administrator application, but the administrator type has changed.
793. Multiple device administrator ability components are enabled for the same application.
80
81**Solution**
82
831. Check that only one super device administrator application exists.
842. Check whether the current application has been enabled as a device administrator with a different device administrator type. If yes, disable the device administrator application and try again.
853. Check whether a device administrator ability component has been enabled for the application. Only one device administrator ability component can be enabled for an application.
86
87## 9200005 Failed to Disable the Device Administrator Application
88
89**Error Message**
90
91Failed to deactivate the administrator application of the device.
92
93**Description**
94
95This error code is reported when the operation for disabling a device administrator application fails or another administrator application is disabled.
96
97**Possible Causes**
98
99The possible causes are as follows:
1001. The application to be disabled has not been enabled.
1012. Another administrator application is disabled.
102
103**Solution**
104
1051. Check that the target device administrator application has been enabled.
1062. Check that the specified device administrator ability component of the target device administrator application has been enabled.
1073. Check that the device administrator application to be disabled is the caller itself.
108
109## 9200006 Invalid User ID
110
111**Error Message**
112
113The specified user ID is invalid.
114
115**Description**
116
117This error code is reported when the specified user ID does not exist or the specified user ID is different from the caller's user ID.
118
119**Possible Causes**
120
121The possible causes are as follows:
1221. The user ID specified for setting a user policy does not exist.
1232. The specified user ID is different from the caller user ID.
124
125**Solution**
126
1271. Check that the specified user ID is valid.
1282. Check that caller's user ID is the same as the specified user ID. If the application is a device administrator application, policies cannot be set across users.
129
130## 9200007 System Ability Error
131
132**Error Message**
133
134The system ability works abnormally.
135
136**Description**
137
138This error code is reported when the enterprise device management ability is not working properly.
139
140**Possible Causes**
141
142The possible causes are as follows:
1431. The EnterpriseAdminAbility is not started.
1442. The RPC object for enterprise device management cannot be obtained.
1453. Other abilities, on which the EnterpriseAdminAbility depends, are not started, or the RPC object cannot be obtained.
1464. A system exception occurs during the running of EnterpriseAdminAbility.
147
148**Solution**
149
150Try again later or restart the device.
151
152## 9200008 Invalid System Subscription Event
153
154**Error Message**
155
156The specified system event is invalid.
157
158**Description**
159
160This error code is reported when the enterprise device management module does not support subscription to the specified event or the specified event is invalid.
161
162**Possible Causes**
163
164The enterprise device management module does not support subscription to the specified event or the specified event is invalid.
165
166**Solution**
167
168Check that the specified event is valid and supported by the enterprise device management module.
169
170## 9200009 Failed to Grant Permissions to an Application
171
172**Error Message**
173
174Failed to grant the permission to the application.
175
176**Description**
177
178This error code is reported when the super device administrator application fails to grant administrator rights to other applications.
179
180**Possible Causes**
181
182The target application is not installed by the administrator.
183
184**Solution**
185
186Check that the target application has been installed by the administrator.
187
188## 9200010 Policy Conflict
189
190**Error Message**
191
192A conflict policy has been configured.
193
194**Description**
195
196This error code is reported when a conflict policy is being delivered.
197
198**Possible Causes**
199
200A conflict policy is defined and to be delivered.
201
202**Solution**
203
204Resolve the conflict, and then deliver the policy.
205
206<!--Del-->
207## 9200011 Failed to Replace the Device Administrator Application
208
209**Error Message**
210
211Failed to replace the administrator application of the device.
212
213**Description**
214
215Failed to replace the device administrator application.
216
217**Possible Causes**
218
219The specified application is a delegated or authorized device administrator application or a common device administrator application. It cannot be a super administrator application.
220
221**Solution**
222
2231. Call [disableSuperAdmin](js-apis-enterprise-adminManager-sys.md#adminmanagerdisablesuperadmin) to disable the super device management permission of a specified application.
2242. Call [disableAdmin](js-apis-enterprise-adminManager.md#adminmanagerdisableadmin) to disable the common device management permission of a specified application.
225<!--DelEnd-->
226
227## 9201001 Failed to Manage the Certificate
228
229**Error Message**
230
231Failed to manage the certificate.
232
233**Description**
234
235This error code is reported when the super device administrator application fails to install or uninstall a user certificate.
236
237**Possible Causes**
238
239The user certificate is incorrect.
240
241**Solution**
242
243Check that the user certificate is correct.
244
245## 9201002 Failed to Install the Application
246
247**Error Message**
248
249Failed to install the application.
250
251**Description**
252
253This error code is reported when a device administrator application fails to install an enterprise app.
254
255**Possible Causes**
256
257The possible causes are as follows:
2581. The application installation path is empty or invalid, or does not exist.
2592. The operation attempts to install multiple apps with different bundle names.
2603. The application to be installed already exists when the installation parameter flag is 0.
2614. The user ID is invalid.
262
263**Solution**
264
2651. Check that the application installation path is valid.
2662. Check that all the installation parameters are valid.
2673. Check that the same application is installed.
268
269## 9201003 Failed to Add an Account
270
271**Error Message**
272
273Failed to add an OS account.
274
275**Description**
276
277This error code is reported when an account fails to be added.
278
279**Possible Causes**
280
281The possible causes are as follows:
282
2831. The account already exists.
2842. The account name is invalid.
2853. The network is not connected when the account is added.
2864. The system does not support multiple accounts.
287
288**Solution**
289
2901. Check whether the account name exists. If yes, change the account name and try again.
2912. Check that the account name is valid.
2923. Check that the network is connected when the account is added.
293
294## 9201004 Update Package Not Exist or Fails to be Parsed
295
296**Error Message**
297
298The update packages do not exist or analyzing failed.
299
300**Description**
301
302This error code is reported when the enterprise device administrator application fails to notify the system of the package update.
303
304**Possible Causes**
305
306The possible causes are as follows:
307
3081. The system update package does not exist.
3092. The verification of the system update package name fails.
3103. The system update package fails to be opened.
3114. The system update package fails to be parsed.
312
313**Solution**
314
3151. Check whether the system update package exists.
3162. Check whether the name of the system update package is valid.
3173. Check whether the system update package is readable.
3184. Check whether the system update package is complete.
319
320## 9201005 Failed to Add an Application Kept Alive
321
322**Error Message**
323
3241. Add keep alive applications failed.
325
326**Description**
327
328This error code is reported when an application kept alive fails to be added.
329
330**Possible Causes**
331
332The possible causes are as follows:
333
3341. The application is not installed.
3352. The application does not have the MainAbility.
3363. The application does not have the tray service.
3374. The application is not added to the tray.
3385. The current device does not support adding applications kept alive.
339
340**Solution**
341
3421. Check whether the application is installed.
3432. Check whether the application has the MainAbility.
3443. Check whether the application has the tray service.
3454. Check whether the application has been added to the tray.
346