• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Account 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
7The following includes the error codes for system accounts, distributed accounts, and app accounts.
8
9## 12300001 System Service Abnormal
10
11**Error Message**
12
13System service works abnormally.
14
15**Possible Causes**
16
17- The account management service cannot start properly.
18- The IPC object for account management cannot be obtained.
19- The services on which the account management depends cannot start properly, or the IPC object on which the account management depends cannot be obtained.
20- The service is not initialized.
21- The disk space is insufficient.
22- The file read or write fails.
23- Directories cannot be created.
24- Files cannot be created or deleted.
25- The database cannot be read or written.
26
27**Solution**
28
29Try again later or restart the device.
30
31## 12300002 Invalid Parameter
32
33**Error Message**
34
35Invalid parameter.
36
37**Possible Causes**
38
39- The user name is empty.
40- The user name of the system account exceeds 1024 characters.
41- The user name of the distributed account exceeds 256 characters.
42- The system account ID is less than 0 or 100, or greater than 1099.
43- The distributed account ID exceeds 512 characters.
44- The event type passed in for the distributed account is not supported.
45- The domain name is empty.
46- The domain name exceeds 128 characters.
47- The domain account is empty.
48- The domain account exceeds 512 characters.
49- The constraint is empty.
50- The constraint exceeds 128 characters.
51- Invalid authentication or query parameters are passed in.
52- The profile photo string of the system account exceeds 4 KB.
53- The profile photo string of the distributed account exceeds 2 MB.
54- The images are not in .jpg or .png format.
55- The app account name exceeds 512 characters.
56- The authentication type exceeds 1024 characters.
57- The token exceeds 1024 characters.
58- The key exceeds 1024 characters.
59- The custom data exceeds 1024 characters.
60- The token is invalid.
61- The context ID is invalid.
62- The credential ID is invalid.
63
64**Solution**
65
66Set parameters correctly.
67
68## 12300003 Account Not Exist
69
70**Error Message**
71
72The account does not exist.
73
74**Possible Causes**
75
76- The account to query, activate, or delete is not created.
77- The account to query, activate, or delete has been deleted.
78- The constraint, user name, or profile photo is set for an account that has been deleted.
79- The account to update is not created.
80- The access permission is to be set for an account that does not exist.
81- The password is to be set, deleted, or queried for an account that does not exist.
82- The token is to be set or deleted for an account that does not exist.
83- Additional information is to be set for an account that does not exist.
84- Credentials are to be set for an account that does not exist.
85- Custom data is to be set for an account that does not exist.
86- Distributed synchronization is to be enabled for an account that does not exist.
87
88**Solution**
89
90Check whether the account exists.
91
92## 12300004 Account Already Exists
93
94**Error Message**
95
96The account already exists.
97
98**Possible Causes**
99
100The account to create already exists.
101
102**Solution**
103
104Rename the account.
105
106## 12300005 Multiple Users Not Supported
107
108**Error Message**
109
110Multi-user is not supported.
111
112**Possible Causes**
113
114The device does not support multiple users.
115
116**Solution**
117
118Cancel the operation.
119
120## 12300006 Account Type Not Supported
121
122**Error Message**
123
124The account type is not supported.
125
126**Possible Causes**
127
128The device does not support the account type.
129
130**Solution**
131
132Create an account of the type supported by the device.
133
134## 12300007 The Number of Accounts Has Reached the Limit
135
136**Error Message**
137
138The number of accounts has reached the limit.
139
140**Possible Causes**
141
142A maximum of 1,000 OS accounts or app accounts can be created.
143
144**Solution**
145
146Delete the accounts that are no longer used, and try again.
147
148## 12300008 Account Restricted
149
150**Error Message**
151
152The specified account is restricted.
153
154**Possible Causes**
155
156- The account to delete is a reserved account of the system.
157- The constraint source type to query belongs to a reserved account.
158- The ID of the account to create is 0 to 100.
159
160**Solution**
161
162Operations cannot be performed on the reserved account of the system.
163
164## 12300009 Account Already Activated
165
166**Error Message**
167
168The account has been activated.
169
170**Possible Causes**
171
172The account to activate is already activated.
173
174**Solution**
175
176No further action is required.
177
178## 12300010 Account Service Not Respond
179
180**Error Message**
181
182The account service does not respond.
183
184**Possible Causes**
185
186- Repeated requests, such as the requests for activating an account or applying the same settings, are submitted in a short period of time.
187- When the number of authentication sessions for app accounts reaches 256, new authentication requests cannot be processed.
188
189**Solution**
190
191Wait for a while and try again.
192
193## 12300011 Event Listener Already Registered
194
195**Error Message**
196
197The event listener has been registered.
198
199**Possible Causes**
200
201The listener to register has been registered with the system already.
202
203**Solution**
204
205Cancel the operation or register an unregistered listener.
206
207## 12300012 Event Listener Not Registered
208
209**Error Message**
210
211The event listener has not been registered.
212
213**Possible Causes**
214
215The event listener to unregister has not been registered.
216
217**Solution**
218
219Only registered event listeners can be unregistered.
220
221## 12300013 Network Exception
222
223**Error Message**
224
225The network exception.
226
227**Possible Causes**
228
2291. The device is not connected to the network.
2302. The network connection is abnormal.
2313. The app does not have the network access permission.
2324. Unidentified network error.
233
234**Solution**
235
2361. Connect the device to the network.
2372. Check that the network connection is normal.
2383. Check that the application has the network access permission.
2394. Perform related operations again.
240
241## 12300101 Incorrect Credential
242
243**Error Message**
244
245The credential is incorrect.
246
247**Possible Causes**
248
249- An incorrect password is entered.
250- The biological feature does not match the feature enrolled.
251- The token is invalid.
252
253**Solution**
254
255Enter a correct credential and try again.
256
257## 12300102 Credential Not Exist
258
259**Error Message**
260
261The credential does not exist.
262
263**Possible Causes**
264
265- The credential to authenticate has not been enrolled.
266- The credential to query has not been enrolled.
267- The credential to delete has not been enrolled.
268
269**Solution**
270
271Check whether the credential has been enrolled.
272
273## 12300103 Credential Inputer Already Exists
274
275**Error Message**
276
277The credential inputer already exists.
278
279**Possible Causes**
280
281The PIN inputer has been registered and cannot be registered again before deregistration.
282
283**Solution**
284
285No further action is required.
286
287## 12300104 Credential Inputer Not Exist
288
289**Error Message**
290
291The credential inputer is not found.
292
293**Possible Causes**
294
295No credential inputer is registered when a credential is authenticated, added or modified.
296
297**Solution**
298
299Register a credential inputer.
300
301## 12300105 Trust Level Not Supported
302
303**Error Message**
304
305The trust level is not supported.
306
307**Possible Causes**
308
309The trust level passed in is not supported.
310
311**Solution**
312
313Use a trust level supported by the system.
314
315## 12300106 Authentication Type Not Supported
316
317**Error Message**
318
319The authentication type is not supported.
320
321**Possible Causes**
322
323The authentication type passed in is not supported.
324
325**Solution**
326
327Use an authentication type supported by the system.
328
329## 12300107 Authentication Type Not Exist
330
331**Error Message**
332
333The authentication type does not exist.
334
335**Possible Causes**
336
337The specified authentication type does not exist when a token is queried or deleted.
338
339**Solution**
340
341Use an existing authentication type.
342
343## 12300108 Authentication Session Not Exist
344
345**Error Message**
346
347The authentication session does not exist.
348
349**Possible Causes**
350
351
352The session callback to query does not exist.
353
354**Solution**
355
356Use an opened session to query session callbacks.
357
358## 12300109 Authentication, Credential Enrollment, or Update Canceled
359
360**Error Message**
361
362The authentication, enrollment, update operation is canceled.
363
364**Possible Causes**
365
366- The user canceled the authentication.
367- The user canceled the credential enrollment.
368- The user canceled the update during the credential enrollment process.
369
370**Solution**
371
372No further action is required.
373
374## 12300110 Authentication Locked
375
376**Error Message**
377
378The authentication is locked.
379
380**Possible Causes**
381
382The number of authentication type errors exceeds the limit.
383
384**Solution**
385
386Try again after the freezing time.
387
388## 12300111 Authentication Timed Out
389
390**Error Message**
391
392The authentication timed out.
393
394**Possible Causes**
395
3961. The authentication or credential enrollment of a system account takes more than three minutes.
3972. The authentication service does not respond in time due to network problems.
398
399**Solution**
400
4011. Try again if the authentication or credential enrollment times out.
4022. Check and rectify network problems, and try again.
403
404## 12300112 Authentication Service Not Respond
405
406**Error Message**
407
408The authentication service does not respond.
409
410**Possible Causes**
411
412- The total number of system accounts being authenticated exceeds 5.
413- The authentication service of the third-party app does not respond.
414
415**Solution**
416
417Try again later.
418
419## 12300113 Authentication Service Not Exist
420
421**Error Message**
422
423The account authentication service does not exist.
424
425**Possible Causes**
426
427The possible causes for app accounts are as follows:
428- When an authentication is requested, the app does not support the authentication service.
429- When an account is added implicitly, the app does not support the authentication service.
430- When the credential of a specified account is verified, the app does not support the authentication service.
431- When the authenticator attributes are set for an app, the app does not support the authentication service.
432- When the account tags are checked, the specified app does not support the authentication service.
433
434**Solution**
435
436Cancel the operation or authenticate an app that supports the authentication service.
437
438## 12300114 Authentication Service Abnormal
439
440**Error Message**
441
442The account authentication service works abnormally.
443
444**Possible Causes**
445
4461. An unknown error occurs in the identity authentication service.
4472. The app authenticator does not comply with specifications.
448
449**Solution**
450
4511. Try again or restart the system.
4522. Use the app authenticator that complies with specifications.
453
454## 12400001 Application Not Exist
455
456**Error Message**
457
458The application does not exist.
459
460**Possible Causes**
461
462- The target app does not exist when the app permission is set.
463- The target app does not exist when the app permission is authorized.
464
465**Solution**
466
467Check that the target app has been installed, and use the bundle of the app.
468
469## 12400002 Custom Data Not Exist
470
471**Error Message**
472
473The custom data does not exist.
474
475**Possible Causes**
476
477The key does not exist when you query the custom data of the account.
478
479**Solution**
480
481Query the custom data with a key that is already defined.
482
483## 12400003 Custom Data Records Reached the Limit
484
485**Error Message**
486
487The number of custom data reaches upper limit.
488
489**Possible Causes**
490
491The number of custom data records of the target account has reached 512.
492
493**Solution**
494
495Delete the custom data records that are no longer used.
496
497## 12400004 Token Count Reached the Limit
498
499**Error Message**
500
501The number of token reaches upper limit.
502
503**Possible Causes**
504
505The number of tokens of the target account has reached 1024.
506
507**Solution**
508
509Delete the tokens that are not longer used, and try again.
510
511## 12400005 Bundles in the OAuth List Reached the Limit
512
513**Error Message**
514
515The size of authorization list reaches upper limit.
516
517**Possible Causes**
518
519The number of bundles in the authorization list has reached 1024.
520
521**Solution**
522
523Revoke authorization from the apps that do not require the authorization and try again.
524