When a query API is called, the bundle name passed in does not exist.
When a query API is called, the bundle name passed in does not exist.
**Possible Causes**
**Possible Causes**
1. The bundle name is misspelled.
1. The bundle name is misspelled.
2. The corresponding bundle is not installed.
2. The corresponding bundle is not installed.
...
@@ -19,9 +22,11 @@ When a query API is called, the bundle name passed in does not exist.
...
@@ -19,9 +22,11 @@ When a query API is called, the bundle name passed in does not exist.
## 17700002 Module Name Does Not Exist
## 17700002 Module Name Does Not Exist
**Error Message**
**Error Message**
The specified module name is not found.
The specified module name is not found.
**Description**
**Description**
When a query API or an installation-free API is called, the module name passed in does not exist.
When a query API or an installation-free API is called, the module name passed in does not exist.
**Possible Causes**
**Possible Causes**
...
@@ -35,54 +40,65 @@ When a query API or an installation-free API is called, the module name passed i
...
@@ -35,54 +40,65 @@ When a query API or an installation-free API is called, the module name passed i
## 17700003 Ability Name Does Not Exist
## 17700003 Ability Name Does Not Exist
**Error Message**
**Error Message**
The specified ability name is not found.
The specified ability name is not found.
**Description**
**Description**
When a query API is called, the ability name passed in does not exist.
When a query API is called, the ability name passed in does not exist.
**Possible Causes**
**Possible Causes**
1. The ability name is misspelled.
1. The ability name is misspelled.
2. The corresponding bundle is not installed.
2. The application does not have the ability specified by **abilityName**.
**Solution**
**Solution**
1. Check whether the spelling of the ability name is correct.
1. Check whether the spelling of the ability name is correct.
2. Check whether the ability is installed.
2. Check whether the application has the ability specified by **abilityName**.
## 17700004 User ID Does Not Exist
## 17700004 User ID Does Not Exist
**Error Message**
**Error Message**
The specified user ID is not found.
The specified user ID is not found.
**Description**
**Description**
When a user-related API is called, the user ID passed in does not exist.
When a user-related API is called, the user ID passed in does not exist.
**Possible Causes**
**Possible Causes**
The user ID is incorrect. The user does not exist.
1. Incorrect username.
2. The user does not exist in the system.
**Solution**
**Solution**
1. Check whether the user ID is correct.
1. Check whether the user ID is correct.
2. Check whether the user exists.
2. Check whether the user exists.
## 17700005 Application ID Does Not Exist
## 17700005 appId Is an Empty String
**Error Message**
**Error Message**
The specified app ID is not found.
The specified app ID is empty string.
**Description**
**Description**
When an API of the **appControl** module is called, the application ID passed in does not exist.
When an API of the **appControl** module is called, the application ID passed in does not exist.
**Possible Causes**
**Possible Causes**
**appId** is an empty string.
**appId** is an empty string.
**Solution**
**Solution**
Check whether **appId** is an empty string.
Check whether **appId** is an empty string.
## 17700006 Permission Does Not Exist
## 17700006 Permission Does Not Exist
**Error Message**
**Error Message**
The specified permission is not found.
The specified permission is not found.
**Description**
**Description**
When the **getPermissionDef** API of the **bundleManager** module is called, the permission passed in does not exist.
When the **getPermissionDef** API of the **bundleManager** module is called, the permission passed in does not exist.
**Possible Causes**
**Possible Causes**
...
@@ -96,9 +112,11 @@ When the **getPermissionDef** API of the **bundleManager** module is called, the
...
@@ -96,9 +112,11 @@ When the **getPermissionDef** API of the **bundleManager** module is called, the
## 17700007 Incorrect Device ID
## 17700007 Incorrect Device ID
**Error Message**
**Error Message**
The specified device ID is not found.
The specified device ID is not found.
**Description**
**Description**
When an API of the **distributedBundle** module is called, the device ID passed in does not exist.
When an API of the **distributedBundle** module is called, the device ID passed in does not exist.
**Possible Causes**
**Possible Causes**
...
@@ -112,9 +130,11 @@ When an API of the **distributedBundle** module is called, the device ID passed
...
@@ -112,9 +130,11 @@ When an API of the **distributedBundle** module is called, the device ID passed
## 17700010 Bundle Installation Failure Due to File Parsing Failure
## 17700010 Bundle Installation Failure Due to File Parsing Failure
**Error Message**
**Error Message**
Failed to install the HAP because the HAP fails to be parsed.
Failed to install the HAP because the HAP fails to be parsed.
**Description**
**Description**
When the **install** API of the **installer** module is called, the HAP passed in fails to be parsed.
When the **install** API of the **installer** module is called, the HAP passed in fails to be parsed.
**Possible Causes**
**Possible Causes**
...
@@ -124,15 +144,17 @@ When the **install** API of the **installer** module is called, the HAP passed i
...
@@ -124,15 +144,17 @@ When the **install** API of the **installer** module is called, the HAP passed i
**Solution**
**Solution**
1. Check whether the HAP is in ZIP format.
1. Check whether the HAP is in ZIP format.
2. Check whether the configuration file is in [JSON format](../../quick-start/stage-structure.md).
2. Check whether the configuration file is in [JSON format](../../quick-start/application-configuration-file-overview-stage.md).
3. Check whether an error message is displayed when DevEco Studio compiles the HAP. If necessary fields are missing, an error message will be displayed.
3. Check whether an error message is displayed when DevEco Studio compiles the HAP. If necessary fields are missing, an error message will be displayed.
## 17700011 Bundle Installation Failure Due to Signature Verification Failure
## 17700011 Bundle Installation Failure Due to Signature Verification Failure
**Error Message**
**Error Message**
Failed to install the HAP because the HAP signature fails to be verified.
Failed to install the HAP because the HAP signature fails to be verified.
**Description**
**Description**
Calling the **install** API of the **installer** module to install the bundle fails due to signature verification failure.
Calling the **install** API of the **installer** module to install the bundle fails due to signature verification failure.
**Possible Causes**
**Possible Causes**
...
@@ -144,15 +166,18 @@ Calling the **install** API of the **installer** module to install the bundle fa
...
@@ -144,15 +166,18 @@ Calling the **install** API of the **installer** module to install the bundle fa
**Solution**
**Solution**
1. Check whether the HAP is signed.
1. Check whether the HAP is signed.
2. Check whether the same certificate is used for signing multiple HAPs.
2. Ensure that the signing certificate of the HAP is applied for from the application market.
3. Check whether the certificate used for signing the upgrade HAP is the same as the certificate used for signing the installed HAP.
3. Check whether the same certificate is used for signing multiple HAPs.
4. Check whether the certificate used for signing the upgrade HAP is the same as the certificate used for signing the installed HAP.
## 17700012 Bundle Installation Failure Due to Invalid File Path or Too Large File
## 17700012 Bundle Installation Failure Due to Invalid File Path or Too Large File
**Error Message**
**Error Message**
Failed to install the HAP because the HAP path is invalid or the HAP is too large.
Failed to install the HAP because the HAP path is invalid or the HAP is too large.
**Description**
**Description**
Calling the **install** API of the **installer** module to install the bundle fails because the HAP path is invalid or the HAP is too large.
Calling the **install** API of the **installer** module to install the bundle fails because the HAP path is invalid or the HAP is too large.
**Possible Causes**
**Possible Causes**
...
@@ -165,57 +190,90 @@ Calling the **install** API of the **installer** module to install the bundle fa
...
@@ -165,57 +190,90 @@ Calling the **install** API of the **installer** module to install the bundle fa
2. Check whether the HAP is read only or executable.
2. Check whether the HAP is read only or executable.
3. Check whether the size of the HAP exceeds 4 GB.
3. Check whether the size of the HAP exceeds 4 GB.
## 17700015 Bundle Installation Failure Due to Different Configuration Information of Multiple HAP Packages
## 17700015 Bundle Installation Failure Due to Different Configuration Information of Multiple HAPs
**Error Message**
**Error Message**
Failed to install the HAPs because they have different configuration information.
Failed to install the HAPs because they have different configuration information.
**Description**
**Description**
Calling the **install** API of the **installer** module to install the bundle fails because the HAPs have different configuration information.
Calling the **install** API of the **installer** module to install the bundle fails because the HAPs have different configuration information.
**Possible Causes**
**Possible Causes**
The fields under **app** in the configuration files of these HAPs are inconsistent.
The fields under **app** in the configuration files of these HAPs are inconsistent.
**Solution**
**Solution**
Check whether the fields under **app** are the same.
Check whether the fields under **app** are the same.
## 17700016 Bundle Installation Failure Due to Insufficient System Disk Space
## 17700016 Bundle Installation Failure Due to Insufficient System Disk Space
**Error Message**
**Error Message**
Failed to install the HAP because of insufficient system disk space.
Failed to install the HAP because of insufficient system disk space.
**Description**
**Description**
Calling the **install** API of the **installer** module to install the bundle fails due to insufficient system disk space.
Calling the **install** API of the **installer** module to install the bundle fails due to insufficient system disk space.
**Possible Causes**
**Possible Causes**
The system disk space is insufficient.
The system disk space is insufficient.
**Solution**
**Solution**
Check whether the system has sufficient disk space.
Check whether the system has sufficient disk space.
## 17700017 Bundle Installation Failure Because the Version to Install is Too Earlier
## 17700017 Bundle Installation Failure Because the Version to Install is Too Earlier
**Error Message**
**Error Message**
Failed to install the HAP since the version of the HAP to install is too early.
Failed to install the HAP since the version of the HAP to install is too early.
**Description**
**Description**
Calling the **install** API of the **installer** module to install the bundle fails because the version to install is earlier than the version in use.
Calling the **install** API of the **installer** module to install the bundle fails because the version to install is earlier than the version in use.
**Possible Causes**
**Possible Causes**
The version number is earlier than the version in use.
The version number is earlier than the version in use.
**Solution**
**Solution**
Ensure that the version of the bundle to install is later than the version in use.
Ensure that the version of the bundle to install is not earlier than the version in use.
## 17700018 Bundle Installation Failure Becase the Dependent Module Does Not Exist
**Error Message**
Failed to install because the dependent module does not exist.
**Description**
The dependent module does not exist during the HAP or HPS installation.
**Possible Causes**
The dependent module is not installed.
**Solution**
Install the dependent modules first.
## 17700020 Failure to Uninstall Preinstalled Applications
## 17700020 Failure to Uninstall Preinstalled Applications
**Error Message**
**Error Message**
The preinstalled app cannot be uninstalled.
The preinstalled app cannot be uninstalled.
**Description**
**Description**
Calling the **uninstall** API of the **installer** module to uninstall a preinstalled application fails.
Calling the **uninstall** API of the **installer** module to uninstall a preinstalled application fails.
**Possible Causes**
**Possible Causes**
1. You might want to uninstall a non-preinstalled application but passed the bundle name of a preinstalled app.
1. You might want to uninstall a non-preinstalled application but passed the bundle name of a preinstalled app.
2. The preinstalled application cannot be uninstalled.
2. The preinstalled application cannot be uninstalled.
...
@@ -226,9 +284,11 @@ Calling the **uninstall** API of the **installer** module to uninstall a preinst
...
@@ -226,9 +284,11 @@ Calling the **uninstall** API of the **installer** module to uninstall a preinst
## 17700021 Invalid UID
## 17700021 Invalid UID
**Error Message**
**Error Message**
The specified uid is invalid.
The specified uid is invalid.
**Description**
**Description**
When the **getBundleNameByUid** API of the **bundleManager** module is called, the UID passed in is invalid.
When the **getBundleNameByUid** API of the **bundleManager** module is called, the UID passed in is invalid.
**Possible Causes**
**Possible Causes**
...
@@ -242,9 +302,11 @@ When the **getBundleNameByUid** API of the **bundleManager** module is called, t
...
@@ -242,9 +302,11 @@ When the **getBundleNameByUid** API of the **bundleManager** module is called, t
## 17700022 Invalid Source File
## 17700022 Invalid Source File
**Error Message**
**Error Message**
The input source file is invalid.
The input source file is invalid.
**Description**
**Description**
When the **getBundleArchiveInfo** API of the **bundleManager** module is called, the HAP path passed in is invalid.
When the **getBundleArchiveInfo** API of the **bundleManager** module is called, the HAP path passed in is invalid.
**Possible Causes**
**Possible Causes**
...
@@ -258,26 +320,33 @@ When the **getBundleArchiveInfo** API of the **bundleManager** module is called,
...
@@ -258,26 +320,33 @@ When the **getBundleArchiveInfo** API of the **bundleManager** module is called,
## 17700023 Default Application Does Not Exist
## 17700023 Default Application Does Not Exist
**Error Message**
**Error Message**
The specified default app does not exist.
The specified default app does not exist.
**Description**
**Description**
When the **getDefaultApplication** API of the **defaultAppManager** module is called, the specified default application does not exist.
When the **getDefaultApplication** API of the **defaultAppManager** module is called, the specified default application does not exist.
**Possible Causes**
**Possible Causes**
No default application is set for the device.
No default application is set for the device.
**Solution**
**Solution**
Check whether the default application is set on the device.
Check whether the default application is set on the device.
## 17700024 Configuration File Does Not Exist
## 17700024 Configuration File Does Not Exist
**Error Message**
**Error Message**
Failed to get the profile because there is no profile in the HAP.
Failed to get the profile because there is no profile in the HAP.
**Description**
**Description**
When an API for querying the profile is called, the configuration file does not exist
When an API for querying the profile is called, the configuration file does not exist
**Possible Causes**
**Possible Causes**
1. The metadata name passed in the API does not exist in the configuration file.
1. The metadata name passed in the API does not exist in the configuration file.
2. The content of the configuration file is not in JSON format.
2. The content of the configuration file is not in JSON format.
...
@@ -288,9 +357,11 @@ When an API for querying the profile is called, the configuration file does not
...
@@ -288,9 +357,11 @@ When an API for querying the profile is called, the configuration file does not
## 17700025 Invalid Type
## 17700025 Invalid Type
**Error Message**
**Error Message**
The specified type is invalid.
The specified type is invalid.
**Description**
**Description**
When an API of the **defaultAppManager** module is called, the type passed in is invalid.
When an API of the **defaultAppManager** module is called, the type passed in is invalid.
**Possible Causes**
**Possible Causes**
...
@@ -298,74 +369,97 @@ When an API of the **defaultAppManager** module is called, the type passed in is
...
@@ -298,74 +369,97 @@ When an API of the **defaultAppManager** module is called, the type passed in is
2. The type passed in the API does not exist.
2. The type passed in the API does not exist.
**Solution**
**Solution**
Check whether the spelling of type is correct.
1. Check whether the spelling of type is correct.
2. Enter a type that exists.
## 17700026 Bundle Disabled
## 17700026 Bundle Disabled
**Error Message**
**Error Message**
The specified bundle is disabled.
The specified bundle is disabled.
**Description**
**Description**
When an API for querying bundle information is called, the specified bundle is disabled.
When an API for querying bundle information is called, the specified bundle is disabled.
**Possible Causes**
**Possible Causes**
The bundle on the device has been disabled and cannot be queried.
The bundle on the device has been disabled and cannot be queried.
**Solution**
**Solution**
Check whether the bundle on the device is disabled.
Check whether the bundle on the device is disabled.
## 17700027 Distributed Service Is Not Started
## 17700027 Distributed Service Is Not Started
**Error Message**
**Error Message**
The distributed service is not running.
The distributed service is not running.
**Description**
**Description**
When an API of the **distributedBundle** module is called, the distributed service is not started.
When an API of the **distributedBundle** module is called, the distributed service is not started.
**Possible Causes**
**Possible Causes**
The device is not networked.
The device is not networked.
**Solution**
**Solution**
Check whether the device is networked.
Check whether the device is networked.
## 17700028 Mismatch Between Ability and Type
## 17700028 Mismatch Between Ability and Type
**Error Message**
**Error Message**
The ability does not match the type.
The ability does not match the type.
**Description**
**Description**
When the **setDefaultApplication** API of the **defaultAppManager** module is called, the **ability** and **type** passed in do not match.
When the **setDefaultApplication** API of the **defaultAppManager** module is called, the **ability** and **type** passed in do not match.
**Possible Causes**
**Possible Causes**
The ability and type are misspelled.
The ability and type are misspelled.
**Solution**
**Solution**
Check whether the spellings of ability and type are correct.
Check whether the spellings of ability and type are correct.
## 17700029 Disabled Ability
## 17700029 Disabled Ability
**Error Message**
**Error Message**
The specified ability is disabled.
The specified ability is disabled.
**Description**
**Description**
When an API for querying ability information is called, the specified ability is disabled.
When an API for querying ability information is called, the specified ability is disabled.
**Possible Causes**
**Possible Causes**
The specified ability is disabled.
The specified ability is disabled.
**Solution**
**Solution**
Check whether the ability is disabled. You can run the [bm commands](../../../readme/bundle-management.md#bm-commands) to query the information.
Check whether the ability is disabled. You can run the [bm commands](../../../readme/bundle-management.md#bm-commands) to query the information.
## 17700030 Failure in Clearing Cache Files
## 17700030 Failure in Clearing Cache Files
**Error Message**
**Error Message**
The specified bundle does not support clearing of cache files.
The specified bundle does not support clearing of cache files.
**Description**
**Description**
When the **cleanBundleCacheFiles** API of the **bundleManager** module is called, the specified bundle does not support cache file clearing.
When the **cleanBundleCacheFiles** API of the **bundleManager** module is called, the specified bundle does not support cache file clearing.
**Possible Causes**
**Possible Causes**
The application is a system application and the **AllowAppDataNotCleared** field is configured in the signing certificate.
The application is a system application and the **AllowAppDataNotCleared** field is configured in the signing certificate.
**Solution**
**Solution**
1. Check whether the application is a system application. You can run the [bm commands](../../../readme/bundle-management.md#bm-commands) to query the application information and check whether the value of **isSystemApp** is **true**.
1. Check whether the application is a system application. You can run the [bm commands](../../../readme/bundle-management.md#bm-commands) to query the application information and check whether the value of **isSystemApp** is **true**.
2. Check whether the **AllowAppDataNotCleared** field is configured for the application. You can run the [bm commands](../../../readme/bundle-management.md#bm-commands) to query the application information and check whether the value of **userDataClearable** is **true**.
2. Check whether the **AllowAppDataNotCleared** field is configured for the application. You can run the [bm commands](../../../readme/bundle-management.md#bm-commands) to query the application information and check whether the value of **userDataClearable** is **true**.