1# Ability 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## 16000001 Ability Name Does Not Exist 8 9**Error Message** 10 11The specified ability does not exist. 12 13**Description** 14 15This error code is reported when the specified ability name does not exist. 16 17**Possible Causes** 18 19The ability to query does not exist. 20 21**Solution** 22 231. Pass in correct values of **bundleName**, **moduleName**, and **abilityName** in **want**. 242. Check whether the application corresponding to **bundleName** in **want** is installed. You can run the following command to query the list of installed applications. If **bundleName** is not in the query result, the application is not installed. 25 ``` 26 hdc shell bm dump -a 27 ``` 283. For a multi-HAP application, check whether the HAP to which the ability belongs is installed. You can run the following command to query the bundle information. If the installed application does not contain the corresponding HAP and ability, the HAP to which the ability belongs is not installed. 29 ``` 30 hdc shell bm dump -n bundleName 31 ``` 32 33## 16000002 Incorrect Ability Type 34 35**Error Message** 36 37Incorrect ability type. 38 39**Description** 40 41This error code is reported when the ability type invoked by the API is incorrect. 42 43**Possible Causes** 44 45The ability with the specified type does not support the API call. 46 47**Solution** 48 491. Pass in correct values of **bundleName**, **moduleName**, and **abilityName** in **want**. 502. Call APIs based on the ability type. For example, call <!--Del-->[startServiceExtensionAbility](js-apis-inner-application-uiAbilityContext-sys.md#uiabilitycontextstartserviceextensionability) to start the ServiceExtensionAbility, or call <!--DelEnd-->[connectServiceExtensionAbility()](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextconnectserviceextensionability) to connect to the ServiceExtensionAbility. 51 52## 16000003 ID Not Exist 53 54**Error Message** 55 56The specified ID does not exist. 57 58**Description** 59 60This error code is reported when the specified ID does not exist. 61 62**Possible Causes** 63 64The target with the specified ID does not exist. 65 66**Solution** 67 68Use the correct ID. 69 70## 16000004 Visibility Verification Failure 71 72**Error Message** 73 74Failed to start the invisible ability. 75 76**Description** 77 78This error code is reported when the application fails visibility verification. 79 80**Possible Causes** 81 82Visibility verification fails. 83 84**Solution** 85 861. Check whether [exported](../../quick-start/module-configuration-file.md#abilities) under the **Ability** field in the **module.json5** file of the ability is set to **true**. If this parameter is set to **true**, the ability can be started by other applications. If this parameter is set to **false**, the ability cannot be started by other applications. 872. To start the ability for which **exported** is set to **false**, the caller must request the ohos.permission.START_INVISIBLE_ABILITY permission, which is available only for system applications. 88 89## 16000005 Process Permission Verification Failure 90 91**Error Message** 92 93The specified process does not have the permission. 94 95**Description** 96 97This error code is reported when the specified process fails permission verification. 98 99**Possible Causes** 100 101Permission verification for the specified process fails. 102 103**Solution** 104 105Check whether the permission of the specified process is correct. 106 107## 16000006 Cross-User Operation Is Not Allowed 108 109**Error Message** 110 111Cross-user operations are not allowed. 112 113**Description** 114 115This error code is reported when an application tries to perform a cross-user operation. 116 117**Possible Causes** 118 119The application initiates a cross-user operation. 120 121**Solution** 122 123Do not perform a cross-user operation. 124 125## 16000007 Service Busy 126 127**Error Message** 128 129Service busy. There are concurrent tasks. Try again later. 130 131**Description** 132 133This error code is reported when the service requested is busy. 134 135**Possible Causes** 136 137The service is busy. 138 139**Solution** 140 141Try again later. 142 143## 16000008 Crowdtesting Application Expires 144 145**Error Message** 146 147The crowdtesting application expires. 148 149**Description** 150 151This error code is reported when users try to open a crowdtesting application that has expired. 152 153**Possible Causes** 154 155The crowdtesting application has expired. 156 157**Solution** 158 159Expired crowdtesting applications cannot be started. 160 161## 16000009 Ability Start or Stop Failure in Wukong Mode 162 163**Error Message** 164 165An ability cannot be started or stopped in Wukong mode. 166 167**Description** 168 169This error code is returned when the application tries to start or stop an ability in Wukong mode. 170 171**Possible Causes** 172 173An ability cannot be started or stopped in Wukong mode. 174 175**Solution** 176 177Exit Wukong mode, and then start or stop the ability. 178 179## 16000010 Continuation Flag Forbidden 180 181**Error Message** 182 183The call with the continuation flag is forbidden. 184 185**Description** 186 187This error code is reported when the API call carries the continuation flag. 188 189**Possible Causes** 190 191The continuation flag is not allowed for the API call. 192 193**Solution** 194 195Remove the continuation flag. 196 197## 16000011 Context Does Not Exist 198 199**Error Message** 200 201The context does not exist. 202 203**Description** 204 205This error code is reported when the specified context does not exist. 206 207**Possible Causes** 208 209The context passed in the API does not exist. 210 211**Solution** 212 213Use the correct context. 214 215## 16000012 Application Under Control 216 217**Error Message** 218 219The application is controlled. 220 221**Description** 222 223This error code is reported when an application is controlled by the application market. 224 225**Possible Causes** 226 227The application is suspected to have malicious behavior and is not allowed to start due to application market control. 228 229**Solution** 230 231It is recommended that end users uninstall the application. 232 233## 16000013 Application Controlled by EDM 234 235**Error Message** 236 237The application is controlled by EDM. 238 239**Description** 240 241This error code is reported when an application is controlled by [Enterprise Device Manager (EDM)](../../mdm/mdm-kit-admin.md). 242 243**Possible Causes** 244 245The application is controlled by EDM. 246 247**Solution** 248 249Contact the enterprise device management personnel. 250 251## 16000015 Service Timeout 252 253**Error Message** 254 255Service timeout. 256 257**Description** 258 259This error code is reported when the service requested times out. 260 261**Possible Causes** 262 263The service times out. 264 265**Solution** 266 267Try again later. 268 269## 16000017 Waiting for the Previous Abilities to Finish Startup 270 271**Error Message** 272 273Another ability is being started. Wait until it finishes starting. 274 275**Description** 276 277Too many abilities need to be started. Due to the limited processing capability of the system, the requests are cached in the queue and processed in sequence. 278 279**Possible Causes** 280 281The system has a large number of concurrent requests. 282 283**Solution** 284 285No action is required. Wait for the previous abilities to finish startup. 286 287## 16000018 Restricting Redirection to Third-Party Applications of API Version 11 or Later 288 289**Error Message** 290 291Redirection to a third-party application is not allowed in API version 11 or later. 292 293**Description** 294 295When the API version of an application is later than 11, the application cannot be explicitly redirected to a third-party application. 296 297**Solution** 298 299Use implicit startup or [openLink](js-apis-inner-application-uiAbilityContext.md#uiabilitycontextopenlink12) for redirection. 300 301## 16000019 No Matching Application Is Found During Implicit Startup 302 303**Error Message** 304 305No matching ability is found. 306 307**Description** 308 309A matching ability is not found during implicit startup. 310 311**Possible Causes** 312 3131. The parameter settings for implicit startup are incorrect. 3142. The specified HAP is not installed. 315 316**Solution** 317 3181. Correct the parameter settings for implicit startup. 3192. Install the specified HAP. 320 321## 16000050 Internal Error 322 323**Error Message** 324 325Internal error. 326 327**Description** 328 329This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing. 330 331**Possible Causes** 332 333Common kernel errors such as memory application and multi-thread processing errors occur. The possible causes are as follows: empty internal object, processing timeout, failure in obtaining application information, failing in obtaining the system service, and too many started ability instances. 334 335**Solution** 336 3371. Ensure sufficient system memory. Ensure that the system version used by the device is normal. 3382. Limit the number of ability processes started. 3393. Restart the device. 340 341## 16000051 Network Error 342 343**Error Message** 344 345Network error. 346 347**Description** 348 349This error code is reported when the network is abnormal. 350 351**Possible Causes** 352 353The network is unavailable. 354 355**Solution** 356 357Try again later or reconnect to the network. 358 359## 16000052 Installation-Free Is Not Supported 360 361**Error Message** 362 363Installation-free is not supported. 364 365**Description** 366 367This error code is reported when the application does not support installation-free. 368 369**Possible Causes** 370 371The application package does not meet the installation-free requirements. For example, the package is too large. 372 373**Solution** 374 375Check whether the application supports installation-free. 376 377## 16000053 Ability Is Not on Top 378 379**Error Message** 380 381The ability is not on the top of the UI. 382 383**Description** 384 385This error code is reported when the ability is not displayed on the top of the UI. 386 387**Possible Causes** 388 389During the installation-free startup process, the ability is not displayed on the top of the UI. 390 391**Solution** 392 393Ensure that the ability is displayed on the top of the UI. 394 395## 16000054 Installation-Free Busy 396 397**Error Message** 398 399The installation-free service is busy. Try again later. 400 401**Description** 402 403This error code is reported when the installation-free service is busy. 404 405**Possible Causes** 406 407A download and installation task is being executed for the atomic service. 408 409**Solution** 410 411Try again later. 412 413## 16000055 Installation-Free Timeout 414 415**Error Message** 416 417Installation-free timed out. 418 419**Description** 420 421This error code is reported when the installation-free task times out. 422 423**Possible Causes** 424 425Installation-free times out. 426 427**Solution** 428 429Try again later. 430 431## 16000056 Installation-Free Is Not Allowed for Other Applications 432 433**Error Message** 434 435Installation-free is not allowed for other applications. 436 437**Description** 438 439This error code is reported when users try to apply installation-free for other applications. 440 441**Possible Causes** 442 443Installation-free is allowed only for the current application. 444 445**Solution** 446 447Apply installation-free only for the current application. 448 449## 16000057 Cross-Device Installation-Free Is Not Supported 450 451**Error Message** 452 453Cross-device installation-free is not supported. 454 455**Description** 456 457This error code is reported when users try to apply installation-free across devices. 458 459**Possible Causes** 460 461Cross-device installation-free is not supported. 462 463**Solution** 464 465Use installation-free on the same device. 466 467## 16000058 Specified URI Flag Is Invalid 468 469**Error Message** 470 471Invalid URI flag. 472 473**Description** 474 475This error code is reported when the specified URI flag is invalid. 476 477**Possible Causes** 478 479An incorrect parameter is passed in. 480 481**Solution** 482 483Pass in a valid URI flag. 484 485## 16000059 Specified URI Type Is Invalid 486 487**Error Message** 488 489Invalid URI type. 490 491**Description** 492 493This error code is reported when the specified URI type is invalid. 494 495**Possible Causes** 496 497An incorrect parameter is passed in. Currently, URI authorization management supports only URIs of the file type. 498 499**Solution** 500 501Ensure that the input parameter is of the supported URI type. 502 503## 16000060 Sandbox Applications Cannot Authorize URIs 504 505**Error Message** 506 507A sandbox application cannot grant URI permission. 508 509**Description** 510 511This error code is reported when a sandbox application authorizes a URI. 512 513**Possible Causes** 514 515Sandbox applications cannot authorize URIs. 516 517**Solution** 518 519Use a non-sandbox application. 520 521## 16000061 Unsupported Operation 522 523**Error Message** 524 525Operation not supported. 526 527**Description** 528 529This error code is reported when an operation is not supported. 530 531**Possible Causes** 532 533The operation is not supported. 534 535**Solution** 536 537Perform a supported operation. 538 539## 16000062 Too Many Child Processes 540 541**Error Message** 542 543The number of child processes exceeds the upper limit. 544 545**Description** 546 547This error code is reported when the number of created child processes reaches the upper limit. 548 549**Possible Causes** 550 551The number of created child processes has reached the upper limit. 552 553**Solution** 554 555Limit the number of created child processes. The maximum number is 512. 556 557## 16000063 Invalid Ability During Application Restart 558 559**Error Message** 560 561The target to restart does not belong to the current application or is not a UIAbility. 562 563**Description** 564 565This error code is reported when the specified ability name or type is invalid during application restart. 566 567**Possible Causes** 568 569The specified ability name or type is invalid. 570 571**Solution** 572 573Ensure that the specified ability name exists in the current application and the ability type is UIAbility. 574 575## 16000064 Frequent Application Restart 576 577**Error Message** 578 579Restart too frequently. Try again at least 3s later. 580 581**Description** 582 583An API is called to restart the application and start a specified ability. This error code is reported when the API is called again within 3 seconds. 584 585**Possible Causes** 586 587The API is frequently called. 588 589**Solution** 590 591Call the API again after 3 seconds. 592 593## 16000065 API Can Be Called for a Foreground Ability 594 595**Error Message** 596 597The API can be called only when the ability is running in the foreground. 598 599**Description** 600 601This error code is reported when the API is called while the ability is not running in the foreground. 602 603**Possible Causes** 604 605The ability is not in the foreground when the API is called. 606 607**Solution** 608 609Switch the ability to the foreground before calling the API. 610 611## 16000066 Ability Cannot Be Switched to the Foreground or Background in Wukong Mode 612 613**Error Message** 614 615An ability cannot switch to the foreground or background in Wukong mode. 616 617**Description** 618 619This error code is reported when the API used to switch the ability to the foreground or background is called in Wukong mode. 620 621**Possible Causes** 622 623In Wukong mode, the ability cannot be switched to the foreground or background. 624 625**Solution** 626 627Exit wukong mode, and then call the API to switch the ability to the foreground or background. 628 629## 16000067 Ability Startup Parameter Verification Failure 630 631**Error Message** 632 633The StartOptions check failed. 634 635**Description** 636 637This error code is reported when verification on **StartOptions** fails. 638 639**Possible Causes** 640 6411. **startAbility()**, with **processMode** set to **NEW_PROCESS_ATTACH_TO_STATUS_BAR_ITEM** or **ATTACH_TO_STATUS_BAR_ITEM**, is called, but the application icon is not displayed in the status bar. 6422. **showAbility()** or **hideAbility()** is called, but the caller is not started in **NEW_PROCESS_ATTACH_TO_STATUS_BAR_ITEM** or **ATTACH_TO_STATUS_BAR_ITEM** mode. 643 644**Solution** 645 646Check whether the constraints for **StartOptions** are met. 647 648## 16000068 Ability Is Already Running 649 650**Error Message** 651 652The ability is already running. 653 654**Description** 655 656This error code is reported when the target ability is already running. 657 658**Possible Causes** 659 660**startAbility()** is called, with **processMode** and **startupVisibility** specified. **launchType** of the target ability is singleton or specified, and the target ability is running. 661 662**Solution** 663 664When **launchType** of the target ability is singleton or specified, do not specify **processMode** and **startupVisibility** in **startAbility()**. 665 666## 16000069 ExtensionAbility Fails to Start a Third-Party Application in Strict Mode 667 668**Error Message** 669 670The extension cannot start the third party application. 671 672**Description** 673 674This type of ExtensionAbility cannot start a third-party application in strict mode. 675 676**Possible Causes** 677 678The ExtensionAbility is in strict mode, and this type of ExtensionAbility is forbidden to start third-party applications in strict mode. 679 680**Solution** 681 6821. Check the conditions for enabling the strict mode of this [type of ExtensionAbility](../../application-models/extensionability-overview.md). 6832. Start the ExtensionAbility in non-strict mode. 684 685## 16000070 ExtensionAbility Fails to Start a ServiceExtensionAbility in Strict Mode 686 687**Error Message** 688 689The extension cannot start the service. 690 691**Description** 692 693This type of ExtensionAbility cannot start a ServiceExtensionAbility in strict mode. 694 695**Possible Causes** 696 697The ExtensionAbility is in strict mode, and this type of ExtensionAbility is forbidden to start a ServiceExtensionAbility in strict mode. 698 699**Solution** 700 7011. Check the conditions for enabling the strict mode of this [type of ExtensionAbility](../../application-models/extensionability-overview.md). 7022. Start the ExtensionAbility in non-strict mode. 703 704## 16000071 Application Clone Is Not Supported 705 706**Error Message** 707 708App clone is not supported. 709 710**Description** 711 712This error code is reported when the application does not support clones. 713 714**Possible Causes** 715 716This error code is reported when the [getCurrentAppCloneIndex](./js-apis-inner-application-applicationContext.md#applicationcontextgetcurrentappcloneindex12) API is called while the [multiAppMode](../../quick-start/app-configuration-file.md#multiappmode) field in the **app.json5** file is not set to **appClone** (meaning that the application does not support app clone mode). 717 718**Solution** 719 720Configure the **multiAppMode** field in the **app.json5** file by referring to [Creating an Application Multi-Instance](../../quick-start/multiInstance.md). After app clone mode is enabled, call the [getCurrentAppCloneIndex](./js-apis-inner-application-applicationContext.md#applicationcontextgetcurrentappcloneindex12) API. 721 722<!--Del--> 723## 16000072 Multi-app Mode Is Not Supported 724 725**Error Message** 726 727App clone or multi-instance is not supported. 728 729**Description** 730 731This error code is reported when the application does not support the multi-app mode. 732 733**Possible Causes** 734 735The **getRunningMultiAppInfo()** API is called to query the information about an application that does not support the multi-app mode. 736 737**Solution** 738 739When calling **getCurrentAppCloneIndex()**, ensure that the application supports the multi-app mode. 740<!--DelEnd--> 741 742## 16000073 appCloneIndex Is Invalid 743 744**Error Message** 745 746The app clone index is invalid. 747 748**Description** 749 750This error code is reported when an invalid value of **appCloneIndex** is passed in. 751 752**Possible Causes** 753 7541. **startAbility()** is called, with **appCloneIndex** carried in **ohos.extra.param.key.appCloneIndex** set to an invalid value. 755<!--Del--> 7562. **isAppRunning()** is called, with **appCloneIndex** set to an invalid value. 757<!--DelEnd--> 758 759**Solution** 760 761Check whether the constraints of **appCloneIndex** are met. 762 763## 16000074 Caller Corresponding to requestCode Does Not Exist When the Result Is Returned 764 765**Error Message** 766 767The caller does not exist. 768 769**Description** 770 771This error code is reported when the **backTocallerAbilityResult** API attempts to return the result to the caller but fails to find the caller based on **requestCode**. 772 773**Possible Causes** 774 7751. **requestCode** is not obtained from the **CALLER_REQUEST_CODE** field in **want**. 776 7772. The caller corresponding to **requestCode** has been destroyed or the result has been returned. 778 779**Solution** 780 7811. Check whether **requestCode** is obtained from **CALLER_REQUEST_CODE** in **want**. 782 7832. Check whether the caller has been destroyed or the result has been returned. 784 785## 16000075 Caller Cannot Be Started When the Result Is Returned 786 787**Error Message** 788 789Not support back to caller. 790 791**Description** 792 793This error code is reported when the **backToCallerAbilityWithResult** API fails to return the result to the caller. 794 795**Possible Causes** 796 797The link feature is not configured for the application or the configuration is not approved by the system. 798 799**Solution** 800 8011. Ensure that the **linkFeature** field is configured in the **module.json5** file of the application. 8022. Ensure that the **linkFeature** field value of the application is correct, the functionality it describes matches the actual capability of the application link, and the configuration has been approved by the system. 803 804## 16000076 APP_INSTANCE_KEY Does Not Exist 805 806**Error Message** 807 808The APP_INSTANCE_KEY is invalid. 809 810**Description** 811 812This error code is reported when the specified [APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) does not exist. 813 814**Possible Causes** 815 816The instance specified by [APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) does not exist. 817 818**Solution** 819 820Ensure that the value of [APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) is valid. 821 822## 16000077 Number of Application Instances Reaches the Upper Limit 823 824**Error Message** 825 826The number of app instances reaches the limit. 827 828**Description** 829 830This error code is reported when the number of application instances reaches the upper limit and more application instances try to be created. 831 832**Possible Causes** 833 834Before creating an application instance, the application does not check whether the number of application instances reaches the upper limit. 835 836**Solution** 837 838You can create application instances only after adjusting the upper limit of application instances or deleting existing application instances. 839 840## 16000078 Application Multi-Instance Not Supported 841 842**Error Message** 843 844The multi-instance is not supported. 845 846**Description** 847 848This error code is reported when the application does not support the multi-instance mode. 849 850**Possible Causes** 851 8521. The multi-instance mode is not configured for the application. 8532. The current device type does not support the multi-instance mode. 854 855**Solution** 856 8571. Configure the multi-instance mode for the application. 8582. Call the API to create multiple instances on a 2-in-1 device. 859 860## 16000079 APP_INSTANCE_KEY Cannot Be Specified 861 862**Error Message** 863 864The APP_INSTANCE_KEY cannot be specified. 865 866**Description** 867 868[APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) and [CREATE_APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) cannot be specified at the same time. This error code is reported when both of them are specified. 869 870**Possible Causes** 871 872Too many parameters are passed. 873 874**Solution** 875 876Specify either [APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) or [CREATE_APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params). 877 878## 16000080 New Instances Cannot Be Created 879 880**Error Message** 881 882Creating an instance is not supported. 883 884**Description** 885 886Applications can use [CREATE_APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) to create their own instances, but not for other applications. Otherwise, this error code is reported. 887 888**Possible Causes** 889 890The parameter use scenario is incorrect. 891 892**Solution** 893 894Delete the [CREATE_APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) parameter. 895 896## 16000081 Failed to Obtain the Target Application Information 897 898**Error Message** 899 900Get target application info failed. 901 902**Description** 903 904When <!--Del-->[<!--DelEnd-->an API related to URI authorization<!--Del-->](js-apis-uripermissionmanager-sys.md)<!--DelEnd--> is called, the information about the target application cannot be obtained based on the bundle name and clone index. 905 906**Possible Causes** 907 9081. The target application is not installed. 9092. The clone index is out of range. 9103. The target application does not have a clone of the specified index. 911 912**Solution** 913 9141. Check whether the application has been installed. 9152. Check whether the index is within the allowed range. 9163. Check whether the target application has created a clone of the specified index. 917 918## 16000082 UIAbility Startup Failure in Singleton Mode 919 920**Error Message** 921 922The UIAbility is being started. 923 924**Description** 925 926If the UIAbility's launch type is set to **singleton**, the API used to start the UIAbility cannot be called again before the previous call is complete. Otherwise, this error code is returned. 927 928**Possible Causes** 929 930The UIAbility is in singleton mode and is being started. 931 932**Solution** 933 934Ensure that the UIAbility finishes starting before executing a new startup task. 935 936## 16000100 Failed to Call AbilityMonitor APIs to Listen for Ability Lifecycle Changes 937 938**Error Message** 939 940 - Calling AddAbilityMonitor failed. 941 942 - Calling AddAbilityMonitorSync failed. 943 944 - Calling RemoveAbilityMonitor failed. 945 946 - Calling RemoveAbilityMonitorSync failed. 947 948 - Calling WaitAbilityMonitor failed. 949 950 - Calling GetCurrentTopAbility failed. 951 952 - Calling DoAbilityForeground failed. 953 954 - Calling DoAbilityBackground failed. 955 956 - Calling FinishTest failed. 957 958 - Calling AddAbilityStageMonitor failed. 959 960 - Calling AddAbilityStageMonitorSync failed. 961 962 - Calling RemoveAbilityStageMonitor failed. 963 964 - Calling RemoveAbilityStageMonitorSync failed. 965 966 - Calling WaitAbilityStageMonitor failed. 967 968**Description** 969 970This error code is reported when an AbilityMonitor API for monitoring the lifecycle change of a specified ability fails to be executed. 971 972**Possible Causes** 973 974Creating an **AbilityDelegatorRegistry** instance fails. 975 976**Solution** 977 978Check whether an **AbilityDelegatorRegistry** instance is created. 979 980## 16000101 shell Command Failure 981 982**Error Message** 983 984Failed to run the shell command. 985 986**Description** 987 988This error code is reported when the command is not a valid shell command. 989 990**Possible Causes** 991 992The command is not a valid shell command. 993 994**Solution** 995 996Use a valid shell command. 997 998## 16000151 Invalid wantAgent Object 999 1000**Error Message** 1001 1002Invalid wantAgent object. 1003 1004**Description** 1005 1006This error code is reported when the **wantAgent** object passed in the API is invalid. 1007 1008**Possible Causes** 1009 10101. The **wantAgent** object is invalid. 10112. A third-party application attempts to set the ability of another application. 10123. An internal communication error occurs. 1013 1014**Solution** 1015 10161. Ensure that the **wantAgent** object passed in the API exists. 10172. Check whether the caller is a third-party application. Third-party applications cannot set the abilities of other applications. 1018 1019## 16000152 wantAgent Object Does Not Exist 1020 1021**Error Message** 1022 1023The wantAgent object does not exist. 1024 1025**Description** 1026 1027This error code is reported when the **wantAgent** object passed in the API does not exist. 1028 1029**Possible Causes** 1030 1031The **wantAgent** object does not exist. 1032 1033**Solution** 1034 1035Pass a valid **wantAgent** object in the API. 1036 1037## 16000153 wangAgent Object Canceled 1038 1039**Error Message** 1040 1041The wantAgent object has been canceled. 1042 1043**Description** 1044 1045This error code is reported when the **wangAgent** object passed in the API has been canceled. 1046 1047**Possible Causes** 1048 1049The **wantAgent** object has been canceled. 1050 1051**Solution** 1052 1053Pass a valid **wantAgent** object in the API. 1054 1055## 16100001 Ability of the Specified URI Does Not Exist 1056 1057**Error Message** 1058 1059The ability with the specified URI does not exist. 1060 1061**Description** 1062 1063This error code is reported when the ability with the specified URI does not exist. 1064 1065**Possible Causes** 1066 1067The ability to query does not exist. 1068 1069**Solution** 1070 1071Check the ability with the specified URI. 1072 1073## 16100002 Incorrect Ability Type 1074 1075**Error Message** 1076 1077Incorrect ability type. 1078 1079**Description** 1080 1081This error code is reported when the ability type invoked by the API is incorrect. 1082 1083**Possible Causes** 1084 1085The ability with the specified type does not support the API call. 1086 1087**Solution** 1088 10891. Check whether the ability name corresponding to the bundle name is correct. 10902. Call the supported APIs based on the ability type. 1091 1092## 16200001 Caller Released 1093 1094**Error Message** 1095 1096The caller has been released. 1097 1098**Description** 1099 1100This error code is reported when the caller has been released. 1101 1102**Possible Causes** 1103 1104The caller has been released. 1105 1106**Solution** 1107 11081. Register a valid caller again. 11092. Check whether the ability corresponding to the context is still running when **context.startAbility** is called. This error code is thrown when the ability has been destructed. 11103. If **startAbility()** and **terminateSelf()** are called consecutively, ensure that a success or failure callback for **startAbility()** is received before calling **terminateSelf()**. 1111 1112## 16200002 Invalid Callee 1113 1114**Error Message** 1115 1116The callee does not exist. 1117 1118**Description** 1119 1120This error code is reported when the callee is invalid. 1121 1122**Possible Causes** 1123 1124The callee does not exist. 1125 1126**Solution** 1127 1128Use a valid callee. 1129 1130## 16200003 Release Failure 1131 1132**Error Message** 1133 1134Release error. The caller does not call any callee. 1135 1136**Description** 1137 1138This error code is reported when the release fails. 1139 1140**Possible Causes** 1141 1142The caller is not registered with a callee. 1143 1144**Solution** 1145 1146Check whether the caller has registered. 1147 1148## 16200004 Method Registered 1149 1150**Error Message** 1151 1152The method has been registered. 1153 1154**Description** 1155 1156This error code is reported when the method has been registered. 1157 1158**Possible Causes** 1159 1160The method has been registered by the callee. 1161 1162**Solution** 1163 1164Check whether the method has been registered. 1165 1166## 16200005 Method Not Registered 1167 1168**Error Message** 1169 1170The method has not been registered. 1171 1172**Description** 1173 1174This error code is reported when the method has not been registered. 1175 1176**Possible Causes** 1177 1178The method has not been registered by the callee. 1179 1180**Solution** 1181 1182Check whether the method has been registered. 1183 1184## 16200006 No Permission to Enable or Disable the Resident Process 1185 1186**Error Message** 1187 1188The caller application can only set the resident status of the configured process. 1189 1190**Description** 1191 1192This error code is reported when the caller does not have the permission to enable or disable the resident process. 1193 1194**Possible Causes** 1195 1196The caller does not have the permission to enable or disable the resident process. 1197 1198**Solution** 1199 1200Ensure that the caller has the required permission before calling this API. 1201 1202## 16300001 Nonexistent Mission 1203 1204**Error Message** 1205 1206Mission not found. 1207 1208**Description** 1209 1210This error code is reported when the specified mission does not exist. 1211 1212**Possible Causes** 1213 1214The mission does not exist. 1215 1216**Solution** 1217 1218Check the mission ID. 1219 1220## 16300002 Nonexistent Mission Listener 1221 1222**Error Message** 1223 1224The specified mission listener does not exist. 1225 1226**Description** 1227 1228This error code is reported when the specified mission listener does not exist. 1229 1230**Possible Causes** 1231 1232The mission listener does not exist. 1233 1234**Solution** 1235 1236Check the mission listener ID. 1237 1238## 16300003 Target Application Is Not the Invoker Application 1239 1240**Error Message** 1241 1242The target application is not the current application. 1243 1244**Description** 1245 1246This error code is reported when the application to start is not the application that calls the API. 1247 1248**Possible Causes** 1249 1250The application to start and the invoker application are not the same application. 1251 1252**Solution** 1253 1254Ensure that the application to start is the invoker application. 1255 1256## 18500001 Invalid Bundle Name 1257 1258**Error Message** 1259 1260The bundle does not exist or no patch has been applied. 1261 1262**Description** 1263 1264This error code is reported when the specified bundle name is invalid. 1265 1266**Possible Causes** 1267 1268The bundle does not exist or is not installed. 1269 1270**Solution** 1271 1272Check whether the bundle has been installed. 1273 1274## 18500002 Invalid Patch Package 1275 1276**Error Message** 1277 1278Invalid patch package. 1279 1280**Description** 1281 1282This error code is returned when the specified patch package is invalid. 1283 1284**Possible Causes** 1285 1286The patch package does not exist or is inaccessible. 1287 1288**Solution** 1289 12901. Check whether the path of the patch package is valid. 12912. Check whether the application has the permission to access the patch package. 1292 1293## 18500003 Patch Deployment Failure 1294 1295**Error Message** 1296 1297Failed to deploy the patch. 1298 1299**Description** 1300 1301This error code is reported when the patch package fails to be deployed. 1302 1303**Possible Causes** 1304 13051. The **type** field in the **patch.json** file is set to a value other than **patch** or **hotreload**. 13062. The HAP corresponding to the bundle name is not installed. 13073. The values of **bundleName** and **versionCode** are different from those of the installed HAP. If the **type** field is set to **patch**, the values of **versionName**, **bundleName**, and **versionCode** are different from those of the installed HAP. 13084. If a patch package has been deployed, the **versionCode** of the new patch package is not later than that of the previous patch package. 13095. If the **type** field is set to **patch**, the signature information is different from that of the application. 13106. If the **type** field is set to **patch** and a debug version is to be installed, a **hotreload** patch is in use. 13117. If the **type** field is set to **hotreload** and a debug version is to be installed, a **patch** package is in use. If the **type** field is set to **hotreload**, a release version is to be installed. 1312 1313**Solution** 1314 1315Check whether the patch package complies with the deployment rules. 1316 1317## 18500004 Patch Package Enablement Failure 1318 1319**Error Message** 1320 1321Failed to enable the patch package. 1322 1323**Description** 1324 1325This error code is reported when the patch package fails to be enabled. 1326 1327**Possible Causes** 1328 1329The patch package is in an incorrect state. 1330 1331**Solution** 1332 1333Check the state of the patch package. 1334 1335## 18500005 Patch Package Deletion Failure 1336 1337**Error Message** 1338 1339Failed to remove the patch package. 1340 1341**Description** 1342 1343This error code is reported when the patch package fails to be deleted. 1344 1345**Possible Causes** 1346 1347The patch package is in an incorrect state. 1348 1349**Solution** 1350 1351Check the state of the patch package. 1352 1353## 18500006 Patch Installation Failure 1354 1355**Error Message** 1356 1357Failed to load the patch. 1358 1359**Description** 1360 1361This error code is reported when the patch fails to be installed. 1362 1363**Possible Causes** 1364 1365The Ark engine fails to install the patch. 1366 1367**Solution** 1368 1369Check whether the patch package is correct. 1370 1371## 18500007 Patch Uninstall Failure 1372 1373**Error Message** 1374 1375Failed to unload the patch. 1376 1377**Description** 1378 1379This error code is reported when the Ark engine fails to uninstall the patch. 1380 1381**Possible Causes** 1382 1383The Ark engine fails to uninstall the patch. 1384 1385**Solution** 1386 1387Check whether the patch package is correct. 1388 1389## 18500008 Internal Error 1390 1391**Error Message** 1392 1393Internal error. 1394 1395**Description** 1396 1397This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing. 1398 1399**Possible Causes** 1400 1401Common kernel errors such as memory application and multi-thread processing errors occur. 1402 1403**Solution** 1404 1405Ensure sufficient system memory. 1406 1407## 18500009 Application Has a Quick Fix Task Being Processed 1408 1409**Error Message** 1410 1411The application has an ongoing quick fix task. 1412 1413**Description** 1414 1415This error code is reported when the application has a quick fix task that is under processing. 1416 1417**Possible Causes** 1418 1419When you try to cancel a quick fix task for an application, the application has a quick repair task that is under processing. 1420 1421**Solution** 1422 1423Wait until the quick fix task is complete. 1424 1425## 16300004 Observer Does Not Exist 1426 1427**Error Message** 1428 1429observer not found. 1430 1431**Description** 1432 1433This error code is reported when the specified observer does not exist. 1434 1435**Possible Causes** 1436 1437The observer does not exist or has been unregistered. 1438 1439**Solution** 1440 1441Check whether the observer exists. 1442 1443## 16300005 Bundle Information Does Not Exist 1444 1445**Error Message** 1446 1447The target bundle does not exist. 1448 1449**Description** 1450 1451This error code is reported when the bundle information of the preinstalled application does not exist. 1452 1453**Possible Causes** 1454 1455The value of **bundleName**, **userId**, or **appIndex** is incorrect, leading to the query failure. 1456 1457**Solution** 1458 1459Pass in correct values for **bundleName**, **userId**, and **appIndex**. 1460 1461## 16300008 Specified Package Does Not Have a Main UIAbility 1462 1463**Error Message** 1464 1465The target bundle has no main uiability. 1466 1467**Description** 1468 1469This error code is reported when the application does not have a main UIAbility. 1470 1471**Possible Causes** 1472 1473The ability configured for **mainElement** is not a UIAbility. 1474 1475**Solution** 1476 1477Check whether the ability configured for **mainElement** in the **module.json** file is a UIAbility. 1478 1479## 16300009 Specified Package Does Not Have a Status Bar 1480 1481**Error Message** 1482 1483The target bundle has no status-bar ability. 1484 1485**Description** 1486 1487This error code is reported when the application does not have a status bar. 1488 1489**Possible Causes** 1490 1491The application does not have a status bar. 1492 1493**Solution** 1494 1495Check whether the application has a status bar. 1496 1497## 16300010 Running Application Is Not Attached to a Status Bar 1498 1499**Error Message** 1500 1501The target application is not attached to status bar. 1502 1503**Description** 1504 1505This error code is reported when the application is not attached to a status bar after running. 1506 1507**Possible Causes** 1508 1509The application has a status bar, but it is not attached to the status bar during running. 1510 1511**Solution** 1512 1513Check whether the application is attached to a status bar. 1514 1515## 29600001 Internal Error During Image Editing 1516 1517**Error Message** 1518 1519Internal error. 1520 1521**Description** 1522 1523This error code is reported when an internal error such as memory allocation or multithreaded processing exception occurs during image saving. 1524 1525**Possible Causes** 1526 1527Common kernel errors such as memory application and multi-thread processing errors occur. The possible causes are as follows: The internal object is empty, and the processing times out. 1528 1529**Solution** 1530 15311. Ensure sufficient system memory. Ensure that the system version used by the device is normal. 15322. Restart the device. 1533 1534## 29600002 Internal Error During Image Editing 1535 1536**Error Message** 1537 1538Image input error. 1539 1540**Description** 1541 1542This error code is reported when the image URI does not exist or the image cannot be parsed. 1543 1544**Possible Causes** 1545 1546The URI does not exist or the URI does not point to an image file. 1547 1548**Solution** 1549 1550Check whether the file exists and whether the file type is image. 1551 1552## 29600002 Image Too Large 1553 1554**Error Message** 1555 1556Image too big. 1557 1558**Description** 1559 1560The image is too large. 1561 1562**Possible Causes** 1563 1564This error code is reported when the size of the image exceeds 50 MB. 1565 1566**Solution** 1567 15681. Limit the size of the edited image to less than 50 MB. 15692. Verify the image size in advance. 1570 1571## 16300007 Download and Installation Task Information of the Atomic Service Does Not Exist 1572 1573**Error Message** 1574 1575The target free install task does not exist. 1576 1577**Description** 1578 1579This error code is reported when the download and installation task of the specified atomic service does not exist while the atomic service window is opened. 1580 1581**Possible Causes** 1582 1583The value of **bundleName**, **moduleName**, **abilityName**, or **startTime** is incorrect, leading to the query failure. 1584 1585**Solution** 1586 1587Pass in correct values for **bundleName**, **moduleName**, **abilityName**, and **startTime**. 1588 1589## 28800001 Startup Task or Dependency Not Found 1590 1591**Error Message** 1592 1593Startup task or its dependency not found. 1594 1595**Description** 1596 1597This error code is reported if the startup task or its dependency is not found during task startup. 1598 1599**Possible Causes** 1600 1601The startup task or dependency is not correctly configured. 1602 1603**Solution** 1604 1605Check whether the AppStartup configuration file is correctly compiled, and ensure that all configured startup tasks are implemented. 1606 1607## 28800002 Circular Dependencies Between Startup Tasks 1608 1609**Error Message** 1610 1611The startup tasks have circular dependencies. 1612 1613**Description** 1614 1615This error code is reported if circular dependencies are detected between startup tasks during startup task loading. 1616 1617**Possible Causes** 1618 1619There are circular dependencies between startup tasks. 1620 1621**Solution** 1622 1623Check the AppStartup configuration file, and ensure that no circular dependency exists between startup tasks. 1624 1625## 28800003 Error Occurs During Task Startup 1626 1627**Error Message** 1628 1629An error occurred while running the startup tasks. 1630 1631**Description** 1632 1633This error code is reported when an error occurs during task startup. 1634 1635**Possible Causes** 1636 1637The code logic for starting the task is incorrect, or no exception handling is available. 1638 1639**Solution** 1640 1641Check whether the startup task has logic errors, and ensure that each startup task contains the exception handling logic. 1642 1643## 28800004 Executing the Startup Task Times Out 1644 1645**Error Message** 1646 1647Running startup tasks timeout. 1648 1649**Description** 1650 1651This error code is reported if the execution time of a task exceeds the timeout interval (10000 ms by default). 1652 1653**Possible Causes** 1654 1655The startup task contains a large number of time-consuming operations, or the configured timeout interval is too short. 1656 1657**Solution** 1658 1659Adjust the timeout interval as required. For details about how to set the timeout interval, see [Setting Startup Parameters](../../application-models/app-startup.md#setting-startup-parameters). 1660