This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Invalid resource ID.
Description
Invalid resource ID.
Possible Causes
Solution
Error Message
No matching resource is found based on the resource ID.
Description
No matching resource found for the current resource ID.
Possible Causes
Solution
Error Message
Invalid resource name.
Description
Invalid resource name.
Possible Causes
The passed resource name does not exist in the current HAP/HSP package.
Solution
Check whether the passed resource name exists in the HAP/HSP package. You can use the dump command of the restool tool to output the resource information of the HAP/HSP, and then search the output for the passed resource name.
Error Message
No matching resource is found based on the resource name.
Description
No matching resource found for the current resource name.
Possible Causes
Solution
Error Message
Invalid relative path.
Description
Invalid relative path.
Possible Causes
The passed rawfile relative path is incorrect and does not match the actual relative path of the rawfile resource.
Solution
Check whether the rawfile relative path passed in meets expectations.
Error Message
The resource is referenced cyclically.
Description
A circular reference exists in the resource.
Possible Causes
A circular reference exists in the resource, causing the number of reference resolutions to exceed 20.
Solution
Check whether a circular reference exists when referencing other resources using $string:xxx, $integer:xxx, and similar methods.
Error Message
Failed to format the resource obtained based on the resource ID.
Description
Failed to format the resource obtained based on the current ID.
Possible Causes
Solution
Error Message
Failed to format the resource obtained based on the resource name.
Description
Failed to format the resource obtained based on the current name.
Possible Causes
Solution
Error Message
Failed to access the system resource.
Description
Failed to obtain the system Resource Manager object.
Possible Causes
System resources are not loaded to the sandbox path of the application process.
Solution
Check whether the app sandbox directory of the application process contains system resources.
Error Message
Invalid overlay path.
Description
Invalid overlay path.
Possible Causes
Solution