• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Account Management Error Codes
2
3<!--Kit: Basic Services Kit-->
4<!--Subsystem: Account-->
5<!--Owner: @steven-q-->
6<!--Designer: @JiDong-CS1-->
7<!--Tester: @zhaimengchao-->
8<!--Adviser: @zengyawen-->
9
10> **NOTE**
11>
12> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
13
14The following includes the error codes for system accounts, distributed accounts, and application accounts.
15
16## 12300001 System Service Abnormal
17
18**Error Message**
19
20The system service works abnormally.
21
22**Possible Causes**
23
24
251. The account management service cannot start properly.
262. The IPC object for account management cannot be obtained.
273. The services on which the account management depends cannot start properly, or the IPC object on which the account management depends cannot be obtained.
284. The service is not initialized.
295. The disk space is insufficient.
306. The file read or write fails.
317. Directories cannot be created.
328. Files cannot be created or deleted.
339. The database cannot be read or written.
34
35**Solution**
36
37Try again later or restart the device.
38
39## 12300002 Invalid Parameter
40
41**Error Message**
42
43Invalid parameter.
44
45**Possible Causes**
46
47
481. The user name is empty.
492. The user name of the system account exceeds 1024 characters.
503. The user name of the distributed account exceeds 256 characters.
514. The system account ID is less than 0 or 100, or greater than 1099.
525. The distributed account ID exceeds 512 characters.
536. The event type passed in for the distributed account is not supported.
547. The domain name is empty.
558. The domain name exceeds 128 characters.
569. The domain account is empty.
5710. The domain account name exceeds 512 characters.
5811. The constraint is empty.
5912. The constraint exceeds 128 characters.
6013. Invalid authentication or query parameters are passed in.
6114. The profile photo string of the system account exceeds 4 KB.
6215. The profile photo string of the distributed account exceeds 2 MB.
6316. The images are not in .jpg or .png format.
6417. The application account name exceeds 512 characters.
6518. The authentication type exceeds 1024 characters.
6619. The token exceeds 1024 characters.
6720. The key exceeds 1024 characters.
6821. The custom data exceeds 1024 characters.
6922. The token is invalid.
7023. The context ID is invalid.
7124. The credential ID is invalid.
72
73**Solution**
74
75Set parameters correctly.
76
77## 12300003 Account Not Exist
78
79**Error Message**
80
81The account does not exist.
82
83**Possible Causes**
84
85
861. The account to query, activate, or delete is not created.
872. The account to query, activate, or delete has been deleted.
883. The constraint, user name, or profile photo is set for an account that has been deleted.
894. The account to update is not created.
905. The access permission is to be set for an account that does not exist.
916. The password is to be set, deleted, or queried for an account that does not exist.
927. The token is to be set or deleted for an account that does not exist.
938. Additional information is to be set for an account that does not exist.
949. Credentials are to be set or deleted for an account that does not exist.
9510. Custom data is to be set for an account that does not exist.
9611. Distributed synchronization is to be enabled for an account that does not exist.
97
98**Solution**
99
100Check whether the account exists.
101
102## 12300004 Account Already Exists
103
104**Error Message**
105
106The account already exists.
107
108**Possible Causes**
109
110
111The account to create already exists.
112
113**Solution**
114
115Rename the account.
116
117## 12300005 Multiple Users Not Supported
118
119**Error Message**
120
121Multi-user is not supported.
122
123**Possible Causes**
124
125
126The device does not support multiple users.
127
128**Solution**
129
130Cancel the operation.
131
132## 12300006 Unsupported Account Type
133
134**Error Message**
135
136The account type is not supported.
137
138**Possible Causes**
139
140The device does not support the account type.
141
142**Solution**
143
144Create an account of the type supported by the device.
145
146## 12300007 Account Count Reached the Limit
147
148**Error Message**
149
150The number of accounts has reached the upper limit.
151
152**Possible Causes**
153
154The number of system accounts or application accounts has reached 1000.
155
156**Solution**
157
158Delete the accounts that are no longer used, and try again.
159
160## 12300008 Restricted Account
161
162**Error Message**
163
164The specified account is restricted.
165
166**Possible Causes**
167
168
1691. The account to delete is a reserved account of the system.
1702. The constraint source type to query belongs to a reserved account.
1713. The ID of the account to create is 0 to 100.
172
173**Solution**
174
175Operations cannot be performed on the reserved account of the system.
176
177## 12300009 Account Already Activated
178
179**Error Message**
180
181The account has been activated.
182
183**Possible Causes**
184
185
186The account to activate is already activated.
187
188**Solution**
189
190No further action is required.
191
192## 12300010 Account Service Not Respond
193
194**Error Message**
195
196The account service does not respond.
197
198**Possible Causes**
199
200
2011. Repeated requests, such as the requests for activating an account or applying the same settings, are submitted in a short period of time.
2022. When the number of authentication sessions for application accounts reaches 256, new authentication requests cannot be processed.
203
204**Solution**
205
206Wait for a while and try again.
207
208## 12300011 Event Listener Already Registered
209
210**Error Message**
211
212The event listener has been registered.
213
214**Possible Causes**
215
216
217The listener to register has been registered with the system already.
218
219**Solution**
220
221Cancel the operation or register an unregistered listener.
222
223## 12300012 Event Listener Not Registered
224
225**Error Message**
226
227The event listener has not been registered.
228
229**Possible Causes**
230
231
232The event listener to unregister has not been registered.
233
234**Solution**
235
236Only registered event listeners can be unregistered.
237
238## 12300013 Network Exception
239
240**Error Message**
241
242Network exception.
243
244**Possible Causes**
245
246
2471. Not connected to the Internet.
2482. The network connection is abnormal.
2493. The application does not have the network access permission.
2504. Unidentified network error.
251
252**Solution**
253
2541. Connects to a network.
2552. Check that the network connection is normal.
2563. Check that the application has the network access permission.
2574. Perform related operations again.
258
259## 12300014 Domain Account Not Authenticated
260
261**Error Message**
262
263The domain account is not authenticated.
264
265**Possible Causes**
266
267The domain account has not logged in.
268
269**Solution**
270
271Log in using the domain account.
272
273## 12300015 Duplicate Short Name
274
275**Error Message**
276
277The short name already exists.
278
279**Possible Causes**
280
281The short name used to create the account already exists.
282
283**Solution**
284
285Change the short name that does not exist.
286
287## 12300016 Login Accounts Reached the Limit
288
289**Error Message**
290
291The number of logged in accounts reaches the upper limit.
292
293**Possible Causes**
294
295The number of login accounts has reached the upper limit. No more accounts can be used to log in.
296
297**Solution**
298
299Log out of the system and log in to the system using a new account.
300
301<!--Del-->
302
303## 12300021 System Account Already Bound
304
305**Error Message**
306
307The OS account is already bound.
308
309**Description**
310
311This error code is reported if the entered system account has been bound to a domain account.
312
313**Possible Causes**
314
315The entered system account has been bound to a domain account.
316
317**Solution**
318
319Multiple system accounts cannot be bound to one domain account. Bind the system account to another domain account.
320
321## 12300022 Domain Account Already Bound
322
323**Error Message**
324
325The domain account is already bound.
326
327**Description**
328
329This error code is reported if the entered domain account has been bound to a system account.
330
331**Possible Causes**
332
333The entered domain account has been bound to a system account.
334
335**Solution**
336
337A domain account cannot be bound to multiple system accounts. Bind the domain account to another system account or delete the bound system account before binding to a new one.
338
339<!--DelEnd-->
340
341## 12300101 Incorrect Credential
342
343**Error Message**
344
345The credential is incorrect.
346
347**Possible Causes**
348
349
3501. An incorrect password is entered.
3512. The biological feature does not match the feature enrolled.
3523. The token is invalid.
353
354**Solution**
355
356Enter a correct credential and try again.
357
358## 12300102 Credential Not Exist
359
360**Error Message**
361
362The credential does not exist.
363
364**Possible Causes**
365
366
3671. The credential to authenticate has not been enrolled.
3682. The credential to query has not been enrolled.
3693. The credential to delete has not been enrolled.
370
371**Solution**
372
373Check whether the credential has been enrolled.
374
375## 12300103 Credential Inputer Already Exists
376
377**Error Message**
378
379The credential inputer already exists.
380
381**Possible Causes**
382
383
384The PIN inputer has been registered and cannot be registered again before deregistration.
385
386**Solution**
387
388No further action is required.
389
390## 12300104 Credential Inputer Not Exist
391
392**Error Message**
393
394The credential inputer is not found.
395
396**Possible Causes**
397
398
399No credential inputer is registered when a credential is authenticated, added or modified.
400
401**Solution**
402
403Register a credential inputer.
404
405## 12300105 Trust Level Not Supported
406
407**Error Message**
408
409The trust level is not supported.
410
411**Possible Causes**
412
413
414The trust level passed in is not supported.
415
416**Solution**
417
418Use a trust level supported by the system.
419
420## 12300106 Authentication Type Not Supported
421
422**Error Message**
423
424The authentication type is not supported.
425
426**Possible Causes**
427
428
429The authentication type passed in is not supported.
430
431**Solution**
432
433Use an authentication type supported by the system.
434
435## 12300107 Authentication Type Not Exist
436
437**Error Message**
438
439The authentication type does not exist.
440
441**Possible Causes**
442
443
444The specified authentication type does not exist when a token is queried or deleted.
445
446**Solution**
447
448Use an existing authentication type.
449
450## 12300108 Authentication Session Not Exist
451
452**Error Message**
453
454The authentication session does not exist.
455
456**Possible Causes**
457
458
459
460The session callback to query does not exist.
461
462**Solution**
463
464Use an opened session to query session callbacks.
465
466## 12300109 Authentication, Credential Enrollment, or Update Canceled
467
468**Error Message**
469
470The authentication, enrollment, or update operation is canceled.
471
472**Possible Causes**
473
474
475The user cancels the authentication.
476The user canceled the credential enrollment.
477The user canceled the update during the credential enrollment process.
478
479**Solution**
480
481No further action is required.
482
483## 12300110 Authentication Locked
484
485**Error Message**
486
487The authentication is locked.
488
489**Possible Causes**
490
491
492The number of authentication type errors exceeds the limit.
493
494**Solution**
495
496Try again after the freezing time.
497
498## 12300111 Authentication Timed Out
499
500**Error Message**
501
502The authentication time out.
503
504**Possible Causes**
505
506
5071. The authentication or credential enrollment of a system account takes more than three minutes.
5082. The authentication service does not respond in time due to network problems.
509
510**Solution**
511
5121. Try again if the authentication or credential enrollment times out.
5132. Check and rectify network problems, and try again.
514
515## 12300112 Authentication Service Not Respond
516
517**Error Message**
518
519The authentication service is busy.
520
521**Possible Causes**
522
523
524The total number of system accounts being authenticated exceeds 5.
525The authentication service of the third-party application does not respond.
526
527**Solution**
528
529Try again later.
530
531## 12300113 Authentication Service Not Exist
532
533**Error Message**
534
535The account authentication service does not exist.
536
537**Possible Causes**
538
539
540For application accounts:
5411. When an authentication is requested, the application does not support the authentication service.
5422. When an account is added implicitly, the application does not support the authentication service.
5433. When the credential of a specified account is verified, the application does not support the authentication service.
5444. When the authenticator attributes are set for an application, the application does not support the authentication service.
5455. When the account tags are checked, the specified application does not support the authentication service.
546
547**Solution**
548
549Cancel the operation or authenticate an application that supports the authentication service.
550
551## 12300114 Authentication Service Abnormal
552
553**Error Message**
554
555The account authentication service works abnormally.
556
557**Possible Causes**
558
559
5601. An unknown error occurs in the identity authentication service.
5612. The application authenticator does not comply with specifications.
562
563**Solution**
564
5651. Try again or restart the system.
5662. Use the application authenticator that complies with specifications.
567
568## 12300115 User Authentication Passwords Reached the Limit
569
570**Error Message**
571
572The number of credentials reaches the upper limit.
573
574**Possible Causes**
575
5761. An unknown error occurs in the identity authentication service.
5772. The user already has a password of the corresponding type and cannot add a password.
578
579**Solution**
580
5811. Try again or restart the system.
5822. Change the password or delete the existing password.
583
584## 12300116 Failed to Verify the Credential Complexity
585
586**Error Message**
587
588Credential complexity verification failed.
589
590**Possible Causes**
591
592The credential is too simple.
593
594**Solution**
595
596Enroll a credential that contains specific characters as required.
597
598## 12300117 PIN Expired
599
600**Error Message**
601
602PIN is expired.
603
604**Possible Causes**
605
606The PIN for user authentication has expired.
607
608**Solution**
609
610Reset the PIN.
611
612## 12400001 Application Not Exist
613
614**Error Message**
615
616The application does not exist.
617
618**Possible Causes**
619
620
6211. The target application does not exist when the application permission is set.
6222. The target application does not exist when the application permission is authorized.
623
624**Solution**
625
626Check that the target application has been installed, and use the bundle of the application.
627
628## 12400002 Custom Data Not Exist
629
630**Error Message**
631
632The custom data does not exist.
633
634**Possible Causes**
635
636The key does not exist when you query the custom data of the account.
637
638**Solution**
639
640Query the custom data with a key that is already defined.
641
642## 12400003 Custom Data Records Reached the Limit
643
644**Error Message**
645
646The number of custom data records reaches the upper limit.
647
648**Possible Causes**
649
650The number of custom data records of the target account has reached 512.
651
652**Solution**
653
654Delete the custom data records that are no longer used.
655
656## 12400004 Token Count Reached the Limit
657
658**Error Message**
659
660The number of tokens reaches the upper limit.
661
662**Possible Causes**
663
664The number of tokens of the target account has reached 1024.
665
666**Solution**
667
668Delete the tokens that are no longer used, and try again.
669
670## 12400005 Bundles in the OAuth List Reached the Limit
671
672**Error Message**
673
674The size of the authorization list reaches the upper limit.
675
676**Possible Causes**
677
678The number of bundles in the authorization list has reached 1024.
679
680**Solution**
681
682Revoke authorization from the applications that do not require the authorization and try again.
683