• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Enterprise Device Management Error Codes
2
3<!--RP1-->
4> **NOTE**
5>
6> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
7<!--RP1End-->
8
9## 9200001 DeviceAdmin Not Enabled
10
11**Error Message**
12
13The application is not an administrator application of the device.
14
15**Description**
16
17This error code is reported when the caller is not an enabled device administrator application.
18
19**Possible Causes**
20
21The enterprise device management APIs can be called only by a device administrator application that has been enabled.
22
23**Solution**
24
25Check whether the caller is a device administrator application that is enabled.
26
27## 9200002 Permission Denied
28
29**Error Message**
30
31The administrator application does not have permission to manage the device.
32
33**Description**
34
35This error code is reported when the device administrator application does not have the permission to call the API.
36
37**Possible Causes**
38
39A device administrator application calls an API that is accessible only by a super administrator application.
40
41**Solution**
42
43Check that the device administrator type enabled for the caller is the same as that required by the API.
44
45## 9200003 Invalid Administrator Ability Component
46
47**Error Message**
48
49The administrator ability component is invalid.
50
51**Description**
52
53This error code is reported when the specified device manager ability component is invalid.
54
55**Possible Causes**
56
57The specified administrator ability component is invalid due to any of the following causes:
581. The administrator ability component does not exist when the device administrator application is enabled.
592. The administrator ability component is not a valid enterprise administrator ability component.
60
61**Solution**
62
631. 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.
642. Check that the administrator ability component inherits from the **EnterpriseAdminExtensionAbility** component defined by the enterprise device management framework.
65
66## 9200004 Failed to Enable the Device Administrator Application
67
68**Error Message**
69
70Failed to activate the administrator application of the device.
71
72**Description**
73
74This error code is reported when an application fails to be enabled as a device administrator application.
75
76**Possible Causes**
77
781. Multiple applications are enabled as the super device administrator application.
792. The application has been enabled as a device administrator application, but the administrator type has changed.
803. Multiple device administrator ability components are enabled for the same application.
81
82**Solution**
83
841. Check that only one super device administrator application exists.
852. Check whether the current application has been enabled as a device administrator with a different device administrator type. If yes, deactivate the device administrator application and try again.
863. 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.
87
88## 9200005 Failed to Disable the Device Administrator Application
89
90**Error Message**
91
92Failed to deactivate the administrator application of the device.
93
94**Description**
95
96This error code is reported when the operation for disabling a device administrator application fails.
97
98**Possible Causes**
99
1001. The device administrator application to be disabled has not been enabled.
1012. The caller cannot disable other device administrator applications.
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
1211. The user ID specified for setting a user policy does not exist.
1222. When the application is not a super device administrator application, the specified user ID is different from the caller's user ID.
123
124**Solution**
125
1261. Check that the specified user ID is valid.
1272. Check that 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.
128
129## 9200007 System Ability Error
130
131**Error Message**
132
133The system ability works abnormally.
134
135**Description**
136
137This error code is reported when the enterprise device management ability is not working properly.
138
139**Possible Causes**
140
1411. The EnterpriseAdminAbility is not started.
1422. The RPC object for enterprise device management cannot be obtained.
1433. Other abilities, on which the EnterpriseAdminAbility depends, are not started, or the RPC object cannot be obtained.
1444. A system exception occurs during the running of EnterpriseAdminAbility.
145
146**Solution**
147
148Try again later or restart the device.
149
150## 9200008 Invalid System Subscription Event
151
152**Error Message**
153
154The specified system event is invalid.
155
156**Description**
157
158This error code is reported when the enterprise device management module does not support subscription to the specified event or the specified event is invalid.
159
160**Possible Causes**
161
162The enterprise device management module does not support subscription to the specified event or the specified event is invalid.
163
164**Solution**
165
166Check that the specified event is valid and supported by the enterprise device management module.
167
168## 9200009 Failed to Grant Permissions to an Application
169
170**Error Message**
171
172Failed to grant the permission to the application.
173
174**Description**
175
176This error code is reported when the super device administrator application fails to grant administrator rights to other applications.
177
178**Possible Causes**
179
180The target application is not installed by the administrator.
181
182**Solution**
183
184Check that the target application has been installed by the administrator.
185
186## 9200010 Policy Conflict
187
188**Error Message**
189
190A conflict policy has been configured.
191
192**Description**
193
194This error code is reported when a conflict policy is being delivered.
195
196**Possible Causes**
197
198A conflict policy is defined and to be delivered.
199
200**Solution**
201
202Resolve the conflict, and then deliver the policy.
203
204## 9201001 Failed to Manage the Certificate
205
206**Error Message**
207
208Failed to manage the certificate.
209
210**Description**
211
212This error code is reported when the super device administrator application fails to install or uninstall a user certificate.
213
214**Possible Causes**
215
216The user certificate is incorrect.
217
218**Solution**
219
220Check that the user certificate is correct.
221
222## 9201002 Failed to Install the Application
223
224**Error Message**
225
226Failed to install the application.
227
228**Description**
229
230This error code is reported when a device administrator application fails to install an enterprise application.
231
232**Possible Causes**
233
2341. The application installation path is empty or invalid, or does not exist.
2352. The operation attempts to install multiple applications with different bundle names.
2363. The application to be installed already exists when the installation parameter flag is 0.
2374. The user ID is invalid.
238
239**Solution**
240
2411. Check that the application installation path is valid.
2422. Check that all the installation parameters are valid.
2433. Check that the same application is installed.
244
245## 9201003 Failed to Add an Account
246
247**Error Message**
248
249Failed to add an OS account.
250
251**Description**
252
253This error code is reported when an account fails to be added.
254
255**Possible Causes**
256
2571. The account already exists.
2582. The account name is invalid.
2593. The network is not connected when the account is added.
2604. The system does not support multiple accounts.
261
262**Solution**
263
2641. Check whether the account name exists. If yes, change the account name and try again.
2652. Check that the account name is valid.
2663. Check that the network is connected when the account is added.
267
268## 9201004 Update Package Not Exist or Fails to be Parsed
269
270**Error Message**
271
272The update packages do not exist or analyzing failed.
273
274**Description**
275
276This error code is reported when the enterprise device administrator application fails to notify the system of the package update.
277
278**Possible Causes**
279
2801. The system update package does not exist.
2812. The verification of the system update package name fails.
2823. The system update package fails to be opened.
2834. The system update package fails to be parsed.
284
285**Solution**
286
2871. Check whether the system update package exists.
2882. Check whether the name of the system update package is valid.
2893. Check whether the system update package is readable.
2904. Check whether the system update package is complete.
291