This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The specified bundle name is not found.
Description
The specified bundle name does not exist.
Possible Causes
Solution
# Replace **com.xxx.demo** with the actual bundle name. hdc shell bm dump -n com.xxx.demo
Error Message
The specified module name is not found.
Description
The specified module name does not exist.
Possible Causes
Solution
# Replace **com.xxx.demo** with the actual bundle name. hdc shell bm dump -n com.xxx.demo
Error Message
The specified ability name is not found.
Description
The specified ability name does not exist.
Possible Causes
Solution
# Replace **com.xxx.demo** with the actual bundle name. hdc shell bm dump -n com.xxx.demo
Error Message
The specified user ID is not found.
Description
When a user-related API is called, the user ID passed in does not exist.
Possible Causes
Solution
Error Message
The specified uid is invalid.
Description
When the getBundleNameByUid API of the bundleManager module is called, the UID passed in is invalid.
Possible Causes
The application corresponding to the UID does not exist.
Solution
Check whether the UID exists in the system. Run the dump command, and check the UID of the installed application. If multiple UIDs are displayed, select the one greater than 0. If no result is displayed, the application is not installed.
# Replace **com.xxx.demo** with the actual bundle name. hdc shell "bm dump -n com.xxx.demo |grep uid"
Error Message
Failed to get the profile because the specified profile is not found in the HAP.
Description
When an API for querying the profile is called, the profile does not exist.
Possible Causes
Solution
Error Message
The specified bundle is disabled.
Description
When an API for querying bundle information is called, the specified bundle is disabled.
Possible Causes
The bundle on the device has been disabled and cannot be queried.
Solution
Check whether the bundle on the device is disabled.
Error Message
The specified ability is disabled.
Description
When an API for querying ability information is called, the specified ability is disabled.
Possible Causes
The specified ability is disabled.
Solution
Check whether the ability is disabled. You can use Bundle Manager to query the information.
Error Message
The specified bundle does not contain any overlay module.
Description
An API is called to obtain the overlayModuleInfo object of another application, but that application does not contain a module with the overlay feature.
Possible Causes
The specified application does not contain a module with the overlay feature.
Solution
Check whether the application contains a module with the overlay feature.
Error Message
The specified module is not an overlay module.
Description
An API is called to obtain the overlayModuleInfo object of a module, but the module is not configured with the overlay feature.
Possible Causes
The specified module is not a module with the overlay feature.
Solution
Check whether the module is configured with the overlay feature.
Error Message
The specified module is an overlay module.
Description
An API is called to obtain the overlayModuleInfo object based on the target module name, but that module is configured with the overlay feature.
Possible Causes
The specified module is configured with the overlay feature.
Solution
Check whether the specified module is configured with the overlay feature.
Error Message
The specified link is invalid.
Description
When the canOpenLink API of the bundleManager module is called, the link passed in is invalid.
Possible Causes
The format of the link is incorrect.
Solution
Check whether the link format is correct.
Error Message
The scheme of the specified link is not in the querySchemes.
Description
When the canOpenLink API of the bundleManager module is called, the scheme of the link is not configured in the querySchemes field.
Possible Causes
The scheme of the link is not configured in the querySchemes field.
Solution
Check whether the URL scheme is configured in the querySchemes field. For details, see Using canOpenLink to Check Application Accessibility.
Error Message
The specified shortcut id is illegal.
Description
The specified shortcut ID is invalid.
Possible Causes
A shortcut with the same bundle name, clone index, user ID, and shortcut ID already exists, or the passed-in shortcut ID does not exist or is empty.
Solution
Error Message
The launch want is not found.
Description
The Want information in the bundleManager.getLaunchWant API does not exist.
Possible Causes
The application does not have a UIAbility with entities containing "entity.system.home" and actions containing "ohos.want.action.home".
Solution
Configure a UIAbility with entities containing "entity.system.home" and actions containing "ohos.want.action.home" for the application.
Error Message
Bundle manager service exception.
Description
The Bundle Manager service is abnormal.
Possible Causes
Scenario 1:
An unknown system exception occurs.
Scenario 2:
The system throws an uncaught error code, such as IPC failure or file copy failure.
Solution
Restart the phone and try again.
If the request still fails after the preceding steps are performed for three to five times, check whether a crash file containing foundation exists in the /data/log/faultlog/faultlogger/ directory of the device.
hdc shell cd /data/log/faultlog/faultlogger/ ls -ls
Export the crash file and log file and submit them to online tickets for help.
hdc file recv /data/log/faultlog/faultlogger/ hdc file recv /data/log/hilog/