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 <!--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. An ability cannot be started or stopped in Wukong mode.
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 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**Solution**
312
313Modify the items used for matching in implicit startup.
314
315## 16000050 Internal Error
316
317**Error Message**
318
319Internal error.
320
321**Description**
322
323This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing.
324
325**Possible Causes**
326
327Common 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.
328
329**Solution**
330
3311. Ensure sufficient system memory. Ensure that the system version used by the device is normal.
3322. Limit the number of ability processes started.
3333. Restart the device.
334
335## 16000051 Network Error
336
337**Error Message**
338
339Network error.
340
341**Description**
342
343This error code is reported when the network is abnormal.
344
345**Possible Causes**
346
347The network is unavailable.
348
349**Solution**
350
351Try again later or reconnect to the network.
352
353## 16000052 Installation-Free Is Not Supported
354
355**Error Message**
356
357Installation-free is not supported.
358
359**Description**
360
361This error code is reported when the application does not support installation-free.
362
363**Possible Causes**
364
365The application package does not meet the installation-free requirements. For example, the package is too large.
366
367**Solution**
368
369Check whether the application supports installation-free.
370
371## 16000053 Ability Is Not on Top
372
373**Error Message**
374
375The ability is not on the top of the UI.
376
377**Description**
378
379This error code is reported when the ability is not displayed on the top of the UI.
380
381**Possible Causes**
382
383During the installation-free startup process, the ability is not displayed on the top of the UI.
384
385**Solution**
386
387Ensure that the ability is displayed on the top of the UI.
388
389## 16000054 Installation-Free Busy
390
391**Error Message**
392
393The installation-free service is busy. Try again later.
394
395**Description**
396
397This error code is reported when the installation-free service is busy.
398
399**Possible Causes**
400
401A download and installation task is being executed for the atomic service.
402
403**Solution**
404
405Try again later.
406
407## 16000055 Installation-Free Timeout
408
409**Error Message**
410
411Installation-free timed out.
412
413**Description**
414
415This error code is reported when the installation-free task times out.
416
417**Possible Causes**
418
419Installation-free times out.
420
421**Solution**
422
423Try again later.
424
425## 16000056 Installation-Free Is Not Allowed for Other Applications
426
427**Error Message**
428
429Installation-free is not allowed for other applications.
430
431**Description**
432
433This error code is reported when users try to apply installation-free for other applications.
434
435**Possible Causes**
436
437Installation-free is allowed only for the current application.
438
439**Solution**
440
441Apply installation-free only for the current application.
442
443## 16000057 Cross-Device Installation-Free Is Not Supported
444
445**Error Message**
446
447Cross-device installation-free is not supported.
448
449**Description**
450
451This error code is reported when users try to apply installation-free across devices.
452
453**Possible Causes**
454
455Cross-device installation-free is not supported.
456
457**Solution**
458
459Use installation-free on the same device.
460
461## 16000058 Specified URI Flag Is Invalid
462
463**Error Message**
464
465Invalid URI flag.
466
467**Description**
468
469This error code is reported when the specified URI flag is invalid.
470
471**Possible Causes**
472
473An incorrect parameter is passed in.
474
475**Solution**
476
477Pass in a valid URI flag.
478
479## 16000059 Specified URI Type Is Invalid
480
481**Error Message**
482
483Invalid URI type.
484
485**Description**
486
487This error code is reported when the specified URI type is invalid.
488
489**Possible Causes**
490
491An incorrect parameter is passed in. Currently, URI authorization management supports only URIs of the file type.
492
493**Solution**
494
495Ensure that the input parameter is of the supported URI type.
496
497## 16000060 Sandbox Applications Cannot Authorize URIs
498
499**Error Message**
500
501A sandbox application cannot grant URI permission.
502
503**Description**
504
505This error code is reported when a sandbox application authorizes a URI.
506
507**Possible Causes**
508
509Sandbox applications cannot authorize URIs.
510
511**Solution**
512
513Use a non-sandbox application.
514
515## 16000061 Unsupport Operation
516
517**Error Message**
518
519Operation not supported.
520
521**Description**
522
523This error code is reported when an operation is not supported.
524
525**Possible Causes**
526
527The operation is not supported.
528
529**Solution**
530
531Perform a supported operation.
532
533## 16000062 Too Many Child Processes
534
535**Error Message**
536
537The number of child processes exceeds the upper limit.
538
539**Description**
540
541This error code is reported when the number of created child processes reaches the upper limit.
542
543**Possible Causes**
544
545The number of created child processes has reached the upper limit.
546
547**Solution**
548
549Limit the number of created child processes. The maximum number is 512.
550
551## 16000063 Invalid Ability During Application Restart
552
553**Error Message**
554
555The target to restart does not belong to the current application or is not a UIAbility.
556
557**Description**
558
559This error code is reported when the specified ability name or type is invalid during application restart.
560
561**Possible Causes**
562
563The specified ability name or type is invalid.
564
565**Solution**
566
567Ensure that the specified ability name exists in the current application and the ability type is UIAbility.
568
569## 16000064 Frequent Application Restart
570
571**Error Message**
572
573Restart too frequently. Try again at least 10s later.
574
575**Description**
576
577An API is called to restart the application and start a specified ability. This error code is reported when the API is called again within 10 seconds.
578
579**Possible Causes**
580
581The API is frequently called.
582
583**Solution**
584
585Call the API again after 10 seconds.
586
587## 16000065 API Can Be Called for a Foreground Ability
588
589**Error Message**
590
591The API can be called only when the ability is running in the foreground.
592
593**Description**
594
595This error code is reported when the API is called while the ability is not running in the foreground.
596
597**Possible Causes**
598
599The ability is not in the foreground when the API is called.
600
601**Solution**
602
603Switch the ability to the foreground before calling the API.
604
605## 16000066 Ability Cannot Be Switched to the Foreground or Background in Wukong Mode
606
607**Error Message**
608
609An ability cannot switch to the foreground or background in Wukong mode.
610
611**Description**
612
613This error code is reported when the API used to switch the ability to the foreground or background is called in Wukong mode.
614
615**Possible Causes**
616
617In Wukong mode, the ability cannot be switched to the foreground or background.
618
619**Solution**
620
621Exit wukong mode, and then call the API to switch the ability to the foreground or background.  
622
623## 16000067 Ability Startup Parameter Verification Failure
624
625**Error Message**
626
627The StartOptions check failed.
628
629**Description**
630
631This error code is reported when verification on **StartOptions** fails.
632
633**Possible Causes**
634
6351. **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.
6362. **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.
637
638**Solution**
639
640Check whether the constraints for **StartOptions** are met.
641
642## 16000068 Ability Is Already Running
643
644**Error Message**
645
646The ability is already running.
647
648**Description**
649
650This error code is reported when the target ability is already running.
651
652**Possible Causes**
653
654**startAbility()** is called, with **processMode** and **startupVisibility** specified. **launchType** of the target ability is singleton or specified, and the target ability is running.
655
656**Solution**
657
658When **launchType** of the target ability is singleton or specified, do not specify **processMode** and **startupVisibility** in **startAbility()**.
659
660## 16000069 ExtensionAbility Fails to Start a Third-Party Application in Strict Mode
661
662**Error Message**
663
664The extension cannot start the third party application.
665
666**Description**
667
668This type of ExtensionAbility cannot start a third-party application in strict mode.
669
670**Possible Causes**
671
672The ExtensionAbility is in strict mode, and this type of ExtensionAbility is forbidden to start third-party applications in strict mode.
673
674**Solution**
675
6761. Check the conditions for enabling the strict mode of this [type of ExtensionAbility](../../application-models/extensionability-overview.md).
6772. Start the ExtensionAbility in non-strict mode.
678
679## 16000070 ExtensionAbility Fails to Start a ServiceExtensionAbility in Strict Mode
680
681**Error Message**
682
683The extension cannot start the service.
684
685**Description**
686
687This type of ExtensionAbility cannot start a ServiceExtensionAbility in strict mode.
688
689**Possible Causes**
690
691The ExtensionAbility is in strict mode, and this type of ExtensionAbility is forbidden to start a ServiceExtensionAbility in strict mode.
692
693**Solution**
694
6951. Check the conditions for enabling the strict mode of this [type of ExtensionAbility](../../application-models/extensionability-overview.md).
6962. Start the ExtensionAbility in non-strict mode.
697
698## 16000071 Application Clone Is Not Supported
699
700**Error Message**
701
702App clone is not supported.
703
704**Description**
705
706This error code is reported when the application does not support clones.
707
708**Possible Causes**
709
710An application that does not support clones calls **getCurrentAppCloneIndex()**.
711
712**Solution**
713
714Avoid calling **getCurrentAppCloneIndex()** in applications that do not support clones.
715
716<!--Del-->
717## 16000072 Multi-app Mode Is Not Supported
718
719**Error Message**
720
721App clone or multi-instance is not supported.
722
723**Description**
724
725This error code is reported when the application does not support the multi-app mode.
726
727**Possible Causes**
728
729The **getRunningMultiAppInfo()** API is called to query the information about an application that does not support the multi-app mode.
730
731**Solution**
732
733When calling **getCurrentAppCloneIndex()**, ensure that the application supports the multi-app mode.
734<!--DelEnd-->
735
736## 16000073 appCloneIndex Is Invalid
737
738**Error Message**
739
740The app clone index is invalid.
741
742**Description**
743
744This error code is reported when an invalid value of **appCloneIndex** is passed in.
745
746**Possible Causes**
747
7481. **startAbility()** is called, with **appCloneIndex** carried in **ohos.extra.param.key.appCloneIndex** set to an invalid value.
749<!--Del-->
7502. **isAppRunning()** is called, with **appCloneIndex** set to an invalid value.
751<!--DelEnd-->
752
753**Solution**
754
755Check whether the constraints of **appCloneIndex** are met.
756
757## 16000074 Caller Corresponding to requestCode Does Not Exist When the Result Is Returned
758
759**Error Message**
760
761The caller does not exist.
762
763**Description**
764
765This 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**.
766
767**Possible Causes**
768
7691. **requestCode** is not obtained from the **CALLER_REQUEST_CODE** field in **want**.
770
7712. The caller corresponding to **requestCode** has been destroyed or the result has been returned.
772
773**Solution**
774
7751. Check whether **requestCode** is obtained from **CALLER_REQUEST_CODE** in **want**.
776
7772. Check whether the caller has been destroyed or the result has been returned.
778
779## 16000075 Caller Cannot Be Started When the Result Is Returned
780
781**Error Message**
782
783Not support back to caller.
784
785**Description**
786
787This error code is reported when the **backToCallerAbilityWithResult** API fails to return the result to the caller.
788
789**Possible Causes**
790
791The link feature is not configured for the application or the configuration is not approved by the system.
792
793**Solution**
794
7951. Ensure that the **linkFeature** field is configured in the **module.json5** file of the application.
7962. 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.
797
798## 16000076 APP_INSTANCE_KEY Does Not Exist
799
800**Error Message**
801
802The APP_INSTANCE_KEY is invalid.
803
804**Description**
805
806This error code is reported when the specified [APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) does not exist.
807
808**Possible Causes**
809
810The instance specified by [APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) does not exist.
811
812**Solution**
813
814Ensure that the value of [APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) is valid.
815
816## 16000077 Number of Application Instances Reaches the Upper Limit
817
818**Error Message**
819
820The number of app instances reaches the limit.
821
822**Description**
823
824This error code is reported when the number of application instances reaches the upper limit and more application instances try to be created.
825
826**Possible Causes**
827
828Before creating an application instance, the application does not check whether the number of application instances reaches the upper limit.
829
830**Solution**
831
832You can create application instances only after adjusting the upper limit of application instances or deleting existing application instances.
833
834## 16000078 Application Multi-Instance Not Supported
835
836**Error Message**
837
838The multi-instance is not supported.
839
840**Description**
841
842This error code is reported when the application does not support the multi-instance mode.
843
844**Possible Causes**
845
8461. The multi-instance mode is not configured for the application.
8472. The current device type does not support the multi-instance mode.
848
849**Solution**
850
8511. Configure the multi-instance mode for the application.
8522. Call the API to create multiple instances on a 2-in-1 device.
853
854## 16000079 APP_INSTANCE_KEY Cannot Be Specified
855
856**Error Message**
857
858The APP_INSTANCE_KEY cannot be specified.
859
860**Description**
861
862[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.
863
864**Possible Causes**
865
866Too many parameters are passed.
867
868**Solution**
869
870Specify either [APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) or [CREATE_APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params).
871
872## 16000080 New Instances Cannot Be Created
873
874**Error Message**
875
876Creating an instance is not supported.
877
878**Description**
879
880Applications 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.
881
882**Possible Causes**
883
884The parameter use scenario is incorrect.
885
886**Solution**
887
888Delete the [CREATE_APP_INSTANCE_KEY](js-apis-app-ability-wantConstant.md#params) parameter.
889
890## 16000100 Failed to Call AbilityMonitor APIs to Listen for Ability Lifecycle Changes
891
892**Error Message**
893
894 - Calling AddAbilityMonitor failed.
895
896 - Calling AddAbilityMonitorSync failed.
897
898 - Calling RemoveAbilityMonitor failed.
899
900 - Calling RemoveAbilityMonitorSync failed.
901
902 - Calling WaitAbilityMonitor failed.
903
904 - Calling GetCurrentTopAbility failed.
905
906 - Calling DoAbilityForeground failed.
907
908 - Calling DoAbilityBackground failed.
909
910 - Calling FinishTest failed.
911
912 - Calling AddAbilityStageMonitor failed.
913
914 - Calling AddAbilityStageMonitorSync failed.
915
916 - Calling RemoveAbilityStageMonitor failed.
917
918 - Calling RemoveAbilityStageMonitorSync failed.
919
920 - Calling WaitAbilityStageMonitor failed.
921
922**Description**
923
924This error code is reported when an AbilityMonitor API for monitoring the lifecycle change of a specified ability fails to be executed.
925
926**Possible Causes**
927
928Creating an **AbilityDelegatorRegistry** instance fails.
929
930**Solution**
931
932Check whether an **AbilityDelegatorRegistry** instance is created.
933
934## 16000101 shell Command Failure
935
936**Error Message**
937
938Failed to run the shell command.
939
940**Description**
941
942This error code is reported when the command is not a valid shell command.
943
944**Possible Causes**
945
946The command is not a valid shell command.
947
948**Solution**
949
950Use a valid shell command.
951
952## 16000151 Invalid wantAgent Object
953
954**Error Message**
955
956Invalid wantAgent object.
957
958**Description**
959
960This error code is reported when the **wantAgent** object passed in the API is invalid.
961
962**Possible Causes**
963
964The **wantAgent** object is invalid.
965
966**Solution**
967
968Pass a valid **wantAgent** object in the API.
969
970## 16000152 wantAgent Object Does Not Exist
971
972**Error Message**
973
974The wantAgent object does not exist.
975
976**Description**
977
978This error code is reported when the **wantAgent** object passed in the API does not exist.
979
980**Possible Causes**
981
982The **wantAgent** object does not exist.
983
984**Solution**
985
986Pass a valid **wantAgent** object in the API.
987
988## 16000153 wangAgent Object Canceled
989
990**Error Message**
991
992The wantAgent object has been canceled.
993
994**Description**
995
996This error code is reported when the **wangAgent** object passed in the API has been canceled.
997
998**Possible Causes**
999
1000The **wantAgent** object has been canceled.
1001
1002**Solution**
1003
1004Pass a valid **wantAgent** object in the API.
1005
1006## 16100001 Ability of the Specified URI Does Not Exist
1007
1008**Error Message**
1009
1010The ability with the specified URI does not exist.
1011
1012**Description**
1013
1014This error code is reported when the ability with the specified URI does not exist.
1015
1016**Possible Causes**
1017
1018The ability to query does not exist.
1019
1020**Solution**
1021
1022Check the ability with the specified URI.
1023
1024## 16100002 Incorrect Ability Type
1025
1026**Error Message**
1027
1028Incorrect ability type.
1029
1030**Description**
1031
1032This error code is reported when the ability type invoked by the API is incorrect.
1033
1034**Possible Causes**
1035
1036The ability with the specified type does not support the API invocation.
1037
1038**Solution**
1039
10401. Check whether the ability name corresponding to the bundle name is correct.
10412. Call the supported APIs based on the ability type.
1042
1043## 16200001 Caller Released
1044
1045**Error Message**
1046
1047The caller has been released.
1048
1049**Description**
1050
1051This error code is reported when the caller has been released.
1052
1053**Possible Causes**
1054
1055The caller has been released.
1056
1057**Solution**
1058
10591. Register a valid caller again.
10602. 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.
10613. If **startAbility()** and **terminateSelf()** are called consecutively, ensure that a success or failure callback for **startAbility()** is received before calling **terminateSelf()**.
1062
1063## 16200002 Invalid Callee
1064
1065**Error Message**
1066
1067The callee does not exist.
1068
1069**Description**
1070
1071This error code is reported when the callee is invalid.
1072
1073**Possible Causes**
1074
1075The callee does not exist.
1076
1077**Solution**
1078
1079Use a valid callee.
1080
1081## 16200003 Release Failure
1082
1083**Error Message**
1084
1085Release error. The caller does not call any callee.
1086
1087**Description**
1088
1089This error code is reported when the release fails.
1090
1091**Possible Causes**
1092
1093The caller is not registered with a callee.
1094
1095**Solution**
1096
1097Check whether the caller has registered.
1098
1099## 16200004 Method Registered
1100
1101**Error Message**
1102
1103The method has been registered.
1104
1105**Description**
1106
1107This error code is reported when the method has been registered.
1108
1109**Possible Causes**
1110
1111The method has been registered by the callee.
1112
1113**Solution**
1114
1115Check whether the method has been registered.
1116
1117## 16200005 Method Not Registered
1118
1119**Error Message**
1120
1121The method has not been registered.
1122
1123**Description**
1124
1125This error code is reported when the method has not been registered.
1126
1127**Possible Causes**
1128
1129The method has not been registered by the callee.
1130
1131**Solution**
1132
1133Check whether the method has been registered.
1134
1135## 16200006 No Permission to Enable or Disable the Resident Process
1136
1137**Error Message**
1138
1139The caller application can only set the resident status of the configured process.
1140
1141**Description**
1142
1143This error code is reported when the caller does not have the permission to enable or disable the resident process.
1144
1145**Possible Causes**
1146
1147The caller does not have the permission to enable or disable the resident process.
1148
1149**Solution**
1150
1151Ensure that the caller has the required permission before calling this API.
1152
1153## 16300001 Nonexistent Mission
1154
1155**Error Message**
1156
1157Mission not found.
1158
1159**Description**
1160
1161This error code is reported when the specified mission does not exist.
1162
1163**Possible Causes**
1164
1165The mission does not exist.
1166
1167**Solution**
1168
1169Check the mission ID.
1170
1171## 16300002 Nonexistent Mission Listener
1172
1173**Error Message**
1174
1175The specified mission listener does not exist.
1176
1177**Description**
1178
1179This error code is reported when the specified mission listener does not exist.
1180
1181**Possible Causes**
1182
1183The mission listener does not exist.
1184
1185**Solution**
1186
1187Check the mission listener ID.
1188
1189## 16300003 Target Application Is Not the Invoker Application
1190
1191**Error Message**
1192
1193The target application is not the current application.
1194
1195**Description**
1196
1197This error code is reported when the application to start is not the application that calls the API.
1198
1199**Possible Causes**
1200
1201The application to start and the invoker application are not the same application.
1202
1203**Solution**
1204
1205Ensure that the application to start is the invoker application.
1206
1207## 18500001 Invalid Bundle Name
1208
1209**Error Message**
1210
1211The bundle does not exist or no patch has been applied.
1212
1213**Description**
1214
1215This error code is reported when the specified bundle name is invalid.
1216
1217**Possible Causes**
1218
1219The bundle does not exist or is not installed.
1220
1221**Solution**
1222
1223Check whether the bundle has been installed.
1224
1225## 18500002 Invalid Patch Package
1226
1227**Error Message**
1228
1229Invalid patch package.
1230
1231**Description**
1232
1233This error code is returned when the specified patch package is invalid.
1234
1235**Possible Causes**
1236
1237The patch package does not exist or is inaccessible.
1238
1239**Solution**
1240
12411. Check whether the path of the patch package is valid.
12422. Check whether the application has the permission to access the patch package.
1243
1244## 18500003 Patch Deployment Failure
1245
1246**Error Message**
1247
1248Failed to deploy the patch.
1249
1250**Description**
1251
1252This error code is reported when the patch package fails to be deployed.
1253
1254**Possible Causes**
1255
12561. The **type** field in the **patch.json** file is set to a value other than **patch** or **hotreload**.
12572. The HAP corresponding to the bundle name is not installed.
12583. 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.
12594. If a patch package has been deployed, the **versionCode** of the new patch package is not later than that of the previous patch package.
12605. If the **type** field is set to **patch**, the signature information is different from that of the application.
12616. If the **type** field is set to **patch** and a debug version is to be installed, a **hotreload** patch is in use.
12627. 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.
1263
1264**Solution**
1265
1266Check whether the patch package complies with the deployment rules.
1267
1268## 18500004 Patch Package Enablement Failure
1269
1270**Error Message**
1271
1272Failed to enable the patch package.
1273
1274**Description**
1275
1276This error code is reported when the patch package fails to be enabled.
1277
1278**Possible Causes**
1279
1280The patch package is in an incorrect state.
1281
1282**Solution**
1283
1284Check the state of the patch package.
1285
1286## 18500005 Patch Package Deletion Failure
1287
1288**Error Message**
1289
1290Failed to remove the patch package.
1291
1292**Description**
1293
1294This error code is reported when the patch package fails to be deleted.
1295
1296**Possible Causes**
1297
1298The patch package is in an incorrect state.
1299
1300**Solution**
1301
1302Check the state of the patch package.
1303
1304## 18500006 Patch Installation Failure
1305
1306**Error Message**
1307
1308Failed to load the patch.
1309
1310**Description**
1311
1312This error code is reported when the patch fails to be installed.
1313
1314**Possible Causes**
1315
1316The Ark engine fails to install the patch.
1317
1318**Solution**
1319
1320Check whether the patch package is correct.
1321
1322## 18500007 Patch Uninstall Failure
1323
1324**Error Message**
1325
1326Failed to unload the patch.
1327
1328**Description**
1329
1330This error code is reported when the Ark engine fails to uninstall the patch.
1331
1332**Possible Causes**
1333
1334The Ark engine fails to uninstall the patch.
1335
1336**Solution**
1337
1338Check whether the patch package is correct.
1339
1340## 18500008 Internal Error
1341
1342**Error Message**
1343
1344Internal error.
1345
1346**Description**
1347
1348This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing.
1349
1350**Possible Causes**
1351
1352Common kernel errors such as memory application and multi-thread processing errors occur.
1353
1354**Solution**
1355
1356Ensure sufficient system memory.
1357
1358## 18500009 Application Has a Quick Fix Task Being Processed
1359
1360**Error Message**
1361
1362The application has an ongoing quick fix task.
1363
1364**Description**
1365
1366This error code is reported when the application has a quick fix task that is under processing.
1367
1368**Possible Causes**
1369
1370When you try to cancel a quick fix task for an application, the application has a quick repair task that is under processing.
1371
1372**Solution**
1373
1374Wait until the quick fix task is complete.
1375
1376## 16300004 Observer Does Not Exist
1377
1378**Error Message**
1379
1380observer not found.
1381
1382**Description**
1383
1384This error code is reported when the specified observer does not exist.
1385
1386**Possible Causes**
1387
1388The observer does not exist or has been unregistered.
1389
1390**Solution**
1391
1392Check whether the observer exists.
1393
1394## 16300005 Bundle Information Does Not Exist
1395
1396**Error Message**
1397
1398The target bundle does not exist.
1399
1400**Description**
1401
1402This error code is reported when the bundle information of the preinstalled application does not exist.
1403
1404**Possible Causes**
1405
1406The value of **bundleName**, **userId**, or **appIndex** is incorrect, leading to the query failure.
1407
1408**Solution**
1409
1410Pass in correct values for **bundleName**, **userId**, and **appIndex**.
1411
1412## 29600001 Internal Error During Image Editing
1413
1414**Error Message**
1415
1416Internal error.
1417
1418**Description**
1419
1420This error code is reported when an internal error such as memory allocation or multithreaded processing exception occurs during image saving.
1421
1422**Possible Causes**
1423
1424Common 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.
1425
1426**Solution**
1427
14281. Ensure sufficient system memory. Ensure that the system version used by the device is normal.
14292. Restart the device.
1430
1431## 29600002 Internal Error During Image Editing
1432
1433**Error Message**
1434
1435Image input error.
1436
1437**Description**
1438
1439This error code is reported when the image URI does not exist or the image cannot be parsed.
1440
1441**Possible Causes**
1442
1443The URI does not exist or the URI does not point to an image file.
1444
1445**Solution**
1446
1447Check whether the file exists and whether the file type is image.
1448
1449## 29600002 Image Too Large
1450
1451**Error Message**
1452
1453Image too big.
1454
1455**Description**
1456
1457The image is too large.
1458
1459**Possible Causes**
1460
1461This error code is reported when the size of the image exceeds 50 MB.
1462
1463**Solution**
1464
14651. Limit the size of the edited image to less than 50 MB.
14662. Verify the image size in advance.
1467## 16300007 Download and Installation Task Information of the Atomic Service Does Not Exist
1468
1469**Error Message**
1470
1471The target free install task does not exist.
1472
1473**Description**
1474
1475This 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.
1476
1477**Possible Causes**
1478
1479The value of **bundleName**, **moduleName**, **abilityName**, or **startTime** is incorrect, leading to the query failure.
1480
1481**Solution**
1482
1483Pass in correct values for **bundleName**, **moduleName**, **abilityName**, and **startTime**.
1484