1e41f4b71Sopenharmony_ci# HiSysEvent 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## 1120001 Invalid Event Domain 8e41f4b71Sopenharmony_ci 9e41f4b71Sopenharmony_ci**Error Message** 10e41f4b71Sopenharmony_ci 11e41f4b71Sopenharmony_ciInvalid event domain. 12e41f4b71Sopenharmony_ci 13e41f4b71Sopenharmony_ci**Description** 14e41f4b71Sopenharmony_ci 15e41f4b71Sopenharmony_ciThis error code is reported if the **write** API is called to perform system event logging but the system ignores the logging operation because the input event domain name is invalid. 16e41f4b71Sopenharmony_ci 17e41f4b71Sopenharmony_ci**Possible Causes** 18e41f4b71Sopenharmony_ci 19e41f4b71Sopenharmony_ciThe specified event domain name does not comply with the following rules: 20e41f4b71Sopenharmony_ci 21e41f4b71Sopenharmony_ci- The event domain name contains only digits, letters, and underscores (\_). 22e41f4b71Sopenharmony_ci- The event domain name starts with a letter. 23e41f4b71Sopenharmony_ci- The event domain name is not empty and contains a maximum of 16 characters. 24e41f4b71Sopenharmony_ci 25e41f4b71Sopenharmony_ci**Solution** 26e41f4b71Sopenharmony_ci 27e41f4b71Sopenharmony_ciSpecify a valid event domain name. 28e41f4b71Sopenharmony_ci 29e41f4b71Sopenharmony_ci## 1120002 Invalid Event Name 30e41f4b71Sopenharmony_ci 31e41f4b71Sopenharmony_ci**Error Message** 32e41f4b71Sopenharmony_ci 33e41f4b71Sopenharmony_ciInvalid event name. 34e41f4b71Sopenharmony_ci 35e41f4b71Sopenharmony_ci**Description** 36e41f4b71Sopenharmony_ci 37e41f4b71Sopenharmony_ciThis error code is reported if the **write** API is called to perform system event logging but the system ignores the logging operation because the input event name is invalid. 38e41f4b71Sopenharmony_ci 39e41f4b71Sopenharmony_ci**Possible Causes** 40e41f4b71Sopenharmony_ci 41e41f4b71Sopenharmony_ciThe specified event name does not comply with the following rules: 42e41f4b71Sopenharmony_ci 43e41f4b71Sopenharmony_ci- The event name contains only digits, letters, and underscores (\_). 44e41f4b71Sopenharmony_ci- The event name starts with a letter. 45e41f4b71Sopenharmony_ci- The event name is not empty and contains a maximum of 32 characters. 46e41f4b71Sopenharmony_ci 47e41f4b71Sopenharmony_ci**Solution** 48e41f4b71Sopenharmony_ci 49e41f4b71Sopenharmony_ciCheck whether the event name is valid. 50e41f4b71Sopenharmony_ci 51e41f4b71Sopenharmony_ci## 11200003 Environment Error 52e41f4b71Sopenharmony_ci 53e41f4b71Sopenharmony_ci**Error Message** 54e41f4b71Sopenharmony_ci 55e41f4b71Sopenharmony_ciAbnormal environment. 56e41f4b71Sopenharmony_ci 57e41f4b71Sopenharmony_ci**Description** 58e41f4b71Sopenharmony_ci 59e41f4b71Sopenharmony_ciThis error code is reported if the **write** API is called to perform system event logging but the system ignores the logging operation because the environment is abnormal. 60e41f4b71Sopenharmony_ci 61e41f4b71Sopenharmony_ci**Possible Causes** 62e41f4b71Sopenharmony_ci 63e41f4b71Sopenharmony_ci1. The hiview service fails to be started. 64e41f4b71Sopenharmony_ci2. The socket of the hiview service is abnormal. 65e41f4b71Sopenharmony_ci 66e41f4b71Sopenharmony_ci**Solution** 67e41f4b71Sopenharmony_ci 68e41f4b71Sopenharmony_ciCall the **write** API again to perform event logging. 69e41f4b71Sopenharmony_ci 70e41f4b71Sopenharmony_ci## 11200004 Invalid Event Length 71e41f4b71Sopenharmony_ci 72e41f4b71Sopenharmony_ci**Error Message** 73e41f4b71Sopenharmony_ci 74e41f4b71Sopenharmony_ciThe event length exceeds the limit. 75e41f4b71Sopenharmony_ci 76e41f4b71Sopenharmony_ci**Description** 77e41f4b71Sopenharmony_ci 78e41f4b71Sopenharmony_ciThis error code is reported if the **write** API is called to perform system event logging but the system ignores the logging operation because the total event length is invalid. 79e41f4b71Sopenharmony_ci 80e41f4b71Sopenharmony_ci**Possible Causes** 81e41f4b71Sopenharmony_ci 82e41f4b71Sopenharmony_ciThe total event length exceeds 384 KB. 83e41f4b71Sopenharmony_ci 84e41f4b71Sopenharmony_ci**Solution** 85e41f4b71Sopenharmony_ci 86e41f4b71Sopenharmony_ciCheck whether the total event length is greater than 384 KB. 87e41f4b71Sopenharmony_ci 88e41f4b71Sopenharmony_ci## 11200051 Invalid Event Parameter 89e41f4b71Sopenharmony_ci 90e41f4b71Sopenharmony_ci**Error Message** 91e41f4b71Sopenharmony_ci 92e41f4b71Sopenharmony_ciInvalid event parameter. 93e41f4b71Sopenharmony_ci 94e41f4b71Sopenharmony_ci**Description** 95e41f4b71Sopenharmony_ci 96e41f4b71Sopenharmony_ciThis error code is reported if the **write** API is called to perform system event logging but the system throws an exception because the input parameter name is invalid. However, the system will continue to complete the logging operation. 97e41f4b71Sopenharmony_ci 98e41f4b71Sopenharmony_ci**Possible Causes** 99e41f4b71Sopenharmony_ci 100e41f4b71Sopenharmony_ciThe specified event parameter name does not comply with the following rules: 101e41f4b71Sopenharmony_ci 102e41f4b71Sopenharmony_ci- The event parameter name contains only digits, letters, and underscores (\_). 103e41f4b71Sopenharmony_ci- The event parameter name starts with a letter. 104e41f4b71Sopenharmony_ci- The event parameter name is not empty and contains a maximum of 48 characters. 105e41f4b71Sopenharmony_ci 106e41f4b71Sopenharmony_ci**Solution** 107e41f4b71Sopenharmony_ci 108e41f4b71Sopenharmony_ciCheck whether the event parameter name is valid. 109e41f4b71Sopenharmony_ci 110e41f4b71Sopenharmony_ci## 11200052 Length of Event Parameter Values of the String Type Exceeding the Limit 111e41f4b71Sopenharmony_ci 112e41f4b71Sopenharmony_ci**Error Message** 113e41f4b71Sopenharmony_ci 114e41f4b71Sopenharmony_ciThe size of the event parameter of the string type exceeds the limit. 115e41f4b71Sopenharmony_ci 116e41f4b71Sopenharmony_ci**Description** 117e41f4b71Sopenharmony_ci 118e41f4b71Sopenharmony_ciThis error code is reported if the **write** API is called to perform system event logging but the system throws an exception because the length of event parameter values of the string type is invalid. However, the system will continue to complete the logging operation. 119e41f4b71Sopenharmony_ci 120e41f4b71Sopenharmony_ci**Possible Causes** 121e41f4b71Sopenharmony_ci 122e41f4b71Sopenharmony_ciThe length of parameter values of the string type exceeds 10 KB. 123e41f4b71Sopenharmony_ci 124e41f4b71Sopenharmony_ci**Solution** 125e41f4b71Sopenharmony_ci 126e41f4b71Sopenharmony_ciCheck whether the length of parameter values of the string type exceeds 10 KB. 127e41f4b71Sopenharmony_ci 128e41f4b71Sopenharmony_ci## 11200053 Number of Event Parameters Exceeding the Limit 129e41f4b71Sopenharmony_ci 130e41f4b71Sopenharmony_ci**Error Message** 131e41f4b71Sopenharmony_ci 132e41f4b71Sopenharmony_ciThe number of event parameters exceeds the limit. 133e41f4b71Sopenharmony_ci 134e41f4b71Sopenharmony_ci**Description** 135e41f4b71Sopenharmony_ci 136e41f4b71Sopenharmony_ciThis error code is reported if the **write** API is called to perform system event logging but the system throws an exception because the number of event parameters is invalid. However, the system will continue to complete the logging operation. 137e41f4b71Sopenharmony_ci 138e41f4b71Sopenharmony_ci**Possible Causes** 139e41f4b71Sopenharmony_ci 140e41f4b71Sopenharmony_ciThe number of event parameters exceeds 128. 141e41f4b71Sopenharmony_ci 142e41f4b71Sopenharmony_ci**Solution** 143e41f4b71Sopenharmony_ci 144e41f4b71Sopenharmony_ciCheck whether the number of event parameters exceeds 128. 145e41f4b71Sopenharmony_ci 146e41f4b71Sopenharmony_ci## 11200054 Length of Event Parameter Values of the Array Type Exceeding the Limit 147e41f4b71Sopenharmony_ci 148e41f4b71Sopenharmony_ci**Error Message** 149e41f4b71Sopenharmony_ci 150e41f4b71Sopenharmony_ciThe number of event parameters of the array type exceeds the limit. 151e41f4b71Sopenharmony_ci 152e41f4b71Sopenharmony_ci**Description** 153e41f4b71Sopenharmony_ci 154e41f4b71Sopenharmony_ciThis error code is reported if the **write** API is called to perform system event logging but the system throws an exception because the length of event parameter values of the array type is invalid. However, the system will continue to complete the logging operation. 155e41f4b71Sopenharmony_ci 156e41f4b71Sopenharmony_ci**Possible Causes** 157e41f4b71Sopenharmony_ci 158e41f4b71Sopenharmony_ciThe length of a parameter values of the array type exceeds 100. 159e41f4b71Sopenharmony_ci 160e41f4b71Sopenharmony_ci**Solution** 161e41f4b71Sopenharmony_ci 162e41f4b71Sopenharmony_ciCheck whether the length of the parameter value of the array type exceeds 100. 163e41f4b71Sopenharmony_ci 164e41f4b71Sopenharmony_ci## 11200101 Number of Event Watchers Exceeding the Limit 165e41f4b71Sopenharmony_ci 166e41f4b71Sopenharmony_ci**Error Message** 167e41f4b71Sopenharmony_ci 168e41f4b71Sopenharmony_ciThe number of watchers exceeds the limit. 169e41f4b71Sopenharmony_ci 170e41f4b71Sopenharmony_ci**Description** 171e41f4b71Sopenharmony_ci 172e41f4b71Sopenharmony_ciThis error code is reported if the **addWatcher** API is called to add an event watcher but the system rejects the operation because the number of watchers has exceeded the limit. 173e41f4b71Sopenharmony_ci 174e41f4b71Sopenharmony_ci**Possible Causes** 175e41f4b71Sopenharmony_ci 176e41f4b71Sopenharmony_ciA total of 30 event watchers have been added. 177e41f4b71Sopenharmony_ci 178e41f4b71Sopenharmony_ci**Solution** 179e41f4b71Sopenharmony_ci 180e41f4b71Sopenharmony_ciCheck whether the number of event watchers exceeds 30. 181e41f4b71Sopenharmony_ci 182e41f4b71Sopenharmony_ci## 11200102 Number of Event Watcher Rules Exceeding the Limit 183e41f4b71Sopenharmony_ci 184e41f4b71Sopenharmony_ci**Error Message** 185e41f4b71Sopenharmony_ci 186e41f4b71Sopenharmony_ciThe number of watch rules exceeds the limit. 187e41f4b71Sopenharmony_ci 188e41f4b71Sopenharmony_ci**Description** 189e41f4b71Sopenharmony_ci 190e41f4b71Sopenharmony_ciThis error code is reported if the **addWatcher** API is called to add an event watcher but the system rejects the operation because the number of watcher rules has exceeded the limit. 191e41f4b71Sopenharmony_ci 192e41f4b71Sopenharmony_ci**Possible Causes** 193e41f4b71Sopenharmony_ci 194e41f4b71Sopenharmony_ciA total of 20 event watcher rules have been added. 195e41f4b71Sopenharmony_ci 196e41f4b71Sopenharmony_ci**Solution** 197e41f4b71Sopenharmony_ci 198e41f4b71Sopenharmony_ciCheck whether the number of event watcher rules exceeds 20. 199e41f4b71Sopenharmony_ci 200e41f4b71Sopenharmony_ci## 11200201 Event Watcher Not Exist 201e41f4b71Sopenharmony_ci 202e41f4b71Sopenharmony_ci**Error Message** 203e41f4b71Sopenharmony_ci 204e41f4b71Sopenharmony_ciThe watcher does not exist. 205e41f4b71Sopenharmony_ci 206e41f4b71Sopenharmony_ci**Description** 207e41f4b71Sopenharmony_ci 208e41f4b71Sopenharmony_ciThis error code is reported if the **removeWatcher** API is called to remove an event watcher but the system rejects the operation because the watcher does not exist. 209e41f4b71Sopenharmony_ci 210e41f4b71Sopenharmony_ci**Possible Causes** 211e41f4b71Sopenharmony_ci 212e41f4b71Sopenharmony_ci1. The event watcher to be removed is empty. 213e41f4b71Sopenharmony_ci2. The event watcher to be removed has not been successfully added. 214e41f4b71Sopenharmony_ci 215e41f4b71Sopenharmony_ci**Solution** 216e41f4b71Sopenharmony_ci 217e41f4b71Sopenharmony_ciCheck whether the event watcher to the removed is empty or whether the event watcher has been successfully added. 218e41f4b71Sopenharmony_ci 219e41f4b71Sopenharmony_ci## 11200301 Number of Query Rules Exceeding the Limit 220e41f4b71Sopenharmony_ci 221e41f4b71Sopenharmony_ci**Error Message** 222e41f4b71Sopenharmony_ci 223e41f4b71Sopenharmony_ciThe number of query rules exceeds the limit. 224e41f4b71Sopenharmony_ci 225e41f4b71Sopenharmony_ci**Description** 226e41f4b71Sopenharmony_ci 227e41f4b71Sopenharmony_ciThis error code is reported if the **query** API is called to query system events but the system ignores the operation because the number of query rules has exceeded the limit. 228e41f4b71Sopenharmony_ci 229e41f4b71Sopenharmony_ci**Possible Causes** 230e41f4b71Sopenharmony_ci 231e41f4b71Sopenharmony_ciThe number of query rules exceeds 100. 232e41f4b71Sopenharmony_ci 233e41f4b71Sopenharmony_ci**Solution** 234e41f4b71Sopenharmony_ci 235e41f4b71Sopenharmony_ciCheck whether the number of query rules exceeds 100. 236e41f4b71Sopenharmony_ci 237e41f4b71Sopenharmony_ci 238e41f4b71Sopenharmony_ci## 11200302 Invalid Query Rule 239e41f4b71Sopenharmony_ci 240e41f4b71Sopenharmony_ci**Error Message** 241e41f4b71Sopenharmony_ci 242e41f4b71Sopenharmony_ciInvalid query rule. 243e41f4b71Sopenharmony_ci 244e41f4b71Sopenharmony_ci 245e41f4b71Sopenharmony_ci**Description** 246e41f4b71Sopenharmony_ci 247e41f4b71Sopenharmony_ciThis error code is reported if the **query** API is called to query system events but the system ignores the operation because the input query rule is invalid. 248e41f4b71Sopenharmony_ci 249e41f4b71Sopenharmony_ci**Possible Causes** 250e41f4b71Sopenharmony_ci 251e41f4b71Sopenharmony_ci1. The event domain name in the query rule contains more than 16 characters or the event name contains more than 32 characters. 252e41f4b71Sopenharmony_ci2. The event domain name or event name in the query rule contains special characters. 253e41f4b71Sopenharmony_ci3. The event domain name or event name in the query rule is empty. 254e41f4b71Sopenharmony_ci 255e41f4b71Sopenharmony_ci**Solution** 256e41f4b71Sopenharmony_ci 257e41f4b71Sopenharmony_ciCheck whether the event domain name and event name configured in the query rule are valid. 258e41f4b71Sopenharmony_ci 259e41f4b71Sopenharmony_ci## 11200303 Number of Concurrent Queries Exceeding the Limit 260e41f4b71Sopenharmony_ci 261e41f4b71Sopenharmony_ci**Error Message** 262e41f4b71Sopenharmony_ci 263e41f4b71Sopenharmony_ciThe number of concurrent queriers exceeds the limit. 264e41f4b71Sopenharmony_ci 265e41f4b71Sopenharmony_ci**Description** 266e41f4b71Sopenharmony_ci 267e41f4b71Sopenharmony_ciThis error code is reported if the **query** API is called to query system events but the system ignores the operation because the number of concurrent queries has exceeded the limit. 268e41f4b71Sopenharmony_ci 269e41f4b71Sopenharmony_ci**Possible Causes** 270e41f4b71Sopenharmony_ci 271e41f4b71Sopenharmony_ciThe number of concurrent queries exceeds 4. 272e41f4b71Sopenharmony_ci 273e41f4b71Sopenharmony_ci**Solution** 274e41f4b71Sopenharmony_ci 275e41f4b71Sopenharmony_ciCheck whether more than four queries are performed at the same time. 276e41f4b71Sopenharmony_ci 277e41f4b71Sopenharmony_ci## 11200304 Query Frequency Exceeding the Limit 278e41f4b71Sopenharmony_ci 279e41f4b71Sopenharmony_ci**Error Message** 280e41f4b71Sopenharmony_ci 281e41f4b71Sopenharmony_ciThe query frequency exceeds the limit. 282e41f4b71Sopenharmony_ci 283e41f4b71Sopenharmony_ci**Description** 284e41f4b71Sopenharmony_ci 285e41f4b71Sopenharmony_ciThis error code is reported if the **query** API is called to query system events but the system ignores the operation because the query frequency has exceeded the limit. 286e41f4b71Sopenharmony_ci 287e41f4b71Sopenharmony_ci**Possible Causes** 288e41f4b71Sopenharmony_ci 289e41f4b71Sopenharmony_ciMore than 50 queries are performed in one second. 290e41f4b71Sopenharmony_ci 291e41f4b71Sopenharmony_ci**Solution** 292e41f4b71Sopenharmony_ci 293e41f4b71Sopenharmony_ciCheck whether more than 50 queries are performed in one second. 294e41f4b71Sopenharmony_ci 295e41f4b71Sopenharmony_ci## 11200305 Unsubscription Failed 296e41f4b71Sopenharmony_ci 297e41f4b71Sopenharmony_ci**Error Message** 298e41f4b71Sopenharmony_ci 299e41f4b71Sopenharmony_ciUnsubscription failed. 300e41f4b71Sopenharmony_ci 301e41f4b71Sopenharmony_ci**Description** 302e41f4b71Sopenharmony_ci 303e41f4b71Sopenharmony_ciThis error code is reported when the **unsubscribe()** API fails to be called. 304e41f4b71Sopenharmony_ci 305e41f4b71Sopenharmony_ci**Possible Causes** 306e41f4b71Sopenharmony_ci 307e41f4b71Sopenharmony_ciThe HiView service is abnormal. 308e41f4b71Sopenharmony_ci 309e41f4b71Sopenharmony_ci**Solution** 310e41f4b71Sopenharmony_ci 311e41f4b71Sopenharmony_ciCall the **unsubscribe()** API again. 312