errorcode-account.md 11.4 KB
Newer Older
A
Annie_wang 已提交
1
# Account Management Error Codes
A
Annie_wang 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15

The following includes the error codes for OS accounts, distributed accounts, and app accounts.

## 12300001 System Service Abnormal

**Error Message**

System service works abnormally.

**Possible Causes**

The possible causes are as follows:
1. The account management service cannot start properly.
2. The IPC object for account management cannot be obtained.
A
Annie_wang 已提交
16
3. The services on which the account management depends cannot start properly, or the IPC object on which the account management depends cannot be obtained.
A
Annie_wang 已提交
17 18 19
4. The service is not initialized.
5. The disk space is insufficient.
6. The file read or write fails.
A
Annie_wang 已提交
20 21 22
7. Directories cannot be created. 
8. Files cannot be created or deleted.
9. The database cannot be read or written.
A
Annie_wang 已提交
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76

**Solution**

Try again later or restart the device.

## 12300002 Invalid Parameter

**Error Message**

Invalid parameter. 

**Possible Causes**

The possible causes are as follows:
1. The user name is empty.
2. The user name of the OS account exceeds 1024 characters.
3. The user name of the distributed account exceeds 256 characters.
4. The OS account ID is less than 0 or 100, or greater than 1099.
5. The distributed account ID exceeds 512 characters.
6. The event type passed in for the distributed account is not supported.
7. The domain name is empty.
8. The domain name exceeds 128 characters.
9. The domain account is empty.
10. The domain account exceeds 512 characters.
11. The constraint is empty.
12. The constraint exceeds 128 characters.
13. Invalid authentication or query parameters are passed in.
14. The profile photo string of the OS account exceeds 4 KB.
15. The profile photo string of the distributed account exceeds 2 MB.
16. The images are not in .jpg or .png format.
17. The app account name exceeds 512 characters.
18. The authentication type exceeds 1024 characters.
19. The token exceeds 1024 characters.
20. The key exceeds 1024 characters.
21. The custom data exceeds 1024 characters.
22. The token is invalid.
23. The context ID is invalid.
24. The credential ID is invalid.

**Solution**

Set parameters correctly.

## 12300003 Account Not Exist

**Error Message**

The account does not exist.

**Possible Causes**

The possible causes are as follows:
1. The account to query, activate, or delete is not created.
2. The account to query, activate, or delete has been deleted.
A
Annie_wang 已提交
77
3. The constraint, user name, or profile photo is set for an account that has been deleted.
A
Annie_wang 已提交
78
4. The account to update is not created.
A
Annie_wang 已提交
79 80 81 82 83 84 85
5. The access permission is to be set for an account that does not exist.
6. The password is to be set, deleted, or queried for an account that does not exist.
7. The token is to be set or deleted for an account that does not exist.
8. Additional information is to be set for an account that does not exist.
9. Credentials are to be set for an account that does not exist.
10. Custom data is to be set for an account that does not exist.
11. Distributed synchronization is to be enabled for an account that does not exist.
A
Annie_wang 已提交
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140

**Solution**

Check whether the account exists.

## 12300004 Account Already Exists

**Error Message**

The account already exists.

**Possible Causes**

The account to create already exists.

**Solution**

Rename the account.

## 12300005 Multiple Users Not Supported

**Error Message**

Multi-user is not supported.

**Possible Causes**

The device does not support multiple users.

**Solution**

Cancel the operation.

## 12300006 Account Type Not Supported

**Error Message**

The account type is not supported.

**Possible Causes**

The device does not support the account type.

**Solution**

Create an account of the type supported by the device.

## 12300007 The Number of Accounts Has Reached the Limit

**Error Message**

The number of accounts has reached the limit.  

**Possible Causes**

A
Annie_wang 已提交
141
A maximum of 1,000 OS accounts or app accounts can be created.
A
Annie_wang 已提交
142 143 144

**Solution**

A
Annie_wang 已提交
145
Delete the accounts that are no longer used, and try again.
A
Annie_wang 已提交
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175

## 12300008 The Account Is Restricted

**Error Message**

The specified account is restricted.

**Possible Causes**

The possible causes are as follows:
1. The account to delete is a reserved account of the system.
2. The constraint source type to query belongs to a reserved account.
3. The ID of the account to create is 0 to 100.

**Solution**

Operations cannot be performed on the reserved account of the system.

## 12300009 Account Already Activated

**Error Message**

The account has been activated.

**Possible Causes**

The account to activate is already activated.

**Solution**

A
Annie_wang 已提交
176
No further action is required.
A
Annie_wang 已提交
177 178 179 180 181 182 183 184 185 186

## 12300010 Account Service Not Respond

**Error Message**

The account service does not respond.

**Possible Causes**

The possible causes are as follows:
A
Annie_wang 已提交
187
1. Repeated requests, such as the requests for activating an account or applying the same settings, are submitted in a short period of time.
A
Annie_wang 已提交
188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
2. When the number of authentication sessions for app accounts reaches 256, new authentication requests cannot be processed.

**Solution**

Wait for a while and try again.

## 12300011 Event Listener Already Registered

**Error Message**

The event listener has been registered.

**Possible Causes**

The listener to register has been registered with the system already.

**Solution**

Cancel the operation or register an unregistered listener.

## 12300012 Event Listener Not Registered

**Error Message**

The event listener has not been registered.

**Possible Causes**

The event listener to unregister has not been registered.

**Solution**

Only registered event listeners can be unregistered.

## 12300101 Incorrect Credential

**Error Message**

The credential is incorrect.

**Possible Causes**

The possible causes are as follows:
1. An incorrect password is entered.
2. The biological feature does not match the feature enrolled.
2. The token is invalid.

**Solution**

Enter a correct credential and try again.

## 12300102 Credential Not Exist

**Error Message**

The credential does not exist.

**Possible Causes**

The possible causes are as follows:
1. The credential to authenticate has not been enrolled.
2. The credential to query has not been enrolled.
3. The credential to delete has not been enrolled.

**Solution**

Check whether the credential has been enrolled.

## 12300103 Credential Inputer Already Exists

**Error Message**

The crdential inputer already exists.

**Possible Causes**

The PIN inputer has been registered and cannot be registered again before deregistration.

**Solution**

No further action is required.

## 12300104 Credential Inputer Not Exist

**Error Message**

The credential inputer is not found.

**Possible Causes**

No credential inputer is registered when a credential is authenticated, added or modified.

**Solution**

Register a credential inputer.

## 12300105 Trust Level Not Supported

**Error Message**

The trust level is not supported.

**Possible Causes**

The trust level passed in is not supported.

**Solution**

Use a trust level supported by the system.

## 12300106 Authentication Type Not Supported

**Error Message**

The authentication type is not supported.

**Possible Causes**

The authentication type passed in is not supported.

**Solution**

Use an authentication type supported by the system.

## 12300107 Authentication Type Not Exist

**Error Message**

The authentication type does not exist.

**Possible Causes**

The specified authentication type does not exist when a token is queried or deleted.

**Solution**

Use an existing authentication type.

## 12300108 Authentication Session Not Exist

**Error Message**

The authentication session does not exist.

**Possible Causes**

The session callback to query does not exist.

**Solution**

Use an opened session to query session callbacks.

## 12300109 Authentication Canceled

**Error Message**

The authentication is canceled.

**Possible Causes**

The user cancels the authentication.

**Solution**

No further action is required.

## 12300110 Authentication Locked

**Error Message**

The authentication is locked.

**Possible Causes**

The number of authentication type errors exceeds the limit.

**Solution**

Try again after the freezing time.

## 12300111 Authentication Timed Out

**Error Message**

The authentication timed out.

**Possible Causes**

The possible causes are as follows:
1. The authentication or credential enrollment of an OS account takes more than three minutes.
2. The authentication service does not respond in time due to network problems.

**Solution**

1. Try again if the authentication or credential enrollment times out.
2. Check and rectify network problems, and try again.

## 12300112 Authentication Service Not Respond

**Error Message**

The authentication service does not respond.

**Possible Causes**

The possible causes are as follows:
A
Annie_wang 已提交
394 395
The total number of OS accounts being authenticated exceeds 5.
The authentication service of the third-party app does not respond.
A
Annie_wang 已提交
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413

**Solution**

Try again later.

## 12300113 Authentication Service Not Exist

**Error Message**

The account authentication service does not exist.

**Possible Causes**

For app accounts:
1. When an authentication is requested, the app does not support the authentication service.
2. When an account is added implicitly, the app does not support the authentication service.
3. When the credential of a specified account is verified, the app does not support the authentication service.
4. When the authenticator attributes are set for an app, the app does not support the authentication service.
A
Annie_wang 已提交
414
5. When the account tags are checked, the specified app does not support the authentication service.
A
Annie_wang 已提交
415 416 417

**Solution**

A
Annie_wang 已提交
418
Cancel the operation or authenticate an app that supports the authentication service.
A
Annie_wang 已提交
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435

## 12300114 Authentication Service Abnormal

**Error Message**

The account authentication service works abnormally.

**Possible Causes**

The possible causes are as follows:
1. An unknown error occurs in the identity authentication service.
2. The app authenticator does not comply with specifications.

**Solution**

1. Try again or restart the system.
2. Use the app authenticator that complies with specifications.
A
Annie_wang 已提交
436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508

## 12400001 Application Not Exist

**Error Message**

The application does not exist.

**Possible Causes**

The possible causes are as follows:
1. The target app does not exist when the app permission is set.
2. The target app does not exist when the app permission is authorized.

**Solution**

Check that the target app has been installed and use the bundle of the app.

## 12400002 Custom Data Not Exist

**Error Message**

The custom data does not exist.

**Possible Causes**

The key does not exist when you query the custom data of the account.

**Solution**

Query the custom data with a key that is already defined.

## 12400003 Custom Data Records Reached the Limit

**Error Message**

The number of custom data reaches upper limit.

**Possible Causes**

The number of custom data records of the target account has reached 512.

**Solution**

Delete the custom data records that are no longer used.

## 12400004 Token Count Reached the Limit

**Error Message**

The number of token reaches upper limit.

**Possible Causes**

The number of tokens of the target account has reached 1024.

**Solution**

Delete the tokens that are not longer used, and try again.

## 12400005 Bundles in the OAuth List Reached the Limit

**Error Message**

The size of authorization list reaches upper limit.

**Possible Causes**

The number of bundles in the authorization list has reached 1024.

**Solution**

Revoke authorization from the apps that do not require the authorization and try again.