1e41f4b71Sopenharmony_ci# Enterprise Device Management Error Codes
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci> **NOTE**
4e41f4b71Sopenharmony_ci>
5e41f4b71Sopenharmony_ci> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci## 9200001 DeviceAdmin Not Enabled
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci**Error Message**
10e41f4b71Sopenharmony_ci
11e41f4b71Sopenharmony_ciThe application is not an administrator application of the device.
12e41f4b71Sopenharmony_ci
13e41f4b71Sopenharmony_ci**Description**
14e41f4b71Sopenharmony_ci
15e41f4b71Sopenharmony_ciThis error code is reported when the caller is not an enabled device administrator application.
16e41f4b71Sopenharmony_ci
17e41f4b71Sopenharmony_ci**Possible Causes**
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ciThe enterprise device management APIs can be called only by a device administrator application that has been enabled.
20e41f4b71Sopenharmony_ci
21e41f4b71Sopenharmony_ci**Solution**
22e41f4b71Sopenharmony_ci
23e41f4b71Sopenharmony_ciCheck whether the caller is a device administrator application that is enabled.
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci## 9200002 Permission Denied
26e41f4b71Sopenharmony_ci
27e41f4b71Sopenharmony_ci**Error Message**
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ciThe administrator application does not have permission to manage the device.
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci**Description**
32e41f4b71Sopenharmony_ci
33e41f4b71Sopenharmony_ciThis error code is reported when the device administrator application does not have the permission to call the API.
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ci**Possible Causes**
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ciA device administrator application calls an API that is accessible only by a super administrator application.
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ci**Solution**
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ciCheck that the device administrator type enabled for the caller is the same as that required by the API.
42e41f4b71Sopenharmony_ci
43e41f4b71Sopenharmony_ci## 9200003 Invalid Administrator Ability Component
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci**Error Message**
46e41f4b71Sopenharmony_ci
47e41f4b71Sopenharmony_ciThe administrator ability component is invalid.
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci**Description**
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ciThis error code is reported when the specified device manager ability component is invalid.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci**Possible Causes**
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ciThe specified administrator ability component is invalid due to any of the following causes:
56e41f4b71Sopenharmony_ci1. The administrator ability component does not exist when the device administrator application is enabled.
57e41f4b71Sopenharmony_ci2. The administrator ability component is not a valid enterprise administrator ability component.
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci**Solution**
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ci1. 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.
62e41f4b71Sopenharmony_ci2. Check that the administrator ability component inherits from the **EnterpriseAdminExtensionAbility** component defined by the enterprise device management framework.
63e41f4b71Sopenharmony_ci
64e41f4b71Sopenharmony_ci## 9200004 Failed to Enable the Device Administrator Application
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ci**Error Message**
67e41f4b71Sopenharmony_ci
68e41f4b71Sopenharmony_ciFailed to activate the administrator application of the device.
69e41f4b71Sopenharmony_ci
70e41f4b71Sopenharmony_ci**Description**
71e41f4b71Sopenharmony_ci
72e41f4b71Sopenharmony_ciThis error code is reported when an application fails to be enabled as a device administrator application.
73e41f4b71Sopenharmony_ci
74e41f4b71Sopenharmony_ci**Possible Causes**
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_ci1. Multiple applications are enabled as the super device administrator application.
77e41f4b71Sopenharmony_ci2. The application has been enabled as a device administrator application, but the administrator type has changed.
78e41f4b71Sopenharmony_ci3. Multiple device administrator ability components are enabled for the same application.
79e41f4b71Sopenharmony_ci
80e41f4b71Sopenharmony_ci**Solution**
81e41f4b71Sopenharmony_ci
82e41f4b71Sopenharmony_ci1. Check that only one super device administrator application exists.
83e41f4b71Sopenharmony_ci2. 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.
84e41f4b71Sopenharmony_ci3. 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.
85e41f4b71Sopenharmony_ci
86e41f4b71Sopenharmony_ci## 9200005 Failed to Disable the Device Administrator Application
87e41f4b71Sopenharmony_ci
88e41f4b71Sopenharmony_ci**Error Message**
89e41f4b71Sopenharmony_ci
90e41f4b71Sopenharmony_ciFailed to deactivate the administrator application of the device.
91e41f4b71Sopenharmony_ci
92e41f4b71Sopenharmony_ci**Description**
93e41f4b71Sopenharmony_ci
94e41f4b71Sopenharmony_ciThis error code is reported when the operation for disabling a device administrator application fails.
95e41f4b71Sopenharmony_ci
96e41f4b71Sopenharmony_ci**Possible Causes**
97e41f4b71Sopenharmony_ci
98e41f4b71Sopenharmony_ci1. The device administrator application to be disabled has not been enabled.
99e41f4b71Sopenharmony_ci2. The caller cannot disable other device administrator applications.
100e41f4b71Sopenharmony_ci
101e41f4b71Sopenharmony_ci**Solution**
102e41f4b71Sopenharmony_ci
103e41f4b71Sopenharmony_ci1. Check whether the target device administrator application has been enabled.
104e41f4b71Sopenharmony_ci2. Check whether the specified device administrator ability component of the target device administrator application has been enabled.
105e41f4b71Sopenharmony_ci3. Check whether the device administrator application to be disabled is the caller itself.
106e41f4b71Sopenharmony_ci
107e41f4b71Sopenharmony_ci## 9200006 Invalid User ID
108e41f4b71Sopenharmony_ci
109e41f4b71Sopenharmony_ci**Error Message**
110e41f4b71Sopenharmony_ci
111e41f4b71Sopenharmony_ciThe specified user ID is invalid.
112e41f4b71Sopenharmony_ci
113e41f4b71Sopenharmony_ci**Description**
114e41f4b71Sopenharmony_ci
115e41f4b71Sopenharmony_ciThis 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.
116e41f4b71Sopenharmony_ci
117e41f4b71Sopenharmony_ci**Possible Causes**
118e41f4b71Sopenharmony_ci
119e41f4b71Sopenharmony_ci1. The user ID specified for setting a user policy does not exist.
120e41f4b71Sopenharmony_ci2. When the application is not a super device administrator application, the specified user ID is different from the caller's user ID.
121e41f4b71Sopenharmony_ci
122e41f4b71Sopenharmony_ci**Solution**
123e41f4b71Sopenharmony_ci
124e41f4b71Sopenharmony_ci1. Check whether the specified user ID is valid and exists.
125e41f4b71Sopenharmony_ci2. Check that the caller's user ID is the same as the specified user ID. If the application is not a super device administrator application, policies cannot be set across users.
126e41f4b71Sopenharmony_ci
127e41f4b71Sopenharmony_ci## 9200007 System Ability Error
128e41f4b71Sopenharmony_ci
129e41f4b71Sopenharmony_ci**Error Message**
130e41f4b71Sopenharmony_ci
131e41f4b71Sopenharmony_ciThe system ability works abnormally.
132e41f4b71Sopenharmony_ci
133e41f4b71Sopenharmony_ci**Description**
134e41f4b71Sopenharmony_ci
135e41f4b71Sopenharmony_ciThis error code is reported when the enterprise device management ability is not working properly.
136e41f4b71Sopenharmony_ci
137e41f4b71Sopenharmony_ci**Possible Causes**
138e41f4b71Sopenharmony_ci
139e41f4b71Sopenharmony_ci1. The EnterpriseAdminAbility is not started.
140e41f4b71Sopenharmony_ci2. The RPC object for enterprise device management cannot be obtained.
141e41f4b71Sopenharmony_ci3. Other abilities, on which the EnterpriseAdminAbility depends, are not started, or the RPC object cannot be obtained.
142e41f4b71Sopenharmony_ci4. A system exception occurs during the running of EnterpriseAdminAbility.
143e41f4b71Sopenharmony_ci
144e41f4b71Sopenharmony_ci**Solution**
145e41f4b71Sopenharmony_ci
146e41f4b71Sopenharmony_ciTry again later or restart the device.
147e41f4b71Sopenharmony_ci
148e41f4b71Sopenharmony_ci## 9200008 Invalid System Event
149e41f4b71Sopenharmony_ci
150e41f4b71Sopenharmony_ci**Error Message**
151e41f4b71Sopenharmony_ci
152e41f4b71Sopenharmony_ciThe specified system event is invalid.
153e41f4b71Sopenharmony_ci
154e41f4b71Sopenharmony_ci**Description**
155e41f4b71Sopenharmony_ci
156e41f4b71Sopenharmony_ciThis error code is reported when the enterprise device management module does not support subscription to the specified event or the specified event is invalid.
157e41f4b71Sopenharmony_ci
158e41f4b71Sopenharmony_ci**Possible Causes**
159e41f4b71Sopenharmony_ci
160e41f4b71Sopenharmony_ciThe enterprise device management module does not support subscription to the specified event or the specified event is invalid.
161e41f4b71Sopenharmony_ci
162e41f4b71Sopenharmony_ci**Solution**
163e41f4b71Sopenharmony_ci
164e41f4b71Sopenharmony_ciCheck that the specified event is valid and supported by the enterprise device management module.
165e41f4b71Sopenharmony_ci
166e41f4b71Sopenharmony_ci## 9200009 Failed to Grant Permissions to an Application
167e41f4b71Sopenharmony_ci
168e41f4b71Sopenharmony_ci**Error Message**
169e41f4b71Sopenharmony_ci
170e41f4b71Sopenharmony_ciFailed to grant the permission to the application.
171e41f4b71Sopenharmony_ci
172e41f4b71Sopenharmony_ci**Description**
173e41f4b71Sopenharmony_ci
174e41f4b71Sopenharmony_ciThis error code is reported when the super device administrator application fails to grant administrator rights to other applications.
175e41f4b71Sopenharmony_ci
176e41f4b71Sopenharmony_ci**Possible Causes**
177e41f4b71Sopenharmony_ci
178e41f4b71Sopenharmony_ciThe target application is not installed by the administrator.
179e41f4b71Sopenharmony_ci
180e41f4b71Sopenharmony_ci**Solution**
181e41f4b71Sopenharmony_ci
182e41f4b71Sopenharmony_ciCheck that the target application has been installed by the administrator.
183e41f4b71Sopenharmony_ci
184e41f4b71Sopenharmony_ci## 9200010 Policy Conflict
185e41f4b71Sopenharmony_ci
186e41f4b71Sopenharmony_ci**Error Message**
187e41f4b71Sopenharmony_ci
188e41f4b71Sopenharmony_ciA conflict policy has been configured.
189e41f4b71Sopenharmony_ci
190e41f4b71Sopenharmony_ci**Description**
191e41f4b71Sopenharmony_ci
192e41f4b71Sopenharmony_ciThis error code is reported when a conflict policy is being delivered.
193e41f4b71Sopenharmony_ci
194e41f4b71Sopenharmony_ci**Possible Causes**
195e41f4b71Sopenharmony_ci
196e41f4b71Sopenharmony_ciA conflict policy is defined and to be delivered.
197e41f4b71Sopenharmony_ci
198e41f4b71Sopenharmony_ci**Solution**
199e41f4b71Sopenharmony_ci
200e41f4b71Sopenharmony_ciResolve the conflict, and then deliver the policy.
201e41f4b71Sopenharmony_ci
202e41f4b71Sopenharmony_ci## 9201001 Failed to Manage the Certificate
203e41f4b71Sopenharmony_ci
204e41f4b71Sopenharmony_ci**Error Message**
205e41f4b71Sopenharmony_ci
206e41f4b71Sopenharmony_ciFailed to manage the certificate.
207e41f4b71Sopenharmony_ci
208e41f4b71Sopenharmony_ci**Description**
209e41f4b71Sopenharmony_ci
210e41f4b71Sopenharmony_ciThis error code is reported when the super device administrator application fails to install or uninstall a user certificate.
211e41f4b71Sopenharmony_ci
212e41f4b71Sopenharmony_ci**Possible Causes**
213e41f4b71Sopenharmony_ci
214e41f4b71Sopenharmony_ciThe user certificate is incorrect.
215e41f4b71Sopenharmony_ci
216e41f4b71Sopenharmony_ci**Solution**
217e41f4b71Sopenharmony_ci
218e41f4b71Sopenharmony_ciCheck that the user certificate is correct.
219e41f4b71Sopenharmony_ci
220e41f4b71Sopenharmony_ci## 9201002 Failed to Install the Application
221e41f4b71Sopenharmony_ci
222e41f4b71Sopenharmony_ci**Error Message**
223e41f4b71Sopenharmony_ci
224e41f4b71Sopenharmony_ciFailed to install the application.
225e41f4b71Sopenharmony_ci
226e41f4b71Sopenharmony_ci**Description**
227e41f4b71Sopenharmony_ci
228e41f4b71Sopenharmony_ciThis error code is reported when a device administrator application fails to install an enterprise application.
229e41f4b71Sopenharmony_ci
230e41f4b71Sopenharmony_ci**Possible Causes**
231e41f4b71Sopenharmony_ci
232e41f4b71Sopenharmony_ci1. The application installation path is empty or invalid, or does not exist.
233e41f4b71Sopenharmony_ci2. The operation attempts to install multiple applications with different bundle names.
234e41f4b71Sopenharmony_ci3. The application to be installed already exists when the installation parameter flag is 0.
235e41f4b71Sopenharmony_ci4. The user ID is invalid.
236e41f4b71Sopenharmony_ci
237e41f4b71Sopenharmony_ci**Solution**
238e41f4b71Sopenharmony_ci
239e41f4b71Sopenharmony_ci1. Check that the application installation path is valid.
240e41f4b71Sopenharmony_ci2. Check that all the installation parameters are valid.
241e41f4b71Sopenharmony_ci3. Check that the same application is installed.
242e41f4b71Sopenharmony_ci
243e41f4b71Sopenharmony_ci## 9201003 Failed to Add an Account
244e41f4b71Sopenharmony_ci
245e41f4b71Sopenharmony_ci**Error Message**
246e41f4b71Sopenharmony_ci
247e41f4b71Sopenharmony_ciFailed to add an OS account.
248e41f4b71Sopenharmony_ci
249e41f4b71Sopenharmony_ci**Description**
250e41f4b71Sopenharmony_ci
251e41f4b71Sopenharmony_ciThis error code is reported when an account fails to be added.
252e41f4b71Sopenharmony_ci
253e41f4b71Sopenharmony_ci**Possible Causes**
254e41f4b71Sopenharmony_ci
255e41f4b71Sopenharmony_ci1. The account already exists.
256e41f4b71Sopenharmony_ci2. The account name is invalid.
257e41f4b71Sopenharmony_ci3. The network is not connected when the account is added.
258e41f4b71Sopenharmony_ci4. The system does not support multiple accounts.
259e41f4b71Sopenharmony_ci
260e41f4b71Sopenharmony_ci**Solution**
261e41f4b71Sopenharmony_ci
262e41f4b71Sopenharmony_ci1. Check whether the account name exists. If yes, change the account name and try again.
263e41f4b71Sopenharmony_ci2. Check that the account name is valid.
264e41f4b71Sopenharmony_ci3. Check that the network is connected when the account is added.
265e41f4b71Sopenharmony_ci
266e41f4b71Sopenharmony_ci## 9201004 Update Package Not Exist or Fails to be Parsed
267e41f4b71Sopenharmony_ci
268e41f4b71Sopenharmony_ci**Error Message**
269e41f4b71Sopenharmony_ci
270e41f4b71Sopenharmony_ciThe update packages do not exist or analyzing failed.
271e41f4b71Sopenharmony_ci
272e41f4b71Sopenharmony_ci**Description**
273e41f4b71Sopenharmony_ci
274e41f4b71Sopenharmony_ciThis error code is reported when the enterprise device administrator application fails to notify the system of the package update.
275e41f4b71Sopenharmony_ci
276e41f4b71Sopenharmony_ci**Possible Causes**
277e41f4b71Sopenharmony_ci
278e41f4b71Sopenharmony_ci1. The system update package does not exist.
279e41f4b71Sopenharmony_ci2. The verification of the system update package name fails.
280e41f4b71Sopenharmony_ci3. The system update package fails to be opened.
281e41f4b71Sopenharmony_ci4. The system update package fails to be parsed.
282e41f4b71Sopenharmony_ci
283e41f4b71Sopenharmony_ci**Solution**
284e41f4b71Sopenharmony_ci
285e41f4b71Sopenharmony_ci1. Check whether the system update package exists.
286e41f4b71Sopenharmony_ci2. Check whether the name of the system update package is valid.
287e41f4b71Sopenharmony_ci3. Check whether the system update package is readable.
288e41f4b71Sopenharmony_ci4. Check whether the system update package is complete.
289