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 invocation. 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 [startServiceExtensionAbility](../apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextstartserviceextensionability) to start the ServiceExtensionAbility, or call [connectServiceExtensionAbility()](../apis/js-apis-inner-application-uiAbilityContext.md#uiabilitycontextconnectserviceextensionability) to connect to the ServiceExtensionAbility. 51 52## 16000003 Nonexistent ID 53 54**Error Message** 55 56Id 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 74Can not start invisible component. 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](../../security/AccessToken/permissions-for-system-apps.md#ohospermissionstart_invisible_ability) permission. 88 89## 16000006 Cross-User Operation Is Not Allowed 90 91**Error Message** 92 93Cross-user operations are not allowed. 94 95**Description** 96 97This error code is reported when an application tries to perform a cross-user operation. 98 99**Possible Causes** 100 101The application initiates a cross-user operation. 102 103**Solution** 104 105Do not perform a cross-user operation. 106 107## 16000007 Service Busy 108 109**Error Message** 110 111Service busy, there are concurrent tasks, waiting for retry. 112 113**Description** 114 115This error code is reported when the service requested is busy. 116 117**Possible Causes** 118 119The service is busy. 120 121**Solution** 122 123Try again later. 124 125## 16000008 Crowdtesting Application Expires 126 127**Error Message** 128 129The crowdtesting application expires. 130 131**Description** 132 133This error code is reported when users try to open a crowdtesting application that has expired. 134 135**Possible Causes** 136 137The crowdtesting application has expired. 138 139**Solution** 140 141Expired crowdtesting applications cannot be started. 142 143## 16000009 Ability Start or Stop Failure in Wukong Mode 144 145**Error Message** 146 147An ability cannot be started or stopped in Wukong mode. 148 149**Description** 150 151This error code is returned when the application tries to start or stop an ability in Wukong mode. 152 153**Possible Causes** 154 155An ability cannot be started or stopped in Wukong mode. 156 157**Solution** 158 159Exit Wukong mode, and then start or stop the ability. An ability cannot be started or stopped in Wukong mode. 160 161## 16000010 Continuation Flag Forbidden 162 163**Error Message** 164 165The call with the continuation flag is forbidden. 166 167**Description** 168 169This error code is reported when the API call carries the continuation flag. 170 171**Possible Causes** 172 173The continuation flag is not allowed for the API call. 174 175**Solution** 176 177Remove the continuation flag. 178 179## 16000011 Nonexistent Context 180 181**Error Message** 182 183The context does not exist. 184 185**Description** 186 187This error code is reported when the specified context does not exist. 188 189**Possible Causes** 190 191The context passed in the API does not exist. 192 193**Solution** 194 195Use the correct context. 196 197## 16000012 Application Under Control 198 199**Error Message** 200 201The application is controlled. 202 203**Description** 204 205This error code is reported when an application is controlled by the application market. 206 207**Possible Causes** 208 209The application is suspected to have malicious behavior and is not allowed to start due to application market control. 210 211**Solution** 212 213It is recommended that end users uninstall the application. 214 215## 16000013 Application Controlled by EDM 216 217**Error Message** 218 219The application is controlled by EDM. 220 221**Description** 222 223This error code is reported when an application is controlled by [Enterprise Device Manager (EDM)](../apis/enterpriseDeviceManagement-overview.md). 224 225**Possible Causes** 226 227The application is controlled by EDM. 228 229**Solution** 230 231Contact the enterprise device management personnel. 232 233## 16000015 Service Timeout 234 235**Error Message** 236 237Service timeout. 238 239**Description** 240 241This error code is reported when the service requested times out. 242 243**Possible Causes** 244 245The service times out. 246 247**Solution** 248 249Try again later. 250 251## 16000017 Waiting for the Previous Abilities to Finish Startup 252 253**Error Message** 254 255The previous ability is starting, wait start later. 256 257**Description** 258 259Too 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. 260 261**Possible Causes** 262 263The system has a large number of concurrent requests. 264 265**Solution** 266 267No action is required. Wait for the previous abilities to finish startup. 268 269## 16000050 Internal Error 270 271**Error Message** 272 273Internal error. 274 275**Description** 276 277This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing. 278 279**Possible Causes** 280 281Common 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. 282 283**Solution** 284 2851. Ensure sufficient system memory. Ensure that the system version used by the device is normal. 2862. Limit the number of ability processes started. 2873. Restart the device. 288 289## 16000051 Network Error 290 291**Error Message** 292 293Network error. 294 295**Description** 296 297This error code is reported when the network is abnormal. 298 299**Possible Causes** 300 301The network is unavailable. 302 303**Solution** 304 305Try again later or reconnect to the network. 306 307## 16000052 Installation-Free Is Not Supported 308 309**Error Message** 310 311Installation-free is not supported. 312 313**Description** 314 315This error code is reported when the application does not support installation-free. 316 317**Possible Causes** 318 319The application package does not meet the installation-free requirements. For example, the package is too large. 320 321**Solution** 322 323Check whether the application supports installation-free. 324 325## 16000053 Ability Is Not on Top 326 327**Error Message** 328 329The ability is not on the top of the UI. 330 331**Description** 332 333This error code is reported when the ability is not displayed on the top of the UI. 334 335**Possible Causes** 336 337During the installation-free startup process, the ability is not displayed on the top of the UI. 338 339**Solution** 340 341Ensure that the ability is displayed on the top of the UI. 342 343## 16000054 Installation-Free Busy 344 345**Error Message** 346 347Installation-free service is busy, please wait and try again later. 348 349**Description** 350 351This error code is reported when the installation-free service is busy. 352 353**Possible Causes** 354 355Another installation-free task is in progress. 356 357**Solution** 358 359Try again later. 360 361## 16000055 Installation-Free Timeout 362 363**Error Message** 364 365Installation-free timed out. 366 367**Description** 368 369This error code is reported when the installation-free task times out. 370 371**Possible Causes** 372 373Installation-free times out. 374 375**Solution** 376 377Try again later. 378 379## 16000056 Installation-Free Is Not Allowed for Other Applications 380 381**Error Message** 382 383Installation-free is not allowed for other applications. 384 385**Description** 386 387This error code is reported when users try to apply installation-free for other applications. 388 389**Possible Causes** 390 391Installation-free is allowed only for the current application. 392 393**Solution** 394 395Apply installation-free only for the current application. 396 397## 16000057 Cross-Device Installation-Free Is Not Supported 398 399**Error Message** 400 401Cross-device installation-free is not supported. 402 403**Description** 404 405This error code is reported when users try to apply installation-free across devices. 406 407**Possible Causes** 408 409Cross-device installation-free is not supported. 410 411**Solution** 412 413Use installation-free on the same device. 414 415## 16000058 Specified URI Flag Is Invalid 416 417**Error Message** 418 419Invalid URI flag. 420 421**Description** 422 423This error code is reported when the specified URI flag is invalid. 424 425**Possible Causes** 426 427An incorrect parameter is passed in. 428 429**Solution** 430 431Pass in a valid URI flag. 432 433## 16000059 Specified URI Type Is Invalid 434 435**Error Message** 436 437Invalid URI type. 438 439**Description** 440 441This error code is reported when the specified URI type is invalid. 442 443**Possible Causes** 444 445An incorrect parameter is passed in. Currently, URI authorization management supports only URIs of the file type. 446 447**Solution** 448 449Ensure that the input parameter is of the supported URI type. 450 451## 16000060 Sandbox Applications Cannot Authorize URIs 452 453**Error Message** 454 455Sandbox application can not grant URI permission. 456 457**Description** 458 459This error code is reported when a sandbox application authorizes a URI. 460 461**Possible Causes** 462 463Sandbox applications cannot authorize URIs. 464 465**Solution** 466 467Use a non-sandbox application. 468 469## 16000061 Unsupport Operation 470 471**Error Message** 472 473Operation not supported. 474 475**Description** 476 477This error code is reported when an operation is not supported. 478 479**Possible Causes** 480 481The operation is not supported. 482 483**Solution** 484 485Perform a supported operation. 486 487## 16000062 Too Many Subprocesses 488 489**Error Message** 490 491The number of child process exceeds upper bound. 492 493**Description** 494 495This error code is reported when the number of created subprocesses reaches the upper limit. 496 497**Possible Causes** 498 499The number of created subprocesses has reached the upper limit. 500 501**Solution** 502 503Limit the number of created subprocesses. The maximum number is 128. 504 505## 16000101 shell Command Failure 506 507**Error Message** 508 509Failed to run the shell command. 510 511**Description** 512 513This error code is reported when the command is not a valid shell command. 514 515**Possible Causes** 516 517The command is not a valid shell command. 518 519**Solution** 520 521Use a valid shell command. 522 523## 16000151 Invalid wantAgent Object 524 525**Error Message** 526 527Invalid wantAgent object. 528 529**Description** 530 531This error code is reported when the **wantAgent** object passed in the API is invalid. 532 533**Possible Causes** 534 535The **wantAgent** object is invalid. 536 537**Solution** 538 539Pass a valid **wantAgent** object in the API. 540 541## 16000152 wantAgent Object Does Not Exist 542 543**Error Message** 544 545the wantAgent object does not exist. 546 547**Description** 548 549This error code is reported when the **wantAgent** object passed in the API does not exist. 550 551**Possible Causes** 552 553The **wantAgent** object does not exist. 554 555**Solution** 556 557Pass a valid **wantAgent** object in the API. 558 559## 16000153 wangAgent Object Canceled 560 561**Error Message** 562 563wangAgent object has been canceled. 564 565**Description** 566 567This error code is reported when the **wangAgent** object passed in the API has been canceled. 568 569**Possible Causes** 570 571The **wantAgent** object has been canceled. 572 573**Solution** 574 575Pass a valid **wantAgent** object in the API. 576 577## 16100001 Ability of the Specified URI Does Not Exist 578 579**Error Message** 580 581The ability with the specified URI does not exist. 582 583**Description** 584 585This error code is reported when the ability with the specified URI does not exist. 586 587**Possible Causes** 588 589The ability to query does not exist. 590 591**Solution** 592 593Check the ability with the specified URI. 594 595## 16100002 Incorrect Ability Type 596 597**Error Message** 598 599Incorrect ability type. 600 601**Description** 602 603This error code is reported when the ability type invoked by the API is incorrect. 604 605**Possible Causes** 606 607The ability with the specified type does not support the API invocation. 608 609**Solution** 610 6111. Check whether the ability name corresponding to the bundle name is correct. 6122. Call the supported APIs based on the ability type. 613 614## 16200001 Caller Released 615 616**Error Message** 617 618The caller has been released. 619 620**Description** 621 622This error code is reported when the caller has been released. 623 624**Possible Causes** 625 626The caller has been released. 627 628**Solution** 629 6301. Register a valid caller again. 6312. 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. 6323. If **startAbility()** and **terminateSelf()** are called consecutively, ensure that a success or failure callback for **startAbility()** is received before calling **terminateSelf()**. 633 634## 16200002 Invalid Callee 635 636**Error Message** 637 638Callee invalid. The callee does not exist. 639 640**Description** 641 642This error code is reported when the callee is invalid. 643 644**Possible Causes** 645 646The callee does not exist. 647 648**Solution** 649 650Use a valid callee. 651 652## 16200003 Release Failure 653 654**Error Message** 655 656Release error. The caller does not call any callee. 657 658**Description** 659 660This error code is reported when the release fails. 661 662**Possible Causes** 663 664The caller is not registered with a callee. 665 666**Solution** 667 668Check whether the caller has registered. 669 670## 16200004 Method Registered 671 672**Error Message** 673 674Method registered. The method has registered. 675 676**Description** 677 678This error code is reported when the method has been registered. 679 680**Possible Causes** 681 682The method has been registered by the callee. 683 684**Solution** 685 686Check whether the method has been registered. 687 688## 16200005 Method Not Registered 689 690**Error Message** 691 692Method not registered. The method has not registered. 693 694**Description** 695 696This error code is reported when the method has not been registered. 697 698**Possible Causes** 699 700The method has not been registered by the callee. 701 702**Solution** 703 704Check whether the method has been registered. 705 706## 16300001 Nonexistent Mission 707 708**Error Message** 709 710Mission not found. 711 712**Description** 713 714This error code is reported when the specified mission does not exist. 715 716**Possible Causes** 717 718The mission does not exist. 719 720**Solution** 721 722Check the mission ID. 723 724## 16300002 Nonexistent Mission Listener 725 726**Error Message** 727 728Input error. The specified mission listener does not exist. 729 730**Description** 731 732This error code is reported when the specified mission listener does not exist. 733 734**Possible Causes** 735 736The mission listener does not exist. 737 738**Solution** 739 740Check the mission listener ID. 741 742## 16300003 Target Application Is Not the Invoker Application 743 744**Error Message** 745 746The target application is not self application. 747 748**Description** 749 750This error code is reported when the application to start is not the application that calls the API. 751 752**Possible Causes** 753 754The application to start and the invoker application are not the same application. 755 756**Solution** 757 758Ensure that the application to start is the invoker application. 759 760## 18500001 Invalid Bundle Name 761 762**Error Message** 763 764The bundle is not exist or no patch has applied. 765 766**Description** 767 768This error code is reported when the specified bundle name is invalid. 769 770**Possible Causes** 771 772The bundle does not exist or is not installed. 773 774**Solution** 775 776Check whether the bundle has been installed. 777 778## 18500002 Invalid Patch Package 779 780**Error Message** 781 782Invalid patch package. 783 784**Description** 785 786This error code is returned when the specified patch package is invalid. 787 788**Possible Causes** 789 790The patch package does not exist or is inaccessible. 791 792**Solution** 793 7941. Check whether the path of the patch package is valid. 7952. Check whether the application has the permission to access the patch package. 796 797## 18500003 Patch Deployment Failure 798 799**Error Message** 800 801Failed to deploy the patch. 802 803**Description** 804 805This error code is reported when the patch package fails to be deployed. 806 807**Possible Causes** 808 8091. The **type** field in the **patch.json** file is set to a value other than **patch** or **hotreload**. 8102. The HAP corresponding to the bundle name is not installed. 8113. 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. 8124. If a patch package has been deployed, the **versionCode** of the new patch package is not later than that of the previous patch package. 8135. If the **type** field is set to **patch**, the signature information is different from that of the application. 8146. If the **type** field is set to **patch** and a debug version is to be installed, a **hotreload** patch is in use. 8157. 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. 816 817**Solution** 818 819Check whether the patch package complies with the deployment rules. 820 821## 18500004 Patch Package Enablement Failure 822 823**Error Message** 824 825Failed to enable the patch package. 826 827**Description** 828 829This error code is reported when the patch package fails to be enabled. 830 831**Possible Causes** 832 833The patch package is in an incorrect state. 834 835**Solution** 836 837Check the state of the patch package. 838 839## 18500005 Patch Package Deletion Failure 840 841**Error Message** 842 843Failed to enable the patch package. 844 845**Description** 846 847This error code is reported when the patch package fails to be deleted. 848 849**Possible Causes** 850 851The patch package is in an incorrect state. 852 853**Solution** 854 855Check the state of the patch package. 856 857## 18500006 Patch Installation Failure 858 859**Error Message** 860 861Failed to load the patch. 862 863**Description** 864 865This error code is reported when the patch fails to be installed. 866 867**Possible Causes** 868 869The Ark engine fails to install the patch. 870 871**Solution** 872 873Check whether the patch package is correct. 874 875## 18500007 Patch Uninstall Failure 876 877**Error Message** 878 879Failed to unload the patch. 880 881**Description** 882 883This error code is reported when the Ark engine fails to uninstall the patch. 884 885**Possible Causes** 886 887The Ark engine fails to uninstall the patch. 888 889**Solution** 890 891Check whether the patch package is correct. 892 893## 18500008 Internal Error 894 895**Error Message** 896 897Internal error. 898 899**Description** 900 901This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing. 902 903**Possible Causes** 904 905Common kernel errors such as memory application and multi-thread processing errors occur. 906 907**Solution** 908 909Ensure sufficient system memory. 910 911## 18500009 Application Has a Quick Fix Task Being Processed 912 913**Error Message** 914 915The application has a apply quick fix task that is being processed. 916 917**Description** 918 919This error code is reported when the application has a quick fix task that is under processing. 920 921**Possible Causes** 922 923When you try to cancel a quick fix task for an application, the application has a quick repair task that is under processing. 924 925**Solution** 926 927Wait until the quick fix task is complete. 928