• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Application Event Logging Error Codes
2
3<!--Kit: Performance Analysis Kit-->
4<!--Subsystem: HiviewDFX-->
5<!--Owner: @liujiaxing2024-->
6<!--SE: @junjie_shi-->
7<!--TSE: @gcw_KuLfPSbe-->
8
9> **NOTE**
10>
11> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md).
12
13## 11100001 Application Event Logging Disabled
14
15**Error Message**
16
17Function disabled. Possible caused by the param disable in ConfigOption is true.
18
19**Description**
20
21- The **write** API is called to perform application event logging, but the system ignores related events because the logging function is disabled.
22- The **setEventParam** API is called to set custom event parameters, but the system ignores the calling because the logging function is disabled.
23
24**Possible Causes**
25
26The application event logging function is disabled.
27
28**Solution**
29
30Invoke the **configure** API to enable the application event logging function.
31
32   ```ts
33   import { hiAppEvent } from '@kit.PerformanceAnalysisKit';
34
35   hiAppEvent.configure({
36       disable: false
37   });
38   ```
39
40## 11101001 Invalid Event Domain Name
41**Error Message**
42
43Invalid event domain. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
44
45**Description**
46
47- The **write** API is called to perform application event logging, but the system ignores related events because the input event domain name is invalid.
48- The **setEventParam** API is called to set custom event parameters, but the system ignores the calling because the input event domain name is invalid.
49
50**Possible Causes**
51
52The specified event domain name does not comply with the following rules:
53
54- The event domain name contains only digits, letters, and underscores (\_).
55- The event domain name starts with a letter and does not end with an underscore (\_).
56- The event domain name is not empty and contains a maximum of 32 characters.
57
58**Solution**
59
60Specify a valid event domain name.
61
62## 11101002 Invalid Event Name
63
64**Error Message**
65
66Invalid event name. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
67
68**Description**
69
70- The **write** API is called to perform application event logging, but the system ignores related events because the input event name is invalid.
71- The **setEventParam** API is called to set custom event parameters, but the system ignores the calling because the input event name is invalid.
72
73**Possible Causes**
74
75The specified event name does not comply with the following rules:
76
77- The event name contains only the dollar sign ($), digits, letters, and underscores (_).
78- The event name must start with a letter or dollar sign ($) and end with a digit or letter.
79- The event name is not empty and contains a maximum of 48 characters.
80
81**Solution**
82
83Specify a valid event name.
84
85## 11101003 Invalid Number of Event Parameters
86
87**Error Message**
88
89Invalid number of event parameters. Possible caused by the number of parameters is over 32.
90
91**Description**
92
93This 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.
94
95**Possible Causes**
96
97The number of input event parameters exceeds 32.
98
99**Solution**
100
101Specify a valid number of event parameters.
102
103## 11101004 Invalid Event Parameter String Length
104
105**Error Message**
106
107Invalid string length of the event parameter.
108
109**Description**
110
111- 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.
112- The **setEventParam** API is called to set custom event parameters, but the system ignores the calling because the input event parameter value is invalid.
113
114**Possible Causes**
115
116- The length of the string of the event parameter value passed by the **write** API exceeds 8 x 1024 characters.
117- The length of the custom event parameter value passed by the **setEventParam** API exceeds 1024 characters.
118
119**Solution**
120
121Specify an event parameter value with a valid length.
122
123## 11101005 Invalid Event Parameter Name
124
125**Error Message**
126
127Invalid event parameter name. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
128
129**Description**
130
131- 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.
132- The **setEventParam** API is called to set custom event parameters, but the system ignores the calling because the input event parameter name is invalid.
133
134**Possible Causes**
135
136The specified event parameter name does not comply with the following rules:
137
138- The event parameter name contains only the dollar sign ($), digits, letters, and underscores (_).
139- The event parameter name must start with a letter or dollar sign ($) and end with a digit or letter.
140- The event parameter name is not empty and contains a maximum of 32 characters.
141
142**Solution**
143
144Specify a valid event parameter name.
145
146## 11101006 Invalid Array Length of Event Parameter Values
147
148**Error Message**
149
150Invalid array length of the event parameter.
151
152**Description**
153
154This 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.
155
156**Possible Causes**
157
158The array length of the event parameter value exceeds 100.
159
160**Solution**
161
162Specify a valid array length for the event parameter value.
163
164## 11101007 Invalid Number of Custom Event Parameters
165
166**Error Message**
167
168The number of parameter keys exceeds the limit.
169
170**Description**
171
172The **setEventParam** API is called to set custom event parameters, but the system ignores the calling because the number of event parameters is invalid.
173
174**Possible Causes**
175
176The number of custom event parameters passed exceeds 64.
177
178**Solution**
179
180Specify a valid number of custom event parameters.
181
182## 11102001 Invalid Watcher Name
183
184**Error Message**
185
186Invalid watcher name. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
187
188**Description**
189
190This 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.
191
192**Possible Causes**
193
194The specified watcher name does not comply with the following rules:
195
196- The watcher name can contain only digits, letters, and underscores (\_).
197- The watcher name starts with a letter and does not end with an underscore (\_).
198- The watcher name is not empty and contains a maximum of 32 characters.
199
200**Solution**
201
202Specify a valid watcher name.
203
204## 11102002 Invalid Filtering Event Domain Name
205
206**Error Message**
207
208Invalid filtering event domain. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
209
210**Description**
211
212This 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.
213
214**Possible Causes**
215
216The specified filtering event domain name does not comply with the following rules:
217
218- The event domain name contains only digits, letters, and underscores (\_).
219- The event domain name starts with a letter and does not end with an underscore (\_).
220- The event domain name is not empty and contains a maximum of 32 characters.
221
222**Solution**
223
224Specify a valid filtering event domain name.
225
226## 11102003 Invalid Event Number
227
228**Error Message**
229
230Invalid row value. Possible caused by the row value is less than zero.
231
232**Description**
233
234This 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.
235
236**Possible Causes**
237
238The event number passed in the input callback triggering condition is a negative number.
239
240**Solution**
241
242Specify a valid event number.
243
244## 11102004 Invalid Event Size
245
246**Error Message**
247
248Invalid size value. Possible caused by the size value is less than zero.
249
250**Description**
251
252This 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.
253
254**Possible Causes**
255
256The event size passed in the input callback triggering condition is a negative number.
257
258**Solution**
259
260Specify a valid event size.
261
262## 11102005 Invalid Timeout Value
263
264**Error Message**
265
266Invalid timeout value. Possible caused by the timeout value is less than zero.
267
268**Description**
269
270This 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.
271
272**Possible Causes**
273
274The timeout value passed in the input callback triggering condition is a negative number.
275
276**Solution**
277
278Specify a valid timeout value.
279
280## 11103001 Invalid Maximum Storage Quota
281
282**Error Message**
283
284Invalid max storage quota value. Possible caused by incorrectly formatted.
285
286**Description**
287
288This 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.
289
290**Possible Causes**
291
292The maximum storage quota does not meet the following rules:
293
294- The quota value consists of only digits and a unit (including b|k|kb|m|mb|g|gb|t|tb, which are case-insensitive).
295- 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.
296
297**Solution**
298
299Specify a valid maximum storage quota.
300
301## 11104001 Invalid Event Package Size
302
303**Error Message**
304
305Invalid size value. Possible caused by the size value is less than or equal to zero.
306
307**Description**
308
309This 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.
310
311**Possible Causes**
312
313The specified event package size is a negative number.
314
315**Solution**
316
317Specify a valid event package size.
318
319## 11105001 Invalid Parameter Value
320
321**Error Message**
322
323Invalid parameter value. Possible causes: 1. Incorrect parameter length; 2. Incorrect parameter format.
324
325**Description**
326
327When the **hiAppEvent** API is called to set the input parameter, the system ignores the setting because the input parameter value is invalid.
328
329**Possible Causes**
330
331- The length of the input parameter does not meet the requirements.
332- The format of the input parameter does not meet the specifications.
333
334**Solution**
335
336Input a parameter value that meets the specifications.
337