• 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:
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
40The possible causes are as follows:
411. The user name is empty.
422. The user name of the OS account exceeds 1024 characters.
433. The user name of the distributed account exceeds 256 characters.
444. The OS 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 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 OS 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 app 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
78The possible causes are as follows:
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 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
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 The Account Is Restricted
152
153**Error Message**
154
155The specified account is restricted.
156
157**Possible Causes**
158
159The possible causes are as follows:
1601. The account to delete is a reserved account of the system.
1612. The constraint source type to query belongs to a reserved account.
1623. 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:
1911. Repeated requests, such as the requests for activating an account or applying the same settings, are submitted in a short period of time.
1922. 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## 12300101 Incorrect Credential
227
228**Error Message**
229
230The credential is incorrect.
231
232**Possible Causes**
233
234The possible causes are as follows:
2351. An incorrect password is entered.
2362. The biological feature does not match the feature enrolled.
2372. The token is invalid.
238
239**Solution**
240
241Enter a correct credential and try again.
242
243## 12300102 Credential Not Exist
244
245**Error Message**
246
247The credential does not exist.
248
249**Possible Causes**
250
251The possible causes are as follows:
2521. The credential to authenticate has not been enrolled.
2532. The credential to query has not been enrolled.
2543. The credential to delete has not been enrolled.
255
256**Solution**
257
258Check whether the credential has been enrolled.
259
260## 12300103 Credential Inputer Already Exists
261
262**Error Message**
263
264The crdential inputer already exists.
265
266**Possible Causes**
267
268The PIN inputer has been registered and cannot be registered again before deregistration.
269
270**Solution**
271
272No further action is required.
273
274## 12300104 Credential Inputer Not Exist
275
276**Error Message**
277
278The credential inputer is not found.
279
280**Possible Causes**
281
282No credential inputer is registered when a credential is authenticated, added or modified.
283
284**Solution**
285
286Register a credential inputer.
287
288## 12300105 Trust Level Not Supported
289
290**Error Message**
291
292The trust level is not supported.
293
294**Possible Causes**
295
296The trust level passed in is not supported.
297
298**Solution**
299
300Use a trust level supported by the system.
301
302## 12300106 Authentication Type Not Supported
303
304**Error Message**
305
306The authentication type is not supported.
307
308**Possible Causes**
309
310The authentication type passed in is not supported.
311
312**Solution**
313
314Use an authentication type supported by the system.
315
316## 12300107 Authentication Type Not Exist
317
318**Error Message**
319
320The authentication type does not exist.
321
322**Possible Causes**
323
324The specified authentication type does not exist when a token is queried or deleted.
325
326**Solution**
327
328Use an existing authentication type.
329
330## 12300108 Authentication Session Not Exist
331
332**Error Message**
333
334The authentication session does not exist.
335
336**Possible Causes**
337
338The session callback to query does not exist.
339
340**Solution**
341
342Use an opened session to query session callbacks.
343
344## 12300109 Authentication Canceled
345
346**Error Message**
347
348The authentication is canceled.
349
350**Possible Causes**
351
352The user cancels the authentication.
353
354**Solution**
355
356No further action is required.
357
358## 12300110 Authentication Locked
359
360**Error Message**
361
362The authentication is locked.
363
364**Possible Causes**
365
366The number of authentication type errors exceeds the limit.
367
368**Solution**
369
370Try again after the freezing time.
371
372## 12300111 Authentication Timed Out
373
374**Error Message**
375
376The authentication timed out.
377
378**Possible Causes**
379
380The possible causes are as follows:
3811. The authentication or credential enrollment of an OS account takes more than three minutes.
3822. The authentication service does not respond in time due to network problems.
383
384**Solution**
385
3861. Try again if the authentication or credential enrollment times out.
3872. Check and rectify network problems, and try again.
388
389## 12300112 Authentication Service Not Respond
390
391**Error Message**
392
393The authentication service does not respond.
394
395**Possible Causes**
396
397The possible causes are as follows:
398The total number of OS accounts being authenticated exceeds 5.
399The authentication service of the third-party app does not respond.
400
401**Solution**
402
403Try again later.
404
405## 12300113 Authentication Service Not Exist
406
407**Error Message**
408
409The account authentication service does not exist.
410
411**Possible Causes**
412
413For app accounts:
4141. When an authentication is requested, the app does not support the authentication service.
4152. When an account is added implicitly, the app does not support the authentication service.
4163. When the credential of a specified account is verified, the app does not support the authentication service.
4174. When the authenticator attributes are set for an app, the app does not support the authentication service.
4185. When the account tags are checked, the specified app does not support the authentication service.
419
420**Solution**
421
422Cancel the operation or authenticate an app that supports the authentication service.
423
424## 12300114 Authentication Service Abnormal
425
426**Error Message**
427
428The account authentication service works abnormally.
429
430**Possible Causes**
431
432The possible causes are as follows:
4331. An unknown error occurs in the identity authentication service.
4342. The app authenticator does not comply with specifications.
435
436**Solution**
437
4381. Try again or restart the system.
4392. Use the app authenticator that complies with specifications.
440
441## 12400001 Application Not Exist
442
443**Error Message**
444
445The application does not exist.
446
447**Possible Causes**
448
449The possible causes are as follows:
4501. The target app does not exist when the app permission is set.
4512. The target app does not exist when the app permission is authorized.
452
453**Solution**
454
455Check that the target app has been installed and use the bundle of the app.
456
457## 12400002 Custom Data Not Exist
458
459**Error Message**
460
461The custom data does not exist.
462
463**Possible Causes**
464
465The key does not exist when you query the custom data of the account.
466
467**Solution**
468
469Query the custom data with a key that is already defined.
470
471## 12400003 Custom Data Records Reached the Limit
472
473**Error Message**
474
475The number of custom data reaches upper limit.
476
477**Possible Causes**
478
479The number of custom data records of the target account has reached 512.
480
481**Solution**
482
483Delete the custom data records that are no longer used.
484
485## 12400004 Token Count Reached the Limit
486
487**Error Message**
488
489The number of token reaches upper limit.
490
491**Possible Causes**
492
493The number of tokens of the target account has reached 1024.
494
495**Solution**
496
497Delete the tokens that are not longer used, and try again.
498
499## 12400005 Bundles in the OAuth List Reached the Limit
500
501**Error Message**
502
503The size of authorization list reaches upper limit.
504
505**Possible Causes**
506
507The number of bundles in the authorization list has reached 1024.
508
509**Solution**
510
511Revoke authorization from the apps that do not require the authorization and try again.
512
513