Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Function disabled. Possible caused by the param disable in ConfigOption is true.
Description
Possible Causes
The application event logging function is disabled.
Solution
Invoke the configure API to enable the application event logging function.
- import { hiAppEvent } from '@kit.PerformanceAnalysisKit';
-
- hiAppEvent.configure({
- disable: false
- });
Error Message
Invalid event domain. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
Description
Possible Causes
The specified event domain name does not comply with the following rules:
Solution
Specify a valid event domain name.
Error Message
Invalid event name. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
Description
Possible Causes
The specified event name does not comply with the following rules:
Solution
Specify a valid event name.
Error Message
Invalid number of event parameters. Possible caused by the number of parameters is over 32.
Description
This 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.
Possible Causes
The number of input event parameters exceeds 32.
Solution
Specify a valid number of event parameters.
Error Message
Invalid string length of the event parameter.
Description
Possible Causes
Solution
Specify an event parameter value with a valid length.
Error Message
Invalid event parameter name. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
Description
Possible Causes
The specified event parameter name does not comply with the following rules:
Solution
Specify a valid event parameter name.
Error Message
Invalid array length of the event parameter.
Description
This 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.
Possible Causes
The array length of the event parameter value exceeds 100.
Solution
Specify a valid array length for the event parameter value.
Error Message
The number of parameter keys exceeds the limit.
Description
The setEventParam API is called to set custom event parameters, but the system ignores the calling because the number of event parameters is invalid.
Possible Causes
The number of custom event parameters passed exceeds 64.
Solution
Specify a valid number of custom event parameters.
Error Message
Invalid watcher name. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
Description
This 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.
Possible Causes
The specified watcher name does not comply with the following rules:
Solution
Specify a valid watcher name.
Error Message
Invalid filtering event domain. Possible causes: 1. Contain invalid characters; 2. Length is invalid.
Description
This 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.
Possible Causes
The specified filtering event domain name does not comply with the following rules:
Solution
Specify a valid filtering event domain name.
Error Message
Invalid row value. Possible caused by the row value is less than zero.
Description
This 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.
Possible Causes
The event number passed in the input callback triggering condition is a negative number.
Solution
Specify a valid event number.
Error Message
Invalid size value. Possible caused by the size value is less than zero.
Description
This 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.
Possible Causes
The event size passed in the input callback triggering condition is a negative number.
Solution
Specify a valid event size.
Error Message
Invalid timeout value. Possible caused by the timeout value is less than zero.
Description
This 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.
Possible Causes
The timeout value passed in the input callback triggering condition is a negative number.
Solution
Specify a valid timeout value.
Error Message
Invalid max storage quota value. Possible caused by incorrectly formatted.
Description
This 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.
Possible Causes
The maximum storage quota does not meet the following rules:
Solution
Specify a valid maximum storage quota.
Error Message
Invalid size value. Possible caused by the size value is less than or equal to zero.
Description
This 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.
Possible Causes
The specified event package size is a negative number.
Solution
Specify a valid event package size.
Error Message
Invalid parameter value. Possible causes: 1. Incorrect parameter length; 2. Incorrect parameter format.
Description
When the hiAppEvent API is called to set the input parameter, the system ignores the setting because the input parameter value is invalid.
Possible Causes
Solution
Input a parameter value that meets the specifications.