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