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
13The system 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 name 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 Unsupported Account Type
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 Account Count Reached the Limit
135
136**Error Message**
137
138The number of accounts has reached the upper limit.
139
140**Possible Causes**
141
142The number of system accounts or app accounts has reached 1000.
143
144**Solution**
145
146Delete the accounts that are no longer used, and try again.
147
148## 12300008 Restricted Account
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
225Network 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## 12300014 Domain Account Not Authenticated
242
243**Error Message**
244
245The domain account is not authenticated.
246
247**Possible Causes**
248
249The domain account has not logged in.
250
251**Solution**
252
253Log in using the domain account.
254
255## 12300015 Duplicate Short Name
256
257**Error Message**
258
259The short name already exists.
260
261**Possible Causes**
262
263The short name used to create the account already exists.
264
265**Solution**
266
267Change the short name and try again.
268
269## 12300016 Login Accounts Reached the Limit
270
271**Error Message**
272
273The number of logged in accounts reaches the upper limit.
274
275**Possible Causes**
276
277The number of login accounts has reached the upper limit. No more accounts can be used to log in.
278
279**Solution**
280
281Log out of the system and log in to the system using a new account.
282
283## 12300101 Incorrect Credential
284
285**Error Message**
286
287The credential is incorrect.
288
289**Possible Causes**
290
291- An incorrect password is entered.
292- The biological feature does not match the feature enrolled.
293- The token is invalid.
294
295**Solution**
296
297Enter a correct credential and try again.
298
299## 12300102 Credential Not Exist
300
301**Error Message**
302
303The credential does not exist.
304
305**Possible Causes**
306
307- The credential to authenticate has not been enrolled.
308- The credential to query has not been enrolled.
309- The credential to delete has not been enrolled.
310
311**Solution**
312
313Check whether the credential has been enrolled.
314
315## 12300103 Credential Inputer Already Exists
316
317**Error Message**
318
319The credential inputer already exists.
320
321**Possible Causes**
322
323The PIN inputer has been registered and cannot be registered again before deregistration.
324
325**Solution**
326
327No further action is required.
328
329## 12300104 Credential Inputer Not Exist
330
331**Error Message**
332
333The credential inputer is not found.
334
335**Possible Causes**
336
337No credential inputer is registered when a credential is authenticated, added or modified.
338
339**Solution**
340
341Register a credential inputer.
342
343## 12300105 Trust Level Not Supported
344
345**Error Message**
346
347The trust level is not supported.
348
349**Possible Causes**
350
351The trust level passed in is not supported.
352
353**Solution**
354
355Use a trust level supported by the system.
356
357## 12300106 Authentication Type Not Supported
358
359**Error Message**
360
361The authentication type is not supported.
362
363**Possible Causes**
364
365The authentication type passed in is not supported.
366
367**Solution**
368
369Use an authentication type supported by the system.
370
371## 12300107 Authentication Type Not Exist
372
373**Error Message**
374
375The authentication type does not exist.
376
377**Possible Causes**
378
379The specified authentication type does not exist when a token is queried or deleted.
380
381**Solution**
382
383Use an existing authentication type.
384
385## 12300108 Authentication Session Not Exist
386
387**Error Message**
388
389The authentication session does not exist.
390
391**Possible Causes**
392
393The session callback to query does not exist.
394
395**Solution**
396
397Use an opened session to query session callbacks.
398
399## 12300109 Authentication, Credential Enrollment, or Update Canceled
400
401**Error Message**
402
403The authentication, enrollment, or update operation is canceled.
404
405**Possible Causes**
406
407- The user canceled the authentication.
408- The user canceled the credential enrollment.
409- The user canceled the update during the credential enrollment process.
410
411**Solution**
412
413No further action is required.
414
415## 12300110 Authentication Locked
416
417**Error Message**
418
419The authentication is locked.
420
421**Possible Causes**
422
423The number of authentication type errors exceeds the limit.
424
425**Solution**
426
427Try again after the freezing time.
428
429## 12300111 Authentication Timed Out
430
431**Error Message**
432
433The authentication timed out.
434
435**Possible Causes**
436
4371. The authentication or credential enrollment of a system account takes more than three minutes.
4382. The authentication service does not respond in time due to network problems.
439
440**Solution**
441
4421. Try again if the authentication or credential enrollment times out.
4432. Check and rectify network problems, and try again.
444
445## 12300112 Authentication Service Not Respond
446
447**Error Message**
448
449The authentication service is busy.
450
451**Possible Causes**
452
453- The total number of system accounts being authenticated exceeds 5.
454- The authentication service of the third-party app does not respond.
455
456**Solution**
457
458Try again later.
459
460## 12300113 Authentication Service Not Exist
461
462**Error Message**
463
464The account authentication service does not exist.
465
466**Possible Causes**
467
468The possible causes for app accounts are as follows:
469- When an authentication is requested, the app does not support the authentication service.
470- When an account is added implicitly, the app does not support the authentication service.
471- When the credential of a specified account is verified, the app does not support the authentication service.
472- When the authenticator attributes are set for an app, the app does not support the authentication service.
473- When the account tags are checked, the specified app does not support the authentication service.
474
475**Solution**
476
477Cancel the operation or authenticate an app that supports the authentication service.
478
479## 12300114 Authentication Service Abnormal
480
481**Error Message**
482
483The account authentication service works abnormally.
484
485**Possible Causes**
486
4871. An unknown error occurs in the identity authentication service.
4882. The app authenticator does not comply with specifications.
489
490**Solution**
491
4921. Try again or restart the system.
4932. Use the app authenticator that complies with specifications.
494
495## 12300115 User Authentication Passwords Reached the Limit
496
497**Error Message**
498
499The number of credentials reaches the upper limit.
500
501**Possible Causes**
502
5031. An unknown error occurs in the identity authentication service.
5042. The user already has a password of the corresponding type and cannot add a password.
505
506**Solution**
507
5081. Try again or restart the system.
5092. Change the password or delete the existing password.
510
511## 12300116 Failed to Verify the Credential Complexity
512
513**Error Message**
514
515Credential complexity verification failed.
516
517**Possible Causes**
518
519The credential is too simple.
520
521**Solution**
522
523Enroll a credential that contains specific characters as required.
524
525## 12300117 PIN Expired
526
527**Error Message**
528
529PIN is expired.
530
531**Possible Causes**
532
533The PIN for user authentication has expired.
534
535**Solution**
536
537Reset the PIN.
538
539## 12400001 Application Not Exist
540
541**Error Message**
542
543The application does not exist.
544
545**Possible Causes**
546
547- The target app does not exist when the app permission is set.
548- The target app does not exist when the app permission is authorized.
549
550**Solution**
551
552Check that the target app has been installed, and use the bundle of the app.
553
554## 12400002 Custom Data Not Exist
555
556**Error Message**
557
558The custom data does not exist.
559
560**Possible Causes**
561
562The key does not exist when you query the custom data of the account.
563
564**Solution**
565
566Query the custom data with a key that is already defined.
567
568## 12400003 Custom Data Records Reached the Limit
569
570**Error Message**
571
572The number of custom data records reaches the upper limit.
573
574**Possible Causes**
575
576The number of custom data records of the target account has reached 512.
577
578**Solution**
579
580Delete the custom data records that are no longer used.
581
582## 12400004 Token Count Reached the Limit
583
584**Error Message**
585
586The number of tokens reaches the upper limit.
587
588**Possible Causes**
589
590The number of tokens of the target account has reached 1024.
591
592**Solution**
593
594Delete the tokens that are not longer used, and try again.
595
596## 12400005 Bundles in the OAuth List Reached the Limit
597
598**Error Message**
599
600The size of the authorization list reaches the upper limit.
601
602**Possible Causes**
603
604The number of bundles in the authorization list has reached 1024.
605
606**Solution**
607
608Revoke authorization from the apps that do not require the authorization and try again.