1e41f4b71Sopenharmony_ci# Access Control Error Codes 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ci> **NOTE** 4e41f4b71Sopenharmony_ci> 5e41f4b71Sopenharmony_ci> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci## 12100001 Invalid Parameters 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Error Message** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciInvalid Parameter. Error message: ${messageInfo}. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Possible Causes** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis error code is reported when the parameter verification fails. The possible causes are as follows: 16e41f4b71Sopenharmony_ci- The value of **tokenId** is **0**. 17e41f4b71Sopenharmony_ci- The permission name is empty or exceeds 256 characters. 18e41f4b71Sopenharmony_ci- The **flag** value in the permission authorization or revocation request is invalid. 19e41f4b71Sopenharmony_ci- The parameters specified for registering a listener are incorrect. 20e41f4b71Sopenharmony_ci- The specified context does not belong to the current application. 21e41f4b71Sopenharmony_ci- The requested permissions do not belong to the same permission group. 22e41f4b71Sopenharmony_ci- The requested permissions include permissions that are not declared by the application. 23e41f4b71Sopenharmony_ci- The type of the requested global switch is invalid. 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci**Solution** 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ciCorrect invalid parameter values. 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci 30e41f4b71Sopenharmony_ci## 12100002 TokenId Not Exist 31e41f4b71Sopenharmony_ci 32e41f4b71Sopenharmony_ci**Error Message** 33e41f4b71Sopenharmony_ci 34e41f4b71Sopenharmony_ciTokenId does not exist. 35e41f4b71Sopenharmony_ci 36e41f4b71Sopenharmony_ci**Possible Causes** 37e41f4b71Sopenharmony_ci 38e41f4b71Sopenharmony_ci- The specified **tokenId** does not exist. 39e41f4b71Sopenharmony_ci- The process of the specified **tokenId** is not an application process. 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ci**Solution** 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ciSet **tokenId** correctly. 44e41f4b71Sopenharmony_ci 45e41f4b71Sopenharmony_ci 46e41f4b71Sopenharmony_ci## 12100003 Permission Not Exist 47e41f4b71Sopenharmony_ci 48e41f4b71Sopenharmony_ci**Error Message** 49e41f4b71Sopenharmony_ci 50e41f4b71Sopenharmony_ciPermission does not exist. 51e41f4b71Sopenharmony_ci 52e41f4b71Sopenharmony_ci**Possible Causes** 53e41f4b71Sopenharmony_ci 54e41f4b71Sopenharmony_ci- The specified **permissionName** does not exist. 55e41f4b71Sopenharmony_ci- The specified **permissionName** does not match the **tokenId** in the permission authorization or revocation scenario. 56e41f4b71Sopenharmony_ci- The specified **permissionName** is not a sensitive permission that requires user authorization. 57e41f4b71Sopenharmony_ci 58e41f4b71Sopenharmony_ci**Solution** 59e41f4b71Sopenharmony_ci 60e41f4b71Sopenharmony_ciSet **permissionName** correctly. For details, see [Permissions for All Applications](../../security/AccessToken/permissions-for-all.md). 61e41f4b71Sopenharmony_ci 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ci## 12100004 APIs Not Used in Pairs 64e41f4b71Sopenharmony_ci 65e41f4b71Sopenharmony_ci**Error Message** 66e41f4b71Sopenharmony_ci 67e41f4b71Sopenharmony_ciThe API is not used in pair with others. 68e41f4b71Sopenharmony_ci 69e41f4b71Sopenharmony_ci**Possible Causes** 70e41f4b71Sopenharmony_ci 71e41f4b71Sopenharmony_ci1. One of the APIs that need to be used in pairs is repeatedly called. 72e41f4b71Sopenharmony_ci2. One of the APIs that need to be used in pairs is independently called. 73e41f4b71Sopenharmony_ci 74e41f4b71Sopenharmony_ci**Solution** 75e41f4b71Sopenharmony_ci 76e41f4b71Sopenharmony_ci1. For the APIs that need to be used in pairs, for example, **on()** and **off()**, check whether **on()** with the same parameters is called again before **off()** is called. 77e41f4b71Sopenharmony_ci2. For the APIs that need to be used in pairs, for example, **on()** and **off()**, check whether **off()** is called before **on()**. 78e41f4b71Sopenharmony_ci 79e41f4b71Sopenharmony_ci 80e41f4b71Sopenharmony_ci## 12100005 Listener Overflows 81e41f4b71Sopenharmony_ci 82e41f4b71Sopenharmony_ci**Error Message** 83e41f4b71Sopenharmony_ci 84e41f4b71Sopenharmony_ciThe number of listeners exceeds the limit. 85e41f4b71Sopenharmony_ci 86e41f4b71Sopenharmony_ci**Possible Causes** 87e41f4b71Sopenharmony_ci 88e41f4b71Sopenharmony_ciThe number of listeners exceeds 200. 89e41f4b71Sopenharmony_ci 90e41f4b71Sopenharmony_ci**Solution** 91e41f4b71Sopenharmony_ci 92e41f4b71Sopenharmony_ciRelease unused listeners in a timely manner. 93e41f4b71Sopenharmony_ci 94e41f4b71Sopenharmony_ci 95e41f4b71Sopenharmony_ci## 12100006 Permission Granting or Revocation Not Supported 96e41f4b71Sopenharmony_ci 97e41f4b71Sopenharmony_ci**Error Message** 98e41f4b71Sopenharmony_ci 99e41f4b71Sopenharmony_ciThe specified application does not support the permissions granted or ungranted as specified. 100e41f4b71Sopenharmony_ci 101e41f4b71Sopenharmony_ci**Possible Causes** 102e41f4b71Sopenharmony_ci 103e41f4b71Sopenharmony_ci1. The specified **tokenId** is the identity of a remote device. Distributed permission granting and revocation are not yet supported. 104e41f4b71Sopenharmony_ci2. The specified **tokenId** belongs to a sandbox application, which is not allowed to request the specified permission. 105e41f4b71Sopenharmony_ci 106e41f4b71Sopenharmony_ci**Solution** 107e41f4b71Sopenharmony_ci 108e41f4b71Sopenharmony_ci1. Check whether the method of obtaining **tokenId** is correct. 109e41f4b71Sopenharmony_ci2. Check whether the sandbox application works in restrictive mode. Most permissions cannot be granted to a sandbox application in restrictive mode. 110e41f4b71Sopenharmony_ci 111e41f4b71Sopenharmony_ci 112e41f4b71Sopenharmony_ci## 12100007 System Service Not Working Properly 113e41f4b71Sopenharmony_ci 114e41f4b71Sopenharmony_ci**Error Message** 115e41f4b71Sopenharmony_ci 116e41f4b71Sopenharmony_ciThe service is abnormal. 117e41f4b71Sopenharmony_ci 118e41f4b71Sopenharmony_ci**Possible Causes** 119e41f4b71Sopenharmony_ci 120e41f4b71Sopenharmony_ci1. The permission management service fails to start properly. 121e41f4b71Sopenharmony_ci2. The data read or write via IPC fails. 122e41f4b71Sopenharmony_ci 123e41f4b71Sopenharmony_ci**Solution** 124e41f4b71Sopenharmony_ci 125e41f4b71Sopenharmony_ciTry again later or restart the device. 126e41f4b71Sopenharmony_ci 127e41f4b71Sopenharmony_ci 128e41f4b71Sopenharmony_ci## 12100008 Out of Memory 129e41f4b71Sopenharmony_ci 130e41f4b71Sopenharmony_ci**Error Message** 131e41f4b71Sopenharmony_ci 132e41f4b71Sopenharmony_ciOut of memory. 133e41f4b71Sopenharmony_ci 134e41f4b71Sopenharmony_ci**Possible Causes** 135e41f4b71Sopenharmony_ci 136e41f4b71Sopenharmony_ciThe system memory is insufficient. 137e41f4b71Sopenharmony_ci 138e41f4b71Sopenharmony_ci**Solution** 139e41f4b71Sopenharmony_ci 140e41f4b71Sopenharmony_ciTry again later or restart the device. 141e41f4b71Sopenharmony_ci 142e41f4b71Sopenharmony_ci 143e41f4b71Sopenharmony_ci## 12100009 Internal Service Error 144e41f4b71Sopenharmony_ci 145e41f4b71Sopenharmony_ci**Error Message** 146e41f4b71Sopenharmony_ci 147e41f4b71Sopenharmony_ciCommon inner error. 148e41f4b71Sopenharmony_ci 149e41f4b71Sopenharmony_ci**Possible Causes** 150e41f4b71Sopenharmony_ci 151e41f4b71Sopenharmony_ciAn internal error occurs in the system service. 152e41f4b71Sopenharmony_ci 153e41f4b71Sopenharmony_ci**Solution** 154e41f4b71Sopenharmony_ci 155e41f4b71Sopenharmony_ciAnalyze the fault log to identify the error. 156e41f4b71Sopenharmony_ci 157e41f4b71Sopenharmony_ci## 12100010 Pending Request 158e41f4b71Sopenharmony_ci 159e41f4b71Sopenharmony_ci**Error Message** 160e41f4b71Sopenharmony_ci 161e41f4b71Sopenharmony_ciThe request already exists. 162e41f4b71Sopenharmony_ci 163e41f4b71Sopenharmony_ci**Possible Causes** 164e41f4b71Sopenharmony_ci 165e41f4b71Sopenharmony_ciThe last request has not been processed yet. 166e41f4b71Sopenharmony_ci 167e41f4b71Sopenharmony_ci**Solution** 168e41f4b71Sopenharmony_ci 169e41f4b71Sopenharmony_ciWait until the last request is processed. 170e41f4b71Sopenharmony_ci 171e41f4b71Sopenharmony_ci 172e41f4b71Sopenharmony_ci## 12100011 All Requested Permissions Granted 173e41f4b71Sopenharmony_ci 174e41f4b71Sopenharmony_ci**Error Message** 175e41f4b71Sopenharmony_ci 176e41f4b71Sopenharmony_ciAll permissions in the permission list have been granted. 177e41f4b71Sopenharmony_ci 178e41f4b71Sopenharmony_ci**Possible Causes** 179e41f4b71Sopenharmony_ci 180e41f4b71Sopenharmony_ciAll the requested permissions have been granted. 181e41f4b71Sopenharmony_ci 182e41f4b71Sopenharmony_ci**Solution** 183e41f4b71Sopenharmony_ci 184e41f4b71Sopenharmony_ciNone. 185e41f4b71Sopenharmony_ci 186e41f4b71Sopenharmony_ci 187e41f4b71Sopenharmony_ci## 12100012 Not All Permissions Are Rejected by the User 188e41f4b71Sopenharmony_ci 189e41f4b71Sopenharmony_ci**Error Message** 190e41f4b71Sopenharmony_ci 191e41f4b71Sopenharmony_ciThe permission list contains the permission that has not been revoked by the user. 192e41f4b71Sopenharmony_ci 193e41f4b71Sopenharmony_ci**Possible Causes** 194e41f4b71Sopenharmony_ci 195e41f4b71Sopenharmony_ciThe requested permissions include the permissions that are not rejected by the user. 196e41f4b71Sopenharmony_ci 197e41f4b71Sopenharmony_ci**Solution** 198e41f4b71Sopenharmony_ci 199e41f4b71Sopenharmony_ciCall **requestPermissionsFromUser** to request permissions from the user first. 200e41f4b71Sopenharmony_ci 201e41f4b71Sopenharmony_ci 202e41f4b71Sopenharmony_ci## 12100013 Global Switch Enabled 203e41f4b71Sopenharmony_ci 204e41f4b71Sopenharmony_ci**Error Message** 205e41f4b71Sopenharmony_ci 206e41f4b71Sopenharmony_ciThe specific global switch is already open. 207e41f4b71Sopenharmony_ci 208e41f4b71Sopenharmony_ci**Possible Causes** 209e41f4b71Sopenharmony_ci 210e41f4b71Sopenharmony_ciThe global switch is already turned on. 211e41f4b71Sopenharmony_ci 212e41f4b71Sopenharmony_ci**Solution** 213e41f4b71Sopenharmony_ci 214e41f4b71Sopenharmony_ciNone. 215