• 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 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 that the caller is an enabled device administrator application.
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 call the API.
34
35**Possible Causes**
36
37The device administrator application cannot call the APIs that are 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 administrator ability component is invalid.
52
53**Possible Causes**
54
551. The administrator ability component does not exist when the device administrator application is enabled.
562. The administrator ability component is not a valid enterprise administrator ability component.
57
58**Solution**
59
601. 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.
612. Check that the administrator ability component inherits the **EnterpriseAdminExtensionAbility** component defined by the enterprise device management framework.
62
63## 9200004 Failed to Enable the Device Administrator Application
64
65**Error Message**
66
67Failed to activate the administrator application of the device.
68
69**Description**
70
71This error code is reported when an application fails to be enabled as a device administrator application.
72
73**Possible Causes**
74
751. Multiple applications are enabled as the super device administrator application.
762. The application has been enabled as a device administrator application with a different administrator type.
773. Multiple device administrator ability components are enabled for the same application.
78
79**Solution**
80
811. Check that only one super device administrator application exists.
822. 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.
833. 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.
84
85## 9200005 Failed to Disable the Device Administrator Application
86
87**Error Message**
88
89Failed to deactivate the administrator application of the device.
90
91**Description**
92
93This error code is reported when the operation for disabling a device administrator application fails.
94
95**Possible Causes**
96
971. The application to be disabled is not an enabled device administrator application.
982. The caller cannot disable other device administrator applications.
99
100**Solution**
101
1021. Check that the target device administrator application has been enabled.
1032. Check that the specified device administrator ability component of the target device administrator application has been enabled.
1043. Check that the device administrator application to be disabled is the caller itself.
105
106## 9200006 Invalid User ID
107
108**Error Message**
109
110The specified user ID is invalid.
111
112**Description**
113
114This 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.
115
116**Possible Causes**
117
1181. The user ID specified for setting a user policy does not exist.
1192. The specified user ID is different from the caller's user ID when the application is not a super device administrator application.
120
121**Solution**
122
1231. Check that the specified user ID is valid.
1242. 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.
125
126## 9200007 System Ability Error
127
128**Error Message**
129
130The system ability work abnormally.
131
132**Description**
133
134This error code is reported when the enterprise device management ability is not working properly.
135
136**Possible Causes**
137
138- The EnterpriseAdminAbility is not started.
139- The RPC object for enterprise device management cannot be obtained.
140- Other abilities, on which the EnterpriseAdminAbility depends, are not started, or the RPC object cannot be obtained.
141- A system exception occurs during the running of EnterpriseAdminAbility.
142
143**Solution**
144
145Try again later or restart the device.
146
147## 9200008 Invalid System Subscription Event
148
149**Error Message**
150
151The specified system events enum is invalid.
152
153**Description**
154
155This error code is reported when the enterprise device management module does not support subscription to the specified event or the specified event is invalid.
156
157**Possible Causes**
158
159The enterprise device management module does not support subscription to the specified event or the specified event is invalid.
160
161**Solution**
162
163Check that the specified event is valid and supported by the enterprise device management module.
164
165## 9200009 Failed to Grant Permissions to the Application
166
167**Error Message**
168
169Authorize permission to the application failed.
170
171**Description**
172
173This error code is reported when the super device administrator application fails to grant administrator rights to other applications.
174
175**Possible Causes**
176
177The target application is not installed by the administrator.
178
179**Solution**
180
181Check that the target application has been installed by the administrator.
182
183## 9201001 Failed to Manage the Certificate
184
185**Error Message**
186
187manage certificate failed
188
189**Description**
190
191This error code is reported when the super device administrator application fails to install or uninstall a user certificate.
192
193**Possible Causes**
194
195The user certificate is incorrect.
196
197**Solution**
198
199Check that the user certificate is correct.
200
201## 9201002 Failed to Install the Application
202
203**Error Message**
204
205The application installation failed.
206
207**Description**
208
209This error code is reported when a device administrator application fails to install an enterprise application.
210
211**Possible Causes**
212
2131. The application installation path is empty or invalid, or does not exist.
2142. The operation attempts to install multiple apps with different bundle names.
2153. The application to be installed already exists when the installation parameter flag is 0.
2164. The user ID is invalid.
217
218**Solution**
219
2201. Check that the application installation path is valid.
2212. Check that all the installation parameters are valid.
2223. Check that the same application is installed.
223