• 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
13The system service works abnormally.
14
15**Possible Causes**
16
17
181. The account management service cannot start properly.
192. The IPC object for account management cannot be obtained.
203. The services on which the account management depends cannot start properly, or the IPC object on which the account management depends cannot be obtained.
214. The service is not initialized.
225. The disk space is insufficient.
236. The file read or write fails.
247. Directories cannot be created.
258. Files cannot be created or deleted.
269. The database cannot be read or written.
27
28**Solution**
29
30Try again later or restart the device.
31
32## 12300002 Invalid Parameter
33
34**Error Message**
35
36Invalid parameter.
37
38**Possible Causes**
39
40
411. The user name is empty.
422. The user name of the system account exceeds 1024 characters.
433. The user name of the distributed account exceeds 256 characters.
444. The system account ID is less than 0 or 100, or greater than 1099.
455. The distributed account ID exceeds 512 characters.
466. The event type passed in for the distributed account is not supported.
477. The domain name is empty.
488. The domain name exceeds 128 characters.
499. The domain account is empty.
5010. The domain account name exceeds 512 characters.
5111. The constraint is empty.
5212. The constraint exceeds 128 characters.
5313. Invalid authentication or query parameters are passed in.
5414. The profile photo string of the system account exceeds 4 KB.
5515. The profile photo string of the distributed account exceeds 2 MB.
5616. The images are not in .jpg or .png format.
5717. The application account name exceeds 512 characters.
5818. The authentication type exceeds 1024 characters.
5919. The token exceeds 1024 characters.
6020. The key exceeds 1024 characters.
6121. The custom data exceeds 1024 characters.
6222. The token is invalid.
6323. The context ID is invalid.
6424. The credential ID is invalid.
65
66**Solution**
67
68Set parameters correctly.
69
70## 12300003 Account Not Exist
71
72**Error Message**
73
74The account does not exist.
75
76**Possible Causes**
77
78
791. The account to query, activate, or delete is not created.
802. The account to query, activate, or delete has been deleted.
813. The constraint, user name, or profile photo is set for an account that has been deleted.
824. The account to update is not created.
835. The access permission is to be set for an account that does not exist.
846. The password is to be set, deleted, or queried for an account that does not exist.
857. The token is to be set or deleted for an account that does not exist.
868. Additional information is to be set for an account that does not exist.
879. Credentials are to be set or deleted for an account that does not exist.
8810. Custom data is to be set for an account that does not exist.
8911. Distributed synchronization is to be enabled for an account that does not exist.
90
91**Solution**
92
93Check whether the account exists.
94
95## 12300004 Account Already Exists
96
97**Error Message**
98
99The account already exists.
100
101**Possible Causes**
102
103
104The account to create already exists.
105
106**Solution**
107
108Rename the account.
109
110## 12300005 Multiple Users Not Supported
111
112**Error Message**
113
114Multi-user is not supported.
115
116**Possible Causes**
117
118
119The device does not support multiple users.
120
121**Solution**
122
123Cancel the operation.
124
125## 12300006 Unsupported Account Type
126
127**Error Message**
128
129The account type is not supported.
130
131**Possible Causes**
132
133
134The device does not support the account type.
135
136**Solution**
137
138Create an account of the type supported by the device.
139
140## 12300007 Account Count Reached the Limit
141
142**Error Message**
143
144The number of accounts has reached the upper limit.
145
146**Possible Causes**
147
148
149The number of system accounts or application accounts has reached 1000.
150
151**Solution**
152
153Delete the accounts that are no longer used, and try again.
154
155## 12300008 Restricted Account
156
157**Error Message**
158
159The specified account is restricted.
160
161**Possible Causes**
162
163
1641. The account to delete is a reserved account of the system.
1652. The constraint source type to query belongs to a reserved account.
1663. The ID of the account to create is 0 to 100.
167
168**Solution**
169
170Operations cannot be performed on the reserved account of the system.
171
172## 12300009 Account Already Activated
173
174**Error Message**
175
176The account has been activated.
177
178**Possible Causes**
179
180
181The account to activate is already activated.
182
183**Solution**
184
185No further action is required.
186
187## 12300010 Account Service Not Respond
188
189**Error Message**
190
191The account service does not respond.
192
193**Possible Causes**
194
195
1961. Repeated requests, such as the requests for activating an account or applying the same settings, are submitted in a short period of time.
1972. When the number of authentication sessions for app accounts reaches 256, new authentication requests cannot be processed.
198
199**Solution**
200
201Wait for a while and try again.
202
203## 12300011 Event Listener Already Registered
204
205**Error Message**
206
207The event listener has been registered.
208
209**Possible Causes**
210
211
212The listener to register has been registered with the system already.
213
214**Solution**
215
216Cancel the operation or register an unregistered listener.
217
218## 12300012 Event Listener Not Registered
219
220**Error Message**
221
222The event listener has not been registered.
223
224**Possible Causes**
225
226
227The event listener to unregister has not been registered.
228
229**Solution**
230
231Only registered event listeners can be unregistered.
232
233## 12300013 Network Exception
234
235**Error Message**
236
237Network exception.
238
239**Possible Causes**
240
241
2421. The device is not connected to the network.
2432. The network connection is abnormal.
2443. The app does not have the network access permission.
2454. Unidentified network error.
246
247**Solution**
248
2491. Connect the device to the network.
2502. Check that the network connection is normal.
2513. Check that the application has the network access permission.
2524. Perform related operations again.
253
254## 12300014 Domain Account Not Authenticated
255
256**Error Message**
257
258The domain account is not authenticated.
259
260**Possible Causes**
261
262The domain account has not logged in.
263
264**Solution**
265
266Log in using the domain account.
267
268## 12300015 Duplicate Short Name
269
270**Error Message**
271
272The short name already exists.
273
274**Possible Causes**
275
276The short name used to create the account already exists.
277
278**Solution**
279
280Change the short name that does not exist.
281
282## 12300016 Login Accounts Reached the Limit
283
284**Error Message**
285
286The number of logged in accounts reaches the upper limit.
287
288**Possible Causes**
289
290The number of login accounts has reached the upper limit. No more accounts can be used to log in.
291
292**Solution**
293
294Log out of the system and log in to the system using a new account.
295
296## 12300101 Incorrect Credential
297
298**Error Message**
299
300The credential is incorrect.
301
302**Possible Causes**
303
304
3051. An incorrect password is entered.
3062. The biological feature does not match the feature enrolled.
3073. The token is invalid.
308
309**Solution**
310
311Enter a correct credential and try again.
312
313## 12300102 Credential Not Exist
314
315**Error Message**
316
317The credential does not exist.
318
319**Possible Causes**
320
321
3221. The credential to authenticate has not been enrolled.
3232. The credential to query has not been enrolled.
3243. The credential to delete has not been enrolled.
325
326**Solution**
327
328Check whether the credential has been enrolled.
329
330## 12300103 Credential Inputer Already Exists
331
332**Error Message**
333
334The credential inputer already exists.
335
336**Possible Causes**
337
338
339The PIN inputer has been registered and cannot be registered again before deregistration.
340
341**Solution**
342
343No further action is required.
344
345## 12300104 Credential Inputer Not Exist
346
347**Error Message**
348
349The credential inputer is not found.
350
351**Possible Causes**
352
353
354No credential inputer is registered when a credential is authenticated, added or modified.
355
356**Solution**
357
358Register a credential inputer.
359
360## 12300105 Trust Level Not Supported
361
362**Error Message**
363
364The trust level is not supported.
365
366**Possible Causes**
367
368
369The trust level passed in is not supported.
370
371**Solution**
372
373Use a trust level supported by the system.
374
375## 12300106 Authentication Type Not Supported
376
377**Error Message**
378
379The authentication type is not supported.
380
381**Possible Causes**
382
383
384The authentication type passed in is not supported.
385
386**Solution**
387
388Use an authentication type supported by the system.
389
390## 12300107 Authentication Type Not Exist
391
392**Error Message**
393
394The authentication type does not exist.
395
396**Possible Causes**
397
398
399The specified authentication type does not exist when a token is queried or deleted.
400
401**Solution**
402
403Use an existing authentication type.
404
405## 12300108 Authentication Session Not Exist
406
407**Error Message**
408
409The authentication session does not exist.
410
411**Possible Causes**
412
413
414
415The session callback to query does not exist.
416
417**Solution**
418
419Use an opened session to query session callbacks.
420
421## 12300109 Authentication, Credential Enrollment, or Update Canceled
422
423**Error Message**
424
425The authentication, enrollment, or update operation is canceled.
426
427**Possible Causes**
428
429
430The user cancels the authentication.
431The user canceled the credential enrollment.
432The user canceled the update during the credential enrollment process.
433
434**Solution**
435
436No further action is required.
437
438## 12300110 Authentication Locked
439
440**Error Message**
441
442The authentication is locked.
443
444**Possible Causes**
445
446
447The number of authentication type errors exceeds the limit.
448
449**Solution**
450
451Try again after the freezing time.
452
453## 12300111 Authentication Timed Out
454
455**Error Message**
456
457The authentication time out.
458
459**Possible Causes**
460
461
4621. The authentication or credential enrollment of a system account takes more than three minutes.
4632. The authentication service does not respond in time due to network problems.
464
465**Solution**
466
4671. Try again if the authentication or credential enrollment times out.
4682. Check and rectify network problems, and try again.
469
470## 12300112 Authentication Service Not Respond
471
472**Error Message**
473
474The authentication service is busy.
475
476**Possible Causes**
477
478
479The total number of system accounts being authenticated exceeds 5.
480The authentication service of the third-party app does not respond.
481
482**Solution**
483
484Try again later.
485
486## 12300113 Authentication Service Not Exist
487
488**Error Message**
489
490The account authentication service does not exist.
491
492**Possible Causes**
493
494
495For application accounts:
4961. When an authentication is requested, the app does not support the authentication service.
4972. When an account is added implicitly, the app does not support the authentication service.
4983. When the credential of a specified account is verified, the app does not support the authentication service.
4994. When the authenticator attributes are set for an app, the app does not support the authentication service.
5005. When the account tags are checked, the specified app does not support the authentication service.
501
502**Solution**
503
504Cancel the operation or authenticate an app that supports the authentication service.
505
506## 12300114 Authentication Service Abnormal
507
508**Error Message**
509
510The account authentication service works abnormally.
511
512**Possible Causes**
513
514
5151. An unknown error occurs in the identity authentication service.
5162. The app authenticator does not comply with specifications.
517
518**Solution**
519
5201. Try again or restart the system.
5212. Use the app authenticator that complies with specifications.
522
523## 12300115 User Authentication Passwords Reached the Limit
524
525**Error Message**
526
527The number of credentials reaches the upper limit.
528
529**Possible Causes**
530
5311. An unknown error occurs in the identity authentication service.
5322. The user already has a password of the corresponding type and cannot add a password.
533
534**Solution**
535
5361. Try again or restart the system.
5372. Change the password or delete the existing password.
538
539## 12300116 Failed to Verify the Credential Complexity
540
541**Error Message**
542
543Credential complexity verification failed.
544
545**Possible Causes**
546
547The credential is too simple.
548
549**Solution**
550
551Enroll a credential that contains specific characters as required.
552
553## 12300117 PIN Expired
554
555**Error Message**
556
557PIN is expired.
558
559**Possible Causes**
560
561The PIN for user authentication has expired.
562
563**Solution**
564
565Reset the PIN.
566
567## 12400001 Application Not Exist
568
569**Error Message**
570
571The application does not exist.
572
573**Possible Causes**
574
575
5761. The target app does not exist when the app permission is set.
5772. The target app does not exist when the app permission is authorized.
578
579**Solution**
580
581Check that the target app has been installed, and use the bundle of the app.
582
583## 12400002 Custom Data Not Exist
584
585**Error Message**
586
587The custom data does not exist.
588
589**Possible Causes**
590
591
592The key does not exist when you query the custom data of the account.
593
594**Solution**
595
596Query the custom data with a key that is already defined.
597
598## 12400003 Custom Data Records Reached the Limit
599
600**Error Message**
601
602The number of custom data records reaches the upper limit.
603
604**Possible Causes**
605
606
607The number of custom data records of the target account has reached 512.
608
609**Solution**
610
611Delete the custom data records that are no longer used.
612
613## 12400004 Token Count Reached the Limit
614
615**Error Message**
616
617The number of tokens reaches the upper limit.
618
619**Possible Causes**
620
621
622The number of tokens of the target account has reached 1024.
623
624**Solution**
625
626Delete the tokens that are no longer used, and try again.
627
628## 12400005 Bundles in the OAuth List Reached the Limit
629
630**Error Message**
631
632The size of the authorization list reaches the upper limit.
633
634**Possible Causes**
635
636
637The number of bundles in the authorization list has reached 1024.
638
639**Solution**
640
6411. Revoke authorization from the apps that do not require the authorization and try again.
642