1# Application Event Logging 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 7## 11100001 Application Event Logging Disabled 8 9**Error Message** 10 11Function is disabled. 12 13**Description** 14 15This error code is reported if the **write** API is called to perform application event logging but the system ignores related events because the logging function is disabled. 16 17**Possible Causes** 18 19The application event logging function is disabled. 20 21**Solution** 22 23Invoke the **configure** API to enable the application event logging function. 24 25 ```ts 26 import hiAppEvent from '@ohos.hiviewdfx.hiAppEvent'; 27 28 hiAppEvent.configure({ 29 disable: false 30 }); 31 ``` 32 33## 11101001 Invalid Event Domain Name 34**Error Message** 35 36Invalid event domain. 37 38**Description** 39 40This error code is reported if the **write** API is called to perform application event logging but the system ignores related events because the input event domain name is invalid. 41 42**Possible Causes** 43 44The specified event domain name does not comply with the following rules: 45 46- The event domain name contains only digits, lowercase letters, and underscores (\_). 47- The event domain name starts with a lowercase letter and does not end with an underscore (\_). 48- The event domain name is not empty and contains a maximum of 16 characters. 49 50**Solution** 51 52Specify a valid event domain name. 53 54## 11101002 Invalid Event Name 55 56**Error Message** 57 58Invalid event name. 59 60**Description** 61 62This error code is reported if the **write** API is called to perform application event logging but the system ignores related events because the input event name is invalid. 63 64**Possible Causes** 65 66The specified event name does not comply with the following rules: 67 68- An event name contains only digits, letters, and underscores (_). 69- An event name starts with a letter or dollar sign ($) and does not end with an underscore (_). 70- The event name is not empty and contains a maximum of 48 characters. 71 72**Solution** 73 74Specify a valid event name. 75 76## 11101003 Invalid Number of Event Parameters 77 78**Error Message** 79 80Invalid number of event parameters. 81 82**Description** 83 84This error code is reported if the **write** API is called to perform application event logging but the system discards extra event parameters because the number of input event parameters exceeds the limit. 85 86**Possible Causes** 87 88The number of input event parameters exceeds 32. 89 90**Solution** 91 92Specify a valid number of event parameters. 93 94## 11101004 Invalid Event Parameter String Length 95 96**Error Message** 97 98Invalid string length of the event parameter. 99 100**Description** 101 102This error code is reported if the **write** API is called to perform application event logging but the system ignores related event parameters because the value of the input event parameter is excessively long. 103 104**Possible Causes** 105 106The length of the input event parameter value exceeds 8 x 1024 characters. 107 108**Solution** 109 110Specify an event parameter value with a valid length. 111 112## 11101005 Invalid Event Parameter Name 113 114**Error Message** 115 116Invalid event parameter name. 117 118**Description** 119 120This error code is reported if the **write** API is called to perform application event logging but the system ignores related event parameters because the input event parameter name is invalid. 121 122**Possible Causes** 123 124The specified event name does not comply with the following rules: 125 126- An event name contains only digits, letters, and underscores (_). 127- An event name starts with a letter or dollar sign ($) and does not end with an underscore (_). 128- An event parameter name is not empty and contains a maximum of 16 characters. 129 130**Solution** 131 132Specify a valid event parameter name. 133 134## 11101006 Invalid Array Length of Event Parameter Values 135 136**Error Message** 137 138Invalid array length of the event parameter. 139 140**Description** 141 142This error code is reported if the **write** API is called to perform application event logging but the system discards extra array elements because the array of the event parameter value is excessively long. 143 144**Possible Causes** 145 146The array length of the event parameter value exceeds 100. 147 148**Solution** 149 150Specify a valid array length for the event parameter value. 151 152## 11102001 Invalid Watcher Name 153 154**Error Message** 155 156Invalid watcher name. 157 158**Description** 159 160This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because the specified watcher name is invalid. 161 162**Possible Causes** 163 164The specified watcher name does not comply with the following rules: 165 166- The watcher name can contain only digits, lowercase letters, and underscores (\_). 167- The watcher name starts with a lowercase letter and does not end with an underscore (\_). 168- A watcher name is not empty and contains a maximum of 32 characters. 169 170**Solution** 171 172Specify a valid watcher name. 173 174## 11102002 Invalid Filtering Event Domain Name 175 176**Error Message** 177 178Invalid filtering event domain. 179 180**Description** 181 182This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because the specified filtering event domain name is invalid. 183 184**Possible Causes** 185 186The specified filtering event domain name does not comply with the following rules: 187 188- The event domain name contains only digits, lowercase letters, and underscores (\_). 189- The event domain name starts with a lowercase letter and does not end with an underscore (\_). 190- The event domain name is not empty and contains a maximum of 16 characters. 191 192**Solution** 193 194Specify a valid filtering event domain name. 195 196## 11102003 Invalid Event Number 197 198**Error Message** 199 200Invalid row value. 201 202**Description** 203 204This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because an invalid event number is passed in the callback trigger condition. 205 206**Possible Causes** 207 208The event number passed in the input callback triggering condition is a negative number. 209 210**Solution** 211 212Specify a valid event number. 213 214## 11102004 Invalid Event Size 215 216**Error Message** 217 218Invalid size value. 219 220**Description** 221 222This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because an invalid event size is passed in the callback trigger condition. 223 224**Possible Causes** 225 226The event size passed in the input callback triggering condition is a negative number. 227 228**Solution** 229 230Specify a valid event size. 231 232## 11102005 Invalid Timeout Value 233 234**Error Message** 235 236Invalid timeout value. 237 238**Description** 239 240This error code is reported if the **addWatcher** API is called to subscribe to application events but the system ignores the subscription because an invalid timeout value is passed in the callback trigger condition. 241 242**Possible Causes** 243 244The timeout value passed in the input callback triggering condition is a negative number. 245 246**Solution** 247 248Specify a valid timeout value. 249 250## 11103001 Invalid Maximum Storage Quota 251 252**Error Message** 253 254Invalid max storage quota value. 255 256**Description** 257 258This error code is reported if the **configure** API is called to subscribe to application events but the system ignores the setting because the specified maximum storage quota is invalid. 259 260**Possible Causes** 261 262The maximum storage quota does not meet the following rules: 263 264- The quota value consists of only digits and a unit (including b|k|kb|m|mb|g|gb|t|tb, which are case-insensitive). 265- The quota value must start with a digit. You can determine whether to pass the unit. If the unit is left empty, **b** (that is, byte) is used by default. 266 267**Solution** 268 269Specify a valid maximum storage quota. 270 271## 11104001 Invalid Event Package Size 272 273**Error Message** 274 275Invalid size value. 276 277**Description** 278 279This error code is reported if the **setSize** API is called to set the threshold of the event package size but the system ignores the setting because the specified event package size is invalid. 280 281**Possible Causes** 282 283The specified event package size is a negative number. 284 285**Solution** 286 287Specify a valid event package size. 288