This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
The application is not an administrator application of the device.
Description
This error code is reported when the caller is not an enabled device administrator application.
Possible Causes
The enterprise device management APIs can be called only by a device administrator application that has been enabled.
Solution
Check whether the caller is a device administrator application enabled.
Error Message
The administrator application does not have permission to manage the device.
Description
This error code is reported when the device administrator application does not have the permission to invoke the API.
Possible Causes
The device administrator application calls an API that is accessible only by a super device administrator application.
Solution
Check that the device administrator type enabled for the caller is the same as that required by the API.
Error Message
The administrator ability component is invalid.
Description
This error code is reported when the specified device manager ability component is invalid.
Possible Causes
The specified administrator ability component is invalid due to any of the following causes:
Solution
Error Message
Failed to activate the administrator application of the device.
Description
This error code is reported when an application fails to be enabled as a device administrator application.
Possible Causes
The possible causes are as follows:
Solution
Error Message
Failed to deactivate the administrator application of the device.
Description
This error code is reported when the application has not been enabled, or when another device administrator application is disabled.
Possible Causes
The possible causes are as follows:
Solution
Error Message
The system ability works abnormally.
Description
This error code is reported when the enterprise device management ability is not working properly.
Possible Causes
The possible causes are as follows:
Solution
Try again later or restart the device.
Error Message
The specified system event is invalid.
Description
This error code is reported when the enterprise device management module does not support subscription to the specified event or the specified event is invalid.
Possible Causes
The enterprise device management module does not support subscription to the specified event or the specified event is invalid.
Solution
Check that the specified event is valid and supported by the enterprise device management module.
Error Message
Failed to grant the permission to the application.
Description
This error code is reported when the super device administrator application fails to grant administrator rights to other applications.
Possible Causes
The target application is not installed by the administrator.
Solution
Check that the target application has been installed by the administrator.
Error Message
A conflict policy has been configured.
Description
This error code is reported when a conflict policy is being delivered.
Possible Causes
A conflict policy is defined and to be delivered.
Solution
Resolve the conflict, and then deliver the policy.
Error Message
Parameter verification failed.
Description
This error code is returned when the parameter verification fails.
Possible Causes
The possible causes are as follows:
Solution
Error Message
The enterprise management policy has been successfully set, but the function has not taken effect in real time.
Description
The enterprise control policy is set successfully, but the control does not take effect immediately.
Possible Causes
In external storage management scenarios, disabling external storage may not take effect immediately if files on it are in use. In such cases, the external storage cannot be unmounted right away.
Solution
Restart the device for the control to take effect. In external storage management scenarios, disabling external storage takes effect after the device is restarted. The external storage is not automatically loaded.
Error Message
Failed to start the ability.
Description
This error code is generated when the component fails to be started.
Possible Causes
Solution
Error Message
The ability does not exist.
Description
This error code is generated when a component that does not exist is started.
Possible Causes
Solution
Error Message
Service timeout.
Description
This error code is reported when the service times out.
Possible Causes
The service times out.
Solution
Try again later.
Error Message
The self-activation credential of the enterprise device administrator is invalid.
Description
This error code is reported when the self-activation credential of the enterprise device administrator is invalid.
Possible Causes
The enterprise ID does not match.
Failed to configure the application's appidentifier.
The activation credential does not contain mandatory parameters or the certificate chain verification fails.
Solution
Ensure that the self-activation credential of the enterprise device administrator is correct.
Error Message
This device is not an enterprise device.
Description
The device is not an enterprise device.
Possible Causes
The device is not an enterprise device.
Solution
Ensure that the device is an enterprise device.
Error Message
Failed to manage the certificate.
Description
This error code is reported when the super device administrator application fails to install or uninstall a user certificate.
Possible Causes
The user certificate is incorrect.
Solution
Check that the user certificate is correct.
Error Message
Failed to install the application.
Description
This error code is reported when a device administrator application fails to install an enterprise application.
Possible Causes
The enterprise application failed to be installed.
If the called API is bundleManager.install, the possible causes are as follows:
If the bundleManager.installMarketApps API is called, the possible causes are as follows:
1. The network is abnormal.
2. The app corresponding to the passed bundle name has not been released on AppGallery.
3. The app has not been added to the enterprise application list on the HEM platform.
4. This device has not been commercial deployed by HEM.
Solution
If the called API is bundleManager.install, perform the following steps:
If the bundleManager.installMarketApps API is called, the processing steps are as follows:
1. Connect to a stable network and try again.
2. Pass the bundle name of an application that has been released on AppGallery.
3. Add the application to be installed to the enterprise application list on the HEM platform.
4. Deploy the device commercially via HEM.
Error Message
Failed to add an OS account.
Description
This error code is reported when an account fails to be added.
Possible Causes
The possible causes are as follows:
Solution
Error Message
The update packages do not exist or analyzing failed.
Description
This error code is reported when the enterprise device administrator application fails to notify the system of the package update.
Possible Causes
The possible causes are as follows:
Solution
Error Message
Add keep alive applications failed.
Description
This error code is reported when an application kept alive fails to be added.
Possible Causes
The possible causes are as follows:
Solution
Error Message
The number of certificates has reached the limit.
Description
This error code is reported when the number of installed enterprise re-signing certificates reaches 10.
Possible Causes
The number of installed enterprise re-signing certificates reaches the upper limit.
Solution
Check whether the number of installed enterprise re-signing certificates reaches 10. If yes, uninstall unnecessary certificates.
Error Message
The certificate is invalid.
Description
This error code is generated when the enterprise re-signing certificate fails to be installed.
Possible Causes
The enterprise re-signing certificate fails to be installed. The possible causes are as follows:
Solution
Error Message
The certificate does not exist.
Description
This error code is generated when the enterprise re-signing certificate fails to be uninstalled.
Possible Causes
The uninstalled certificate does not exist.
Solution
Check whether the uninstalled certificate exists.
Error Message
Collecting logs, please try again later.
Description
This error code is generated when a log collection task fails to be created.
Possible Causes
When a log collection task is being executed, the systemManager.startCollectLog API is called to create a log collection task.
Solution
Wait until the previous log collection task is complete (that is, the EnterpriseAdminExtensionAbility.onLogCollected callback is received), and then call the systemManager.startCollectLog API to create a new log collection task.
Error Message
Ethernet configuration failed. Ethernet device not connected.
Description
The Ethernet configuration fails, or the Ethernet device is not connected.
Possible Causes
The Ethernet configuration fails. The possible causes are as follows:
Solution
Error Message
The credential of the activation lock is invalid.
Description
The credential for the activation lock is invalid.
Possible Causes
Solution
Error Message
Failed to enable or disable the activation lock.
Description
Failed to disable or enable the activation lock.
Possible Causes
The device is not an enterprise PC/2-in-1 device.
Solution
Ensure that an enterprise PC/2-in-1 device is used.
Error Message
The number of applications in the Dock has reached the maximum.
Description
This error code is reported when an enterprise device administrator fails to add an application to the Dock.
Possible Causes
The number of applications in the Dock has reached the maximum.
Solution
Delete unnecessary applications from the Dock.
Error Message
The application is already in the Dock.
Description
This error code is reported when an enterprise device administrator fails to add an application to the Dock.
Possible Causes
The specified application has already in the Dock.
Solution
Remove the specified application from the Dock and add it to the specified location in the Dock again.
Error Message
The application is not installed.
Description
This error code is reported when the policy of an application needs to be delivered but the application has not been installed.
Possible Causes
The specified application has not been installed yet.
Solution
Install the specified application and try again.
Error Message
The application has not been added to the Dock.
Description
This error code is reported when an enterprise device administrator removes an application from the Dock.
Possible Causes
The application to be removed is not in the Dock.
Solution
Ensure that the package name of the application to be removed from the Dock is correct.
Error Message
SIM card activation or deactivation failed.
Description
Failed to enable or disable the SIM card.
Possible Causes
This error code indicates that the SIM card fails to be enabled or disabled. The possible causes are as follows:
Solution
Error Message
The application is inoperable.
Description
This error code is reported when an enterprise device administrator fails to add an application to the Dock.
Possible Causes
The specified application, such as Application Center, Task Center, Files, Recycle Bin, or an application without an icon, is inoperable.
Solution
The specified application cannot be added to the Dock. Add another application.
Error Message
The location is inoperable.
Description
This error code is reported when an enterprise device administrator fails to add an application to the Dock.
Possible Causes
If the application in position 0 or 1 in the Dock is Application Center or Task Center, the application at that location cannot be changed.
Solution
Add the application to another location.
Error Message
Failed to set the default data SIM card. The airplane mode is enabled or no SIM card is inserted.
Description
Failed to set the default mobile data SIM.
Possible Causes
The possible causes are as follows:
Solution
Error Message
A lock screen password has been set for the device.
Description
This error code is reported when an enterprise device administrator adds a policy to disable the swipe-to-unlock capability.
Possible Causes
A screen lock password has been set on the device. In this case, the device needs to verify the password before accessing the home screen.
Solution
Delete the lock screen password.
Error Message
Failed to install the HAP because of insufficient system disk space.
Description
This error code is reported when an application fails to be installed due to insufficient system disk space.
Possible Causes
The system disk space is insufficient.
Solution
Clear system disk space and try again.
Error Message
Failed to install the HAP because enterprise device management disallows the installation.
Description
This error code is reported when an application fails to be installed because enterprise device management prohibits the installation.
Possible Causes
Solution
Error Message
Failed to install the HAP because the HAP fails to be parsed.
Description
This error code is reported when the application fails to be installed due to HAP parsing failure.
Possible Causes
The possible causes are as follows:
Solution
Error Message
Failed to install the HAP because the HAP signature fails to be verified.
Description
This error code is reported when the application fails to be installed due to HAP signature verification failure.
Possible Causes
The possible causes are as follows:
Solution
Error Message
Failed to install the HAP because the HAP path is invalid or the HAP is too large.
Description
This error code is reported when the application fails to be installed due to an invalid HAP path or an extra-large HAP.
Possible Causes
The possible causes are as follows:
Solution
Error Message
Failed to install the HAPs because they have different configuration information.
Description
This error code is reported when the installation fails because the configuration information of multiple HAP files are inconsistent.
Possible Causes
The configuration information of the HAP files to be installed is inconsistent.
Solution
Ensure that the configuration information of the HAP files to be installed is consistent.
Error Message
Failed to install the HAP because the isolationMode configured is not supported.
Description
This error code is reported when the application fails to be installed because isolationMode of the HAP is not supported.
Possible Causes
isolationMode specified for the HAP is not supported by the current system.
Solution
Ensure that isolationMode set of the HAP is supported by the system.
Error Message
Failed to install the HAP since the version of the HAP to install is too early.
Description
This error code is reported when the application fails to be installed due to outdated HAP version.
Possible Causes
The version of the HAP package to be installed is lower than the version of the installed application.
Solution
Use the HAP of a later version for installation.
Error Message
Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode.
Description
This error code is reported when the installation fails because VersionCode of the HAP used for updating is not greater than that of the currently installed version.
Possible Causes
VersionCode of the HAP used for updating is not greater than that of the installed application.
Solution
Ensure that VersionCode of the HAP used for updating is greater than that of the installed application.
Error Message
Installation failed because the dependent module does not exist.
Description
This error code is reported when the application fails to be installed because the dependent module does not exist.
Possible Causes
The module on which the application depends is not installed or does not exist.
Solution
Install the dependent module and then install the application.
Error Message
The specified user ID is not found.
Description
This error code is reported if the specified user ID does not exist.
Possible Causes
The specified user ID does not exist in the system.
Solution
Ensure that the specified user ID is valid.
For details, see error code 17700004 in Bundle Management Subsystem Error Codes.
Error Message
Failed to install the HAP because the overlay check failed.
Description
The target application and the to-be-installed application with the overlay feature are not preset applications, or the target application or target module is one with the overlay feature.
Possible Causes
Solution
Error Message
Failed to install the HSP due to missing required permissions.
Description
This error code is reported when the HSP fails to be installed due to lack of required permissions.
Possible Causes
The HSP does not contain the required permission configuration.
Solution
Ensure that the HSP contains all required permission configurations.
Error Message
Failed to install the HAP due to incorrect URI in the data proxy.
Description
This error code is reported when the application fails to be installed due to incorrect data proxy URI.
Possible Causes
The URI of the data proxy in the HAP is incorrect.
Solution
Ensure that the URI of the data proxy in the HAP is correct.
Error Message
Failed to install the HAP due to incorrect permission configuration in the data proxy.
Description
This error code is reported when the application fails to be installed due to incorrect data proxy permission configuration.
Possible Causes
The data proxy permission configuration in the HAP is incorrect.
Solution
Ensure that the data proxy permission configuration in the HAP is correct.
Error Message
Failed to install the HAP due to code signature verification failure.
Description
This error code is reported when the application fails to be installed due to code signature verification failure.
Possible Causes
The possible causes are as follows:
Solution
Error Message
Failed to install the HAP due to enterprise device verification failure.
Description
This error code is reported when the application fails to be installed due to enterprise device verification failure.
Possible Causes
The possible causes are as follows:
Solution
Ensure that the device is within the enterprise device management scope and has passed the enterprise device management verification.
Error Message
The number of accounts reaches the upper limit.
Description
The number of created system accounts has reached the upper limit.
Possible Causes
This error code is generated when an attempt is made to create a new system account after the number of system accounts has reached the upper limit.
Solution
Check whether the number of created system accounts has reached the upper limit. If so, delete unnecessary system accounts in a timely manner.
Error Message
Restricted account.
Description
The system account of the current type does not support this operation.
Possible Causes
Solution
Check whether the system account of the current type supports this operation.
Error Message
Failed to toggle the switch state.
Description
This error code is reported when the switch state fails to be toggled.
Possible Causes
The Bluetooth, Wi-Fi, NFC, or NearLink related services on the current device are in an abnormal state.
Solution
Check whether the device-related services are running properly.
Error Message
Prerequisites for the API call have not been satisfied. For example, distributed outgoing transmission is not disallowed before adding the distributed bidirectional collaboration trustlist.
Description
This error code is reported when an application list that allows distributed bidirectional collaboration is added without disabling the one-way transmission capability between devices.
Possible Causes
Before adding the list of applications allowed for distributed two-way collaboration, the one-way data transmission capability between devices has not been disabled.
Solution
Disable the one-way data transmission capability between devices through the setDisallowedPolicyForAccount API, and then add the list of applications allowed for distributed two-way collaboration.
Error Message
This permission is not disallowed. Applications cannot be added to or removed from the trustlist.
Description
This error code is reported when an exception list for a permission is added while the permission itself has not been disabled.
Possible Causes
The specified permission has not been disabled before you add an app that is allowed to use the disabled permission to the exception list.
Solution
Call the setDisallowedPermission API to disable the specified permission, and then add an exception list for the permission.
Error Message
This permission cannot be disallowed.
Description
When a permission whose APL level is not normal or system_basic is disabled, this error code occurs.
Possible Causes
The APL level of the permission to be disabled is not normal or system_basic.
Solution
Ensure that the APL level of the permission to be disabled is normal or system_basic.
Error Message
The number of signed-in accounts reaches the upper limit.
Description
The number of system accounts that have been logged in on the current device reaches the upper limit.
Possible Causes
The number of created and signed-in system accounts has reached the upper limit.
Solution
Try to sign out unnecessary system accounts and promptly remove system accounts that no longer need to be retained.