1# Bundle Error Codes 2 3> **NOTE** 4> 5> This topic describes only module-specific error codes. For details about universal error codes, see [Universal Error Codes](../errorcode-universal.md). 6 7## 17700001 Bundle Name Does Not Exist 8 9**Error Message** 10 11The specified bundle name is not found. 12 13**Description** 14 15When a query API is called, the bundle name passed in does not exist. 16 17**Possible Causes** 18 191. The bundle name is misspelled. 202. The corresponding bundle is not installed. 21 22**Solution** 231. Check whether the spelling of the bundle name is correct. 242. Check whether the corresponding bundle is installed. 25 26## 17700002 Module Name Does Not Exist 27 28**Error Message** 29 30The specified module name is not found. 31 32**Description** 33 34When a query API or an installation-free API is called, the module name passed in does not exist. 35 36**Possible Causes** 371. The module name is misspelled. 382. The module is not installed. 39 40**Solution** 411. Check whether the spelling of the module name is correct. 422. Check whether the module is installed. 43 44## 17700003 Ability Name Does Not Exist 45 46**Error Message** 47 48The specified ability name is not found. 49 50**Description** 51 52When a query API is called, the ability name passed in does not exist. 53 54**Possible Causes** 551. The ability name is misspelled. 562. The application does not have the ability specified by **abilityName**. 57 58**Solution** 591. Check whether the spelling of the ability name is correct. 602. Check whether the application has the ability specified by **abilityName**. 61 62## 17700004 User ID Does Not Exist 63 64**Error Message** 65 66The specified user ID is not found. 67 68**Description** 69 70When a user-related API is called, the user ID passed in does not exist. 71 72**Possible Causes** 731. Incorrect username. 742. The user does not exist in the system. 75 76**Solution** 771. Check whether the user ID is correct. 782. Check whether the user exists. 79 80## 17700005 appId Is an Empty String 81 82**Error Message** 83 84The specified app ID is an empty string. 85 86**Description** 87 88When an API of the **appControl** module is called, the application ID passed in does not exist. 89 90**Possible Causes** 91 92**appId** is an empty string. 93 94**Solution** 95 96Check whether **appId** is an empty string. 97 98## 17700006 Permission Does Not Exist 99 100**Error Message** 101 102The specified permission is not found. 103 104**Description** 105 106When the **getPermissionDef** API of the **bundleManager** module is called, the permission passed in does not exist. 107 108**Possible Causes** 1091. The permission name is misspelled. 1102. The permission does not exist. 111 112**Solution** 1131. Check whether the spelling of the permission name is correct. 1142. Check whether the permission exists. 115 116## 17700007 Incorrect Device ID 117 118**Error Message** 119 120The specified device ID is not found. 121 122**Description** 123 124When an API of the **distributedBundle** module is called, the device ID passed in does not exist. 125 126**Possible Causes** 1271. The device ID is incorrect. 1282. The device ID does not exist. 129 130**Solution** 1311. Check whether the device ID is correct. 1322. Check whether the device ID exists. 133 134## 17700010 Bundle Installation Failure Due to File Parsing Failure 135 136**Error Message** 137 138Failed to install the HAP because the HAP fails to be parsed. 139 140**Description** 141 142When the **install** API of the **installer** module is called, the HAP passed in fails to be parsed. 143 144**Possible Causes** 1451. The HAP is not in ZIP format. 1462. The profile in the HAP is not in JSON format. 1473. Necessary fields are missing in the profile. 148 149**Solution** 1501. Check whether the HAP is in ZIP format. 1512. Check whether the profile is in [JSON format](../../quick-start/application-configuration-file-overview-stage.md). 1523. Check whether an error message is displayed when DevEco Studio compiles the HAP. If necessary fields are missing, an error message will be displayed. 153 154## 17700011 Bundle Installation Failure Due to Signature Verification Failure 155 156**Error Message** 157 158Failed to install the HAP because the HAP signature fails to be verified. 159 160**Description** 161 162Calling the **install** API of the **installer** module to install the bundle fails due to signature verification failure. 163 164**Possible Causes** 165 1661. The HAP is not signed. 1672. The source of the HAP signature information is unreliable. 1683. The signature information of the HAP to update is different from that of the installed HAP. 1694. The signature information of multiple HAPs is inconsistent. 170 171**Solution** 1721. Check whether the HAP is signed. 1732. Ensure that the signing certificate of the HAP is applied for from the application market. 1743. Check whether the same certificate is used for signing multiple HAPs. 1754. Check whether the certificate used for signing the HAP to update is the same as the certificate used for signing the installed HAP. 176 177## 17700012 Bundle Installation Failure Due to Invalid File Path or Too Large File 178 179**Error Message** 180 181Failed to install the HAP because the HAP path is invalid or the HAP is too large. 182 183**Description** 184 185Calling the **install** API of the **installer** module to install the bundle fails because the HAP path is invalid or the HAP is too large. 186 187**Possible Causes** 1881. The path of the HAP does not exist. 1892. The path of the HAP is inaccessible. 1903. The size of the HAP exceeds the upper limit 4 GB. 191 192**Solution** 1931. Check whether the HAP path exists. 1942. Check whether the HAP is read only or executable. 1953. Check whether the size of the HAP exceeds 4 GB. 196 197## 17700015 Bundle Installation Failure Due to Different Configuration Information of Multiple HAPs 198 199**Error Message** 200 201Failed to install the HAPs because they have different configuration information. 202 203**Description** 204 205Calling the **install** API of the **installer** module to install the bundle fails because the HAPs have different configuration information. 206 207**Possible Causes** 208 209The fields under **app** in the profiles of these HAPs are inconsistent. 210 211**Solution** 212 213Check whether the fields under **app** are the same. 214 215## 17700016 Bundle Installation Failure Due to Insufficient System Disk Space 216 217**Error Message** 218 219Failed to install the HAP because of insufficient system disk space. 220 221**Description** 222 223Calling the **install** API of the **installer** module to install the bundle fails due to insufficient system disk space. 224 225**Possible Causes** 226 227The system disk space is insufficient. 228 229**Solution** 230 231Check whether the system has sufficient disk space. 232 233## 17700017 Bundle Installation Failure Because the Version to Install is Too Earlier 234 235**Error Message** 236 237Failed to install the HAP since the version of the HAP to install is too early. 238 239**Description** 240 241Calling the **install** API of the **installer** module to install the bundle fails because the version to install is earlier than the version in use. 242 243**Possible Causes** 244 245The version number is earlier than the version in use. 246 247**Solution** 248 249Ensure that the version of the bundle to install is not earlier than the version in use. 250 251## 17700018 Bundle Installation Failure Because the Dependent Module Does Not Exist 252 253**Error Message** 254 255Failed to install the HAP or HSP because the dependent module does not exist. 256 257**Description** 258 259The dependent module does not exist during the HAP or HPS installation. 260 261**Possible Causes** 262 263The dependent module is not installed. 264 265**Solution** 266 267Install the dependent modules first. 268 269## 17700020 Failure to Uninstall Preinstalled Applications 270 271**Error Message** 272 273The preinstalled app cannot be uninstalled. 274 275**Description** 276 277Calling the **uninstall** API of the **installer** module to uninstall a preinstalled application fails. 278 279**Possible Causes** 280 2811. You might want to uninstall a non-preinstalled application but passed the bundle name of a preinstalled app. 2822. The preinstalled application cannot be uninstalled. 283 284**Solution** 2851. Check whether the bundle name is correct. 2862. Check whether the preinstalled application can be uninstalled. 287 288## 17700021 Invalid UID 289 290**Error Message** 291 292The specified uid is invalid. 293 294**Description** 295 296When the **getBundleNameByUid** API of the **bundleManager** module is called, the UID passed in is invalid. 297 298**Possible Causes** 2991. The UID is misspelled. 3002. The UID does not exist. 301 302**Solution** 3031. Check whether the UID is correct. 3042. Check whether the UID exists. 305 306## 17700022 Invalid Source File 307 308**Error Message** 309 310The input source file is invalid. 311 312**Description** 313 314When the **getBundleArchiveInfo** API of the **bundleManager** module is called, the HAP path passed in is invalid. 315 316**Possible Causes** 3171. The source file to be parsed does not exist. 3182. The source file to be parsed is not in ZIP format. 319 320**Solution** 3211. Check whether the source file to be parsed exists. 3222. Check whether the source file to be parsed is in ZIP format. 323 324## 17700023 Default Application Does Not Exist 325 326**Error Message** 327 328The specified default app does not exist. 329 330**Description** 331 332When the **getDefaultApplication** API of the **defaultAppManager** module is called, the specified default application does not exist. 333 334**Possible Causes** 335 336No default application is set for the device. 337 338**Solution** 339 340Check whether the default application is set on the device. 341 342## 17700024 Profile Does Not Exist 343 344**Error Message** 345 346Failed to get the profile because the specified profile is not found in the HAP. 347 348**Description** 349 350When an API for querying the profile is called, the profile does not exist. 351 352**Possible Causes** 353 3541. The metadata name passed in the API does not exist in the profile. 3552. The content of the profile is not in JSON format. 3563. The type of the profile to query does not exist. 357 358**Solution** 3591. Check whether the metadata name in the **ability** or **extensionAbility** to be queried exists. 3602. Check whether the content of the profile to be queried is in JSON format. 3613. Check whether the application contains a profile that matches the value of **profileType** passed in. 362 363## 17700025 Invalid Type 364 365**Error Message** 366 367The specified type is invalid. 368 369**Description** 370 371When an API of the **defaultAppManager** module is called, the type passed in is invalid. 372 373**Possible Causes** 3741. The type passed in the API is misspelled. 3752. The type passed in the API does not exist. 376 377**Solution** 3781. Check whether the spelling of type is correct. 3792. Enter a type that exists. 380 381## 17700026 Bundle Disabled 382 383**Error Message** 384 385The specified bundle is disabled. 386 387**Description** 388 389When an API for querying bundle information is called, the specified bundle is disabled. 390 391**Possible Causes** 392 393The bundle on the device has been disabled and cannot be queried. 394 395**Solution** 396 397Check whether the bundle on the device is disabled. 398 399## 17700027 Distributed Service Is Not Started 400 401**Error Message** 402 403The distributed service is not running. 404 405**Description** 406 407When an API of the **distributedBundle** module is called, the distributed service is not started. 408 409**Possible Causes** 410 411The device is not networked. 412 413**Solution** 414 415Check whether the device is networked. 416 417## 17700028 Mismatch Between Ability and Type 418 419**Error Message** 420 421The ability does not match the type. 422 423**Description** 424 425When the **setDefaultApplication** API of the **defaultAppManager** module is called, the **ability** and **type** passed in do not match. 426 427**Possible Causes** 428 429The ability and type are misspelled. 430 431**Solution** 432 433Check whether the spellings of ability and type are correct. 434 435## 17700029 Disabled Ability 436 437**Error Message** 438 439The specified ability is disabled. 440 441**Description** 442 443When an API for querying ability information is called, the specified ability is disabled. 444 445**Possible Causes** 446 447The specified ability is disabled. 448 449**Solution** 450 451Check whether the ability is disabled. You can use [Bundle Manager](../../tools/bm-tool.md) to query the information. 452 453## 17700030 Failure in Clearing Cache Files 454 455**Error Message** 456 457The specified bundle does not support clearing of cache files. 458 459**Description** 460 461When the **cleanBundleCacheFiles** API of the **bundleManager** module is called, the specified bundle does not support cache file clearing. 462 463**Possible Causes** 464 465The application is a system application and the **AllowAppDataNotCleared** field is configured in the signing certificate. 466 467**Solution** 4681. Check whether the application is a system application. You can use [Bundle Manager](../../tools/bm-tool.md) to query the application information and check whether the value of **isSystemApp** is **true**. 4692. Check whether the **AllowAppDataNotCleared** field is configured for the application. You can use [Bundle Manager](../../tools/bm-tool.md) to query the application information and check whether the value of **userDataClearable** is **true**. 470 471## 17700031 HAP Installation Fails Due to Overlay Feature Verification Failure 472 473**Error Message** 474 475Failed to install the HAP because the overlay check of the HAP failed. 476 477**Description** 478 479The 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. 480 481**Possible Causes** 4821. To use the overlay feature between applications, the following conditions must be met:<br>The application with the overlay feature must be a preset application. 4832. The target application must be a preset application. 4843. The target application cannot be an application with the overlay feature. 4854. The target module cannot be a module with the overlay feature. 486 487**Solution** 4881. Ensure that the application with the overlay feature is a preset application. 4892. Ensure that the target application is a preset application. 4903. Ensure that the target application is not an application with the overlay feature. 4914. Ensure that the target module is not a module with the overlay feature. 492 493## 17700032 Application Does Not Contain a Module with the Overlay Feature 494 495**Error Message** 496 497The specified bundle does not contain any overlay module. 498 499**Description** 500 501An API is called to obtain the **overlayModuleInfo** object of another application, but that application does not contain a module with the overlay feature. 502 503**Possible Causes** 504 505The specified application does not contain a module with the overlay feature. 506 507**Solution** 508 509Check whether the application contains a module with the overlay feature. 510 511## 17700033 Module Is Not Configured with the Overlay Feature 512 513**Error Message** 514 515The specified module is not an overlay module. 516 517**Description** 518 519An API is called to obtain the **overlayModuleInfo** object of a module, but the module is not configured with the overlay feature. 520 521**Possible Causes** 522 523The specified module is not a module with the overlay feature. 524 525**Solution** 526 527Check whether the module is configured with the overlay feature. 528 529## 17700034 Module Is Configured with the Overlay Feature 530 531**Error Message** 532 533The specified module is an overlay module. 534 535**Description** 536 537An API is called to obtain the **overlayModuleInfo** object based on the target module name, but that module is configured with the overlay feature. 538 539**Possible Causes** 540 541The specified module is configured with the overlay feature. 542 543**Solution** 544 545Check whether the specified module is configured with the overlay feature. 546 547## 17700035 Application Contains Only Modules with the Overlay Feature 548 549**Error Message** 550 551The specified bundle is an overlay bundle. 552 553**Description** 554 555An API is called to obtain the **overlayModuleInfo** object based on the target module name of another application, but that application contains only modules with the overlay feature. 556 557**Possible Causes** 558 559The specified application contains only modules with the overlay feature. 560 561**Solution** 562 563Check whether the application contains only modules with the overlay feature. 564 565## 17700036 Failure in Installing the Shared Library Because of No AllowAppShareLibrary Privilege 566 567**Error Message** 568 569Failed to install the HSP due to the lack of required permission. 570 571**Description** 572 573The shared library is not configured with the **AllowAppShareLibrary** privilege, resulting in security and privacy risks. As a result, the installation fails. 574 575**Possible Causes** 576 577The shared library does not request the **AllowAppShareLibrary** privilege before being released. 578 579**Solution** 580 581Configure the **AllowAppShareLibrary** privilege for the shared library, re-sign the library, and release it. 582 583## 17700037 Failure in Uninstalling the Shared Library Due to Dependency 584 585**Error Message** 586 587The version of the shared bundle is dependent on other applications. 588 589**Description** 590 591Other applications depend on the shared library, causing the uninstall to fail. 592 593**Possible Causes** 5941. The version specified during the uninstall is the latest version of the shared library, and the shared library is depended on by other applications. 5952. No version is not specified during the uninstall, meaning that all versions of the shared library will be uninstalled, and the shared library is depended on by other applications. 596 597**Solution** 5981. Check whether the shared library to uninstall is depended on by other applications. 5992. Check whether the version of the shared library to uninstall is the latest version of the shared library. 600 601## 17700038 Shared Library to Uninstall Does Not Exist 602 603**Error Message** 604 605The specified shared bundle does not exist. 606 607**Description** 608 609The shared library to uninstall does not exist. 610 611**Possible Causes** 6121. The version specified during the uninstall is different from the version of the shared library installed. 6132. The shared library to uninstall is not installed. 614 615**Solution** 6161. Check whether the shared library exists. 6172. Check whether the version of the shared library is the same as that installed. 618 619## 17700039 Failure in Installing an Inter-Application Shared Library 620 621**Error Message** 622 623Failed to install the HSP because installing a shared bundle specified by hapFilePaths is not allowed. 624 625**Description** 626 627During application installation, the installation package passed in is of the inter-application shared library type. 628 629**Possible Causes** 6301. When [Bundle Manager](../../tools/bm-tool.md) is used to install an application, the **-p** parameter is set to the installation package path of an inter-application shared library. 6312. When the **install** API is called to install an application, the **hapFilePaths** parameter is set to the installation package path of an inter-application shared library. 632 633**Solution** 6341. Use the **-p** parameter to specify the installation package path of an inter-application shared library. 6352. Use the **sharedBundleDirPaths** parameter in **installParam** to specify the installation package path of an inter-application shared library. 636 637## 17700040 Failure in Uninstalling an Inter-Application Shared Library 638 639**Error Message** 640 641The specified bundle is a shared bundle which cannot be uninstalled. 642 643**Description** 644 645During application uninstall, the bundle name of an inter-application shared library is passed in. 646 647**Possible Causes** 6481. When [Bundle Manager](../../tools/bm-tool.md) is used to uninstall an application, the **-n** parameter is set to the bundle name of an inter-application shared library. 6492. When the **install** API is called to uninstall an application, the **bundleName** parameter is set to the bundle name of an inter-application shared library. 650 651**Solution** 6521. Use the **-n** parameter to specify the application to be uninstalled as a shared library application. 6532. Use the **bundleName** and **versionCode** parameters in **UninstallParam** to specify the bundle name and version of the shared library to be uninstalled. 654 655## 17700041 Application Installation Is Not Allowed by Enterprise Device Management 656 657**Error Message** 658 659Failed to install the HAP because the installation is forbidden by enterprise device management. 660 661**Description** 662 663The installation of this application is prohibited by enterprise device management. 664 665**Possible Causes** 666 667The enterprise device management does not allow the installation of this application. 668 669**Solution** 670 671Check whether the application installation is prohibited by the enterprise device management. 672 673## 17700042 Incorrect URI in the Data Proxy 674 675**Error Message** 676 677Failed to install the HAP because of incorrect URI in the data proxy. 678 679**Description** 680 681During application installation, the URI of the data proxy is incorrectly configured. 682 683**Possible Causes** 684 6851. The bundle name in the URI is different from that of the current application. 6862. The URI is duplicate. 687 688**Solution** 689 6901. Change the bundle name in the URI to that of the current application. 6912. Change duplicate URIs. Ensure that the URI of each data proxy is unique. 692 693## 17700043 Incorrect Permission Configuration in the Data Proxy 694 695**Error Message** 696 697Failed to install the HAP because of low APL in the non-system data proxy (required APL: system_basic or system_core). 698 699**Description** 700 701During application installation, the permission level of the data proxy of a non-system application is too low. The permission level should be **system_basic** or **system_core**. 702 703**Possible Causes** 704 7051. No permission is configured for the data proxy of a non-system application. 7062. The permission level of the data proxy of a non-system application is too low. 707 708**Solution** 709 7101. Configure the read and write permissions in the data proxy. 7112. Change the read and write permissions in the data proxy and ensure that the permission level is **system_basic** or **system_core**. 712 713## 17700044 Field isolationMode in the HAP Conflicts with the Device Isolation Mode 714 715**Error Message** 716 717Failed to install the HAP because the isolationMode configured is not supported. 718 719**Description** 720 721During application installation, the value of **isolationMode** in the HAP conflicts with the isolation mode of the device. 722 723**Possible Causes** 7241. The device supports the isolation mode (the value of **persist.bms.supportIsolationMode** is **true**), whereas the value of **isolationMode** in the HAP is **nonisolationOnly**. 7252. The device does not support the isolation mode (the value of **persist.bms.supportIsolationMode** is **false**), whereas the value of **isolationMode** in the HAP is **isolationOnly**. 726 727**Solution** 728 729Set the **isolationMode** field in the HAP based on the isolation mode of the device. 730 731## 17700045 Application Uninstall Is Not Allowed by Enterprise Device Management 732 733**Error Message** 734 735Failed to uninstall the HAP because the uninstall is forbidden by enterprise device management. 736 737**Description** 738 739The uninstall of this application is prohibited by enterprise device management. 740 741**Possible Causes** 742 743The enterprise device management does not allow the installation of this application. 744 745**Solution** 746 747Check whether the application uninstall is prohibited by the enterprise device management. 748 749## 17700047 Application Version To Be Updated Is Not Later Than the Current Version 750 751**Error Message** 752 753Failed to install the HAP because the VersionCode to be updated is not greater than the current VersionCode. 754 755**Description** 756 757The version of the application to be updated is not later than the current version. 758 759**Possible Causes** 760 7611. The version number of the application to be updated is earlier than or equal to that of the current version number. 7622. When **installFlag** is set to **NORMAL**, the version number of the application to be updated must be later than the installed version number. 763 764**Solution** 765 7661. Set the version number of the application to be later than the current version number. 7672. If you want to update the application without changing the version number, set **installFlag** to **REPLACE_EXISTING**. 768 769## 17700048 Code Signature Verification Failure 770**Error Message** 771 772Failed to install the HAP because the code signature verification failed. 773 774**Description** 775 776During application installation, the code signature file of the installation package fails to be verified. 777 778**Possible Causes** 779 7801. The module corresponding to the code signature file does not exist in the installation package. 7812. The path of the code signature file is invalid. 7823. The code signature file does not match the installation package. 783 784**Solution** 785 7861. Ensure that the module corresponding to the code signature file is contained in the installation package. 7872. Provide a valid path of the code signature file. 7883. Use the code signature file that matches the installation package. 789 790## 17700049 Update Failure Because of Incorrect Bundle Name 791 792**Error Message** 793 794Failed to install the HAP because the bundleName is different from the bundleName of the caller application. 795 796**Description** 797 798During the update of an enterprise MDM application, the bundleName passed in is different from that of the caller. 799 800**Possible Causes** 801 802The HAP or HSP to be installed does not belong to the current application. 803 804**Solution** 805 806Ensure that the HAP or HSP to be installed belongs to the current application. 807 808## 17700050 Enterprise Device Verification Failure 809 810**Error Message** 811 812Failed to install the HAP because an enterprise normal/MDM bundle cannot be installed on non-enterprise devices. 813 814**Description** 815 816Users try to install an enterprise Normal or MDM application on a non-enterprise device. 817 818**Possible Causes** 819 820The device is not an enterprise device. 821 822**Solution** 823 8241. Use an enterprise device. 825 8262. Ensure that **const.bms.allowenterprisebundle** is set to **true**. 827 828## 17700051 Update Failure Because the Distribution Type of the Caller Is Not Enterprise MDM 829 830**Error Message** 831 832Failed to install the HAP because the distribution type of the caller application is not enterprise_mdm. 833 834**Description** 835 836During the update of an enterprise MDM application, the distribution type of the caller is not enterprise MDM. 837 838**Possible Causes** 839 840The distribution type of the caller is not enterprise MDM. 841 842**Solution** 843 844Ensure that the signature file of the application is correctly configured. 845 846## 17700052 Installation of Debugging Applications Allowed Only in Developer Mode 847 848**Error Message** 849 850Failed to install the HAP because a debug bundle can be installed only in developer mode. 851 852**Description** 853 854A debugging application can be installed only in the developer mode. 855 856**Possible Causes** 857 858The application is a debugging application, but the device is not in developer mode. 859 860**Solution** 861 862Run the **hdc shell param get const.security.developermode.state** command. If **false** is returned, a debugging application cannot be installed on the device. 863 864## 17700053 Not Invoked by AppGallery 865 866**Error Message** 867 868The caller is not AppGallery. 869 870**Description** 871 872This API is called by AppGallery. 873 874**Possible Causes** 875 876The caller is not AppGallery. 877 878**Solution** 879 880Use AppGallery to call the API. 881 882## 17700054 Bundle Installation Failure Due to Permission Verification Failure 883 884**Error Message** 885 886Failed to install the HAP because the HAP requests wrong permissions. 887 888**Description** 889 890The application has applied for an incorrect permission, causing the installation to fail. 891 892**Possible Causes** 893 8941. The application is not an MDM application and has applied for the MDM permission. 8952. The ability privilege level (APL) of the application is lower than the level of the permission that the application has applied for. 896 897**Solution** 898 8991. Check whether the application has applied for the <!--Del-->[<!--DelEnd-->MDM permission<!--Del-->](../../security/AccessToken/permissions-for-mdm-apps.md)<!--DelEnd-->, which is available only for MDM applications. 9002. Check whether the requested permission is open. For details, see [Permission List](../../security/AccessToken/app-permissions.md). 901 902## 17700055 Invalid Link 903 904**Error Message** 905 906The specified link is invalid. 907 908**Description** 909 910When the **canOpenLink** API of the **bundleManager** module is called, the link passed in is invalid. 911 912**Possible Causes** 913 914The format of the link is incorrect. 915 916**Solution** 917 918Check whether the link format is correct. 919 920## 17700056 Scheme of the Link Not Configured in querySchemes 921 922**Error Message** 923 924The scheme of the specified link is not in the querySchemes. 925 926**Description** 927 928When the **canOpenLink** API of the **bundleManager** module is called, the scheme of the link is not configured in the **querySchemes** field. 929 930**Possible Causes** 931 932The scheme of the link is not configured in the **querySchemes** field. 933 934**Solution** 935 936Check whether the URL scheme is configured in the **querySchemes** field. 937 938## 17700057 Specified Application Is Not a Preset Application 939 940**Error Message** 941 942Failed to uninstall updates because the HAP is not pre-installed. 943 944**Description** 945 946When the **uninstallUpdates** API of the **installer** module is called, the specified application is not a preset application. 947 948**Possible Causes** 949 950The **uninstallUpdates** API can only be used to uninstall the updates of a preset application. 951 952**Solution** 953 954Check whether the specified application is a preset application. 955 956## 17700058 Specified Application Cannot Be Installed on this Device or by this User 957 958**Error Message** 959 960Failed to install the HAP because this application is prohibited from being installed on this device or by specified users. 961 962**Description** 963 964The specified application cannot be installed on this device or by this user. 965 966**Possible Causes** 9671. The device in use has undergone a whitewashing process. 9682. The specified application is prohibited from being installed by the specified user. 969 970**Solution** 9711. Check whether the device has undergone a whitewashing process. 9722. Install the application as another user. 973 974## 17700059 Specified Developer ID Does Not Exist 975 976**Error Message** 977 978The specified developerId is invalid. 979 980**Description** 981 982When the **getAllBundleInfoByDeveloperId** API of the **bundleManager** module is called, the developer ID passed in is invalid. 983 984**Possible Causes** 985 986Applications with the specified developer ID are not installed on the device. 987 988**Solution** 989 990Check the validity of the developer ID. 991 992## 17700060 Specified Application Cannot Be Uninstalled 993 994**Error Message** 995 996The specified application cannot be uninstalled. 997 998**Description** 999 1000When the **uninstall** API of the **BundleInstaller** module or the **switchUninstallState** API of the **bundleManager** module is called, the specified application cannot be uninstalled. 1001 1002**Possible Causes** 10031. When the **uninstall** API is called, the specified application rejects the uninstallation attempt due to the ongoing operation of its own services. 10042. When the **switchUninstallState** API is called, the specified application has a privilege that prevents it from being uninstalled. 1005 1006**Solution** 10071. Check the reason why the application cannot be uninstalled and perform related operations. 10082. Check whether the specified application is uninstallable. 1009 1010## 17700061 appIndex for a Clone Is Invalid 1011 1012**Error Message** 1013 1014The appIndex is invalid. 1015 1016**Description** 1017 1018When an API related to the app clone feature is called, the specified **appIndex** is invalid. 1019 1020**Possible Causes** 10211. The index is out of range. 10222. The application does not have a clone of the specified index. 10233. The index already exists when you create the clone. 1024 1025**Solution** 10261. Check whether the index is within the allowed range. 10272. Check whether the application has a clone of the specified index. 10283. Check whether **createAppClone** is called with an existing index. 1029 1030## 17700062 Failed to Uninstall an Application Configured with an Uninstallation Disposed Rule 1031 1032**Error Message** 1033 1034Failed to uninstall the app because the app has uninstall rule. 1035 1036**Description** 1037 1038The application cannot be directly uninstalled because it is configured with an uninstallation disposed rule. 1039 1040**Possible Causes** 1041 1042The application to uninstall is configured with an uninstallation disposed rule. 1043 1044**Solution** 1045 1046Check whether the application is configured with an uninstallation disposed rule. The entity that set the rule is responsible for handling. 1047 1048## 17700065 Ability Specified by want in the ShortcutInfo Struct Cannot Be Started 1049 1050**Error Message** 1051 1052The ability specified by want in the ShortcutInfo struct cannot be started. 1053 1054**Description** 1055 1056When the **startShortcut** API of the **launcherBundleManager** module is called, the ability specified by **want** in the **ShortcutInfo** struct fails to start. 1057 1058**Possible Causes** 1059 1060The ability specified by **want** in the **ShortcutInfo** struct does not exist, or the ability specified by **want** in the **ShortcutInfo** struct cannot be started. 1061 1062**Solution** 1063 1064Check the validity of **want** in the **ShortcutInfo** struct. 1065 1066## 17700066 Failed to Install the Native Software Package 1067 1068**Error Message** 1069 1070Failed to install the HAP because installing the native package failed. 1071 1072**Description** 1073 1074The native software package fails to be installed during HAP installation. 1075 1076**Possible Causes** 1077 1078The configuration of the native software package is incorrect. 1079 1080**Solution** 1081 1082Check the configuration of the native software package. 1083 1084## 17700067 Failed to Uninstall the Native Software Package 1085 1086**Error Message** 1087 1088Failed to uninstall the HAP because uninstalling the native package failed. 1089 1090**Description** 1091 1092The native software package fails to be uninstalled during application uninstall. 1093 1094**Possible Causes** 1095 1096The native software package to be uninstalled is occupied. 1097 1098**Solution** 1099 1100Check whether any process occupies the native software package. 1101 1102## 17700069 AppClone Instance Cannot Be Created For an Application in Multi-app Mode Not Set To appClone 1103 1104**Error Message** 1105 1106The app does not support the creation of an appClone instance. 1107 1108**Description** 1109 1110An AppClone instance cannot be created for an application that is not in appClone mode. 1111 1112**Possible Causes** 1113 1114The multi-app mode is set to another mode other than appClone. 1115 1116**Solution** 1117 1118Check whether the application to update supports clones. 1119 1120## 17700070 Invalid Shortcut ID 1121 1122**Error Message** 1123 1124The specified shortcut id is illegal. 1125 1126**Description** 1127 1128The specified shortcut ID is invalid. 1129 1130**Possible Causes** 1131 1132When the API for adding a shortcut is called, a shortcut with the same bundle name, clone index, user ID, and shortcut ID already exists, or the passed-in shortcut ID is empty. 1133 1134**Solution** 1135 1136Check whether the bundle name and shortcut ID are correct. 1137 1138## 17700071 Enterprise Applications Cannot Be Installed 1139 1140**Error Message** 1141 1142It is not allowed to install the enterprise bundle. 1143 1144**Description** 1145 1146It is not allowed to install enterprise applications through a specific installation API. 1147 1148**Possible Causes** 1149 1150Due to policy control, enterprise applications cannot be installed through the specific API. 1151 1152## 17700072 Launch Want Does Not Exist 1153 1154**Error Message** 1155 1156The launch want is not found. 1157 1158**Description** 1159 1160The launch want does not exist. 1161 1162**Possible Causes** 1163 1164The application does not have an ability, or does not have an ability for which **entities** is set to **entity.system.home** and **actions** is set to **action.system.home**. 1165 1166**Solution** 1167 1168Configure an ability with **entities** set to **entity.system.home** and **actions** set to **action.system.home** for the application. 1169 1170## 17700073 Installation Failure Caused by an Application with the Same Bundle Name but Different Signature Information 1171 1172**Error Message** 1173 1174Failed to install the HAP because an application with the same bundle name but different signature information exists on the device. 1175 1176**Description** 1177 1178The installation fails because an application with the same bundle name but different signature information exists on the device. 1179 1180**Possible Causes** 11811. An application with the same bundle name but different signature information exists on the device. 11822. An application with the same bundle name but different signature information has been uninstalled with data retained. 1183 1184**Solution** 11851. Uninstall the application with the same bundle name. 11862. Install the application that has been uninstalled with data retained, and then uninstall the application without data retained. 1187 1188## 17700074 Invalid appIdentifier 1189 1190**Error Message** 1191 1192The specified appIdentifier is invalid. 1193 1194**Description** 1195 1196When an API of the appControl module is called, the appIdentifier passed in is invalid. 1197 1198**Possible Causes** 1199 1200**appIdentifier** is an empty string. 1201 1202**Solution** 1203 1204Check whether **appIdentifier** is an empty string. 1205 1206## 17700075 Bundle Name Specified in want Is Inconsistent with That of the Caller 1207 1208**Error Message** 1209 1210The specified bundleName of want is not the same with caller. 1211 1212**Description** 1213 1214When setting an uninstallation disposed rule, the bundle name specified in **want** is different from that of the caller. 1215 1216**Possible Causes** 1217 1218When setting an uninstallation disposed rule, the bundle name specified in **want** is different from that of the caller. 1219 1220**Solution** 1221 1222Change the value of **bundleName** in **want** to be the same as that of the caller. 1223 1224## 17700076 Failed to Install the HAP or HSP Because the Distribution Type in the Signature File Restricts Installation 1225**Error Message** 1226 1227Failed to install the HAP or HSP because the app distribution type is not allowed. 1228 1229**Description** 1230 1231The distribution type in the signature file restricts installation, leading to a failure in installing the HAP or HSP. 1232 1233**Possible Causes** 1234 1235The distribution type specified in the signature file restricts installation on the current device. 1236 1237**Solution** 1238 1239Change the distribution type of the signature file. 1240 1241<!--Del--> 1242## 17700077 Application Installation Fails but Preinstallation Is Successful 1243 1244**Error Message** 1245 1246Failed to install the HAP and restore to preinstalled bundle. 1247 1248**Description** 1249 1250If the preinstalled application corresponding to the specified application has been uninstalled, the system first attempts to reinstall the preinstalled application. If the preinstalled application is successfully reinstalled but the specified application fails to install afterward, this error code is reported. 1251 1252**Possible Causes** 1253 1254The version number of the application to be installed is earlier than or the same as the version number of the preinstalled application. 1255 1256**Solution** 12571. Ensure that the version number of the specified application is later than that of the preinstalled application. 12582. Reinstall the specified application. 1259<!--DelEnd--> 1260 1261<!--Del--> 1262## 17700080 Invalid Source Paths 1263 1264**Error Message** 1265 1266The source paths are invalid. 1267 1268**Description** 1269 1270The source paths are invalid. 1271 1272**Possible Causes** 12731. The source path array is empty. 12742. A source path includes the special sequence **../**. 12753. None of the paths can be resolved to the intended location. 1276 1277**Solution** 1278 1279Pass in a valid path that does not include the special sequence **../**. 1280 1281## 17700081 Invalid Destination Path 1282 1283**Error Message** 1284 1285The destination path is invalid. 1286 1287**Description** 1288 1289The destination path is invalid. 1290 1291**Possible Causes** 12921. The destination path is empty. 12932. The destination path includes the special sequence **../**. 12943. The destination path cannot be resolved to the intended location. 1295 1296**Solution** 1297 1298Pass in a valid path that does not include the special sequence **../**. 1299 1300## 17700082 User Authentication Failed 1301 1302**Error Message** 1303 1304User authentication failed. 1305 1306**Description** 1307 1308User authentication fails. 1309 1310**Possible Causes** 13111. The current system does not support user authentication. 13122. The current user has not enabled user authentication. 13133. User authentication information is incorrect or the user cancels authentication. 1314 1315**Solution** 13161. Check whether the current system supports user authentication. If not, the API cannot be used. 13172. Ensure that user authentication is enabled for the current user. 13183. Have the user re-enter accurate authentication details to ensure successful authentication. 1319 1320## 17700083 User Authentication Times Out 1321 1322**Error Message** 1323 1324Waiting for user authentication timeout. 1325 1326**Description** 1327 1328Waiting for user authentication times out. 1329 1330**Possible Causes** 1331 1332The user authentication process exceeds the 5-minute waiting period. 1333 1334**Solution** 1335 1336Ensure that the user completes the authentication process within the allowed time. 1337 1338## 17700084 No Read Permissions for Source Paths 1339 1340**Error Message** 1341 1342There are inaccessible path in the source paths. 1343 1344**Description** 1345 1346Some paths in the source path array lack read permissions. 1347 1348**Possible Causes** 1349 1350Read permissions are not enabled for some source paths. 1351 1352**Solution** 1353 1354Provide a valid path with read permissions enabled. 1355 1356## 17700085 No Write Permissions for the Destination Path 1357 1358**Error Message** 1359 1360The destination path cannot be accessed. 1361 1362**Description** 1363 1364The destination path cannot be accessed. 1365 1366**Possible Causes** 1367 1368Write permissions are not enabled for the destination path. 1369 1370**Solution** 1371 1372Provide a valid path with write permissions enabled. 1373 1374## 17700086 System Error 1375 1376**Error Message** 1377 1378System error occurred during copy execution. 1379 1380**Description** 1381 1382A system error occurred during the copy operation. 1383 1384**Possible Causes** 1385 1386Errors related to file operations occurs, such as insufficient space at the destination or the removal of files from the source path. 1387 1388**Solution** 13891. Ensure that the destination path has sufficient space. 13902. Ensure the files in the source path are still present. 1391<!--DelEnd--> 1392 1393## 17700101 Bundle Manager Service Abnormal 1394**Error Message** 1395 1396Bundle manager service is excepted. 1397 1398**Description** 1399 1400The Bundle Manager service is abnormal. 1401 1402**Possible Causes** 1403 1404An unknown system exception occurs. 1405 1406**Solution** 14071. Restart the phone and try again. 1408 14092. 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. 1410``` 1411hdc shell 1412cd /data/log/faultlog/faultlogger/ 1413ls -ls 1414``` 14153. Export the crash file and log file and submit them to [online tickets](https://developer.huawei.com/consumer/en/support/feedback/#/) for help. 1416``` 1417hdc file recv /data/log/faultlog/faultlogger/ 1418hdc file recv /data/log/hilog/ 1419``` 1420 1421## 17700201 .abc File Verification Failure 1422 1423**Error Message** 1424 1425Failed to verify the abc file. 1426 1427**Description** 1428 1429Failed to verify the .abc file. 1430 1431**Possible Causes** 1432 1433The .abc file is untrusted. 1434 1435**Solution** 1436 1437Pass in the path of a trusted .abc file. 1438 1439## 17700202 .abc File Deletion Failure 1440 1441**Error Message** 1442 1443Failed to delete the abc file. 1444 1445**Description** 1446 1447Failed to delete the .abc file. 1448 1449**Possible Causes** 1450 1451The .abc file does not exist. 1452 1453**Solution** 1454 1455Pass in a valid path of the .abc file. 1456 1457## 17700301 Failed to Add Extended Resources 1458**Error Message** 1459 1460Failed to add extended resources. 1461 1462**Description** 1463 1464Failed to add the extended resources. 1465 1466**Possible Causes** 1467 1468The .hsp file does not exist or is untrusted. 1469 1470**Solution** 1471 1472Pass in a correct and trusted .hsp file path. 1473 1474## 17700302 Failed to Delete Extended Resources 1475**Error Message** 1476 1477Failed to remove extended resources. 1478 1479**Description** 1480 1481Failed to delete the extended resources. 1482 1483**Possible Causes** 1484 1485The HSP corresponding to the module name does not exist. 1486 1487**Solution** 1488 1489Pass in a valid module name. 1490 1491## 17700303 Failed to Obtain Extended Resources 1492**Error Message** 1493 1494Failed to obtain extended resources. 1495 1496**Description** 1497 1498Failed to obtain the extended resources. 1499 1500**Possible Causes** 1501 1502The HSP corresponding to the bundle name does not exist. 1503 1504**Solution** 1505 1506Pass in a valid bundle name. 1507 1508## 17700304 Failed to Enable the Dynamic Icon 1509**Error Message** 1510 1511Failed to enable the dynamic icon. 1512 1513**Description** 1514 1515Failed to enable the dynamic icon. 1516 1517**Possible Causes** 1518 1519The HSP does not contain the correct icon resource. 1520 1521**Solution** 1522 1523Before enabling the dynamic icon, ensure that the HSP corresponding to the module name is valid and contains the icon resource. 1524 1525## 17700305 Failed to Disable the Dynamic Icon 1526**Error Message** 1527 1528Failed to disable the dynamic icon. 1529 1530**Description** 1531 1532Failed to disable the dynamic icon. 1533 1534**Possible Causes** 1535 1536The HSP does not contain the correct icon resource. 1537 1538**Solution** 1539 1540Before disabling the dynamic icon, ensure that the HSP corresponding to the bundle name contains the icon resource. 1541 1542## 17700306 Failed to Obtain the Dynamic Icon 1543**Error Message** 1544 1545Failed to obtain the dynamic icon. 1546 1547**Description** 1548 1549Failed to obtain the dynamic icon. 1550 1551**Possible Causes** 1552 1553The HSP does not contain the correct icon resource. 1554 1555**Solution** 1556 1557Before querying the dynamic icon, ensure that the HSP corresponding to the bundle name contains the icon resource. 1558