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 10s 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 10 seconds.
584
585**Possible Causes**
586
587The API is frequently called.
588
589**Solution**
590
591Call the API again after 10 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
716An application that does not support clones calls **getCurrentAppCloneIndex()**.
717
718**Solution**
719
720Avoid calling **getCurrentAppCloneIndex()** in applications that do not support clones.
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
1010The **wantAgent** object is invalid.
1011
1012**Solution**
1013
1014Pass a valid **wantAgent** object in the API.
1015
1016## 16000152 wantAgent Object Does Not Exist
1017
1018**Error Message**
1019
1020The wantAgent object does not exist.
1021
1022**Description**
1023
1024This error code is reported when the **wantAgent** object passed in the API does not exist.
1025
1026**Possible Causes**
1027
1028The **wantAgent** object does not exist.
1029
1030**Solution**
1031
1032Pass a valid **wantAgent** object in the API.
1033
1034## 16000153 wangAgent Object Canceled
1035
1036**Error Message**
1037
1038The wantAgent object has been canceled.
1039
1040**Description**
1041
1042This error code is reported when the **wangAgent** object passed in the API has been canceled.
1043
1044**Possible Causes**
1045
1046The **wantAgent** object has been canceled.
1047
1048**Solution**
1049
1050Pass a valid **wantAgent** object in the API.
1051
1052## 16100001 Ability of the Specified URI Does Not Exist
1053
1054**Error Message**
1055
1056The ability with the specified URI does not exist.
1057
1058**Description**
1059
1060This error code is reported when the ability with the specified URI does not exist.
1061
1062**Possible Causes**
1063
1064The ability to query does not exist.
1065
1066**Solution**
1067
1068Check the ability with the specified URI.
1069
1070## 16100002 Incorrect Ability Type
1071
1072**Error Message**
1073
1074Incorrect ability type.
1075
1076**Description**
1077
1078This error code is reported when the ability type invoked by the API is incorrect.
1079
1080**Possible Causes**
1081
1082The ability with the specified type does not support the API call.
1083
1084**Solution**
1085
10861. Check whether the ability name corresponding to the bundle name is correct.
10872. Call the supported APIs based on the ability type.
1088
1089## 16200001 Caller Released
1090
1091**Error Message**
1092
1093The caller has been released.
1094
1095**Description**
1096
1097This error code is reported when the caller has been released.
1098
1099**Possible Causes**
1100
1101The caller has been released.
1102
1103**Solution**
1104
11051. Register a valid caller again.
11062. 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.
11073. If **startAbility()** and **terminateSelf()** are called consecutively, ensure that a success or failure callback for **startAbility()** is received before calling **terminateSelf()**.
1108
1109## 16200002 Invalid Callee
1110
1111**Error Message**
1112
1113The callee does not exist.
1114
1115**Description**
1116
1117This error code is reported when the callee is invalid.
1118
1119**Possible Causes**
1120
1121The callee does not exist.
1122
1123**Solution**
1124
1125Use a valid callee.
1126
1127## 16200003 Release Failure
1128
1129**Error Message**
1130
1131Release error. The caller does not call any callee.
1132
1133**Description**
1134
1135This error code is reported when the release fails.
1136
1137**Possible Causes**
1138
1139The caller is not registered with a callee.
1140
1141**Solution**
1142
1143Check whether the caller has registered.
1144
1145## 16200004 Method Registered
1146
1147**Error Message**
1148
1149The method has been registered.
1150
1151**Description**
1152
1153This error code is reported when the method has been registered.
1154
1155**Possible Causes**
1156
1157The method has been registered by the callee.
1158
1159**Solution**
1160
1161Check whether the method has been registered.
1162
1163## 16200005 Method Not Registered
1164
1165**Error Message**
1166
1167The method has not been registered.
1168
1169**Description**
1170
1171This error code is reported when the method has not been registered.
1172
1173**Possible Causes**
1174
1175The method has not been registered by the callee.
1176
1177**Solution**
1178
1179Check whether the method has been registered.
1180
1181## 16200006 No Permission to Enable or Disable the Resident Process
1182
1183**Error Message**
1184
1185The caller application can only set the resident status of the configured process.
1186
1187**Description**
1188
1189This error code is reported when the caller does not have the permission to enable or disable the resident process.
1190
1191**Possible Causes**
1192
1193The caller does not have the permission to enable or disable the resident process.
1194
1195**Solution**
1196
1197Ensure that the caller has the required permission before calling this API.
1198
1199## 16300001 Nonexistent Mission
1200
1201**Error Message**
1202
1203Mission not found.
1204
1205**Description**
1206
1207This error code is reported when the specified mission does not exist.
1208
1209**Possible Causes**
1210
1211The mission does not exist.
1212
1213**Solution**
1214
1215Check the mission ID.
1216
1217## 16300002 Nonexistent Mission Listener
1218
1219**Error Message**
1220
1221The specified mission listener does not exist.
1222
1223**Description**
1224
1225This error code is reported when the specified mission listener does not exist.
1226
1227**Possible Causes**
1228
1229The mission listener does not exist.
1230
1231**Solution**
1232
1233Check the mission listener ID.
1234
1235## 16300003 Target Application Is Not the Invoker Application
1236
1237**Error Message**
1238
1239The target application is not the current application.
1240
1241**Description**
1242
1243This error code is reported when the application to start is not the application that calls the API.
1244
1245**Possible Causes**
1246
1247The application to start and the invoker application are not the same application.
1248
1249**Solution**
1250
1251Ensure that the application to start is the invoker application.
1252
1253## 18500001 Invalid Bundle Name
1254
1255**Error Message**
1256
1257The bundle does not exist or no patch has been applied.
1258
1259**Description**
1260
1261This error code is reported when the specified bundle name is invalid.
1262
1263**Possible Causes**
1264
1265The bundle does not exist or is not installed.
1266
1267**Solution**
1268
1269Check whether the bundle has been installed.
1270
1271## 18500002 Invalid Patch Package
1272
1273**Error Message**
1274
1275Invalid patch package.
1276
1277**Description**
1278
1279This error code is returned when the specified patch package is invalid.
1280
1281**Possible Causes**
1282
1283The patch package does not exist or is inaccessible.
1284
1285**Solution**
1286
12871. Check whether the path of the patch package is valid.
12882. Check whether the application has the permission to access the patch package.
1289
1290## 18500003 Patch Deployment Failure
1291
1292**Error Message**
1293
1294Failed to deploy the patch.
1295
1296**Description**
1297
1298This error code is reported when the patch package fails to be deployed.
1299
1300**Possible Causes**
1301
13021. The **type** field in the **patch.json** file is set to a value other than **patch** or **hotreload**.
13032. The HAP corresponding to the bundle name is not installed.
13043. 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.
13054. If a patch package has been deployed, the **versionCode** of the new patch package is not later than that of the previous patch package.
13065. If the **type** field is set to **patch**, the signature information is different from that of the application.
13076. If the **type** field is set to **patch** and a debug version is to be installed, a **hotreload** patch is in use.
13087. 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.
1309
1310**Solution**
1311
1312Check whether the patch package complies with the deployment rules.
1313
1314## 18500004 Patch Package Enablement Failure
1315
1316**Error Message**
1317
1318Failed to enable the patch package.
1319
1320**Description**
1321
1322This error code is reported when the patch package fails to be enabled.
1323
1324**Possible Causes**
1325
1326The patch package is in an incorrect state.
1327
1328**Solution**
1329
1330Check the state of the patch package.
1331
1332## 18500005 Patch Package Deletion Failure
1333
1334**Error Message**
1335
1336Failed to remove the patch package.
1337
1338**Description**
1339
1340This error code is reported when the patch package fails to be deleted.
1341
1342**Possible Causes**
1343
1344The patch package is in an incorrect state.
1345
1346**Solution**
1347
1348Check the state of the patch package.
1349
1350## 18500006 Patch Installation Failure
1351
1352**Error Message**
1353
1354Failed to load the patch.
1355
1356**Description**
1357
1358This error code is reported when the patch fails to be installed.
1359
1360**Possible Causes**
1361
1362The Ark engine fails to install the patch.
1363
1364**Solution**
1365
1366Check whether the patch package is correct.
1367
1368## 18500007 Patch Uninstall Failure
1369
1370**Error Message**
1371
1372Failed to unload the patch.
1373
1374**Description**
1375
1376This error code is reported when the Ark engine fails to uninstall the patch.
1377
1378**Possible Causes**
1379
1380The Ark engine fails to uninstall the patch.
1381
1382**Solution**
1383
1384Check whether the patch package is correct.
1385
1386## 18500008 Internal Error
1387
1388**Error Message**
1389
1390Internal error.
1391
1392**Description**
1393
1394This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing.
1395
1396**Possible Causes**
1397
1398Common kernel errors such as memory application and multi-thread processing errors occur.
1399
1400**Solution**
1401
1402Ensure sufficient system memory.
1403
1404## 18500009 Application Has a Quick Fix Task Being Processed
1405
1406**Error Message**
1407
1408The application has an ongoing quick fix task.
1409
1410**Description**
1411
1412This error code is reported when the application has a quick fix task that is under processing.
1413
1414**Possible Causes**
1415
1416When you try to cancel a quick fix task for an application, the application has a quick repair task that is under processing.
1417
1418**Solution**
1419
1420Wait until the quick fix task is complete.
1421
1422## 16300004 Observer Does Not Exist
1423
1424**Error Message**
1425
1426observer not found.
1427
1428**Description**
1429
1430This error code is reported when the specified observer does not exist.
1431
1432**Possible Causes**
1433
1434The observer does not exist or has been unregistered.
1435
1436**Solution**
1437
1438Check whether the observer exists.
1439
1440## 16300005 Bundle Information Does Not Exist
1441
1442**Error Message**
1443
1444The target bundle does not exist.
1445
1446**Description**
1447
1448This error code is reported when the bundle information of the preinstalled application does not exist.
1449
1450**Possible Causes**
1451
1452The value of **bundleName**, **userId**, or **appIndex** is incorrect, leading to the query failure.
1453
1454**Solution**
1455
1456Pass in correct values for **bundleName**, **userId**, and **appIndex**.
1457
1458## 16300008 Specified Package Does Not Have a Main UIAbility
1459
1460**Error Message**
1461
1462The target bundle has no main uiability.
1463
1464**Description**
1465
1466This error code is reported when the application does not have a main UIAbility.
1467
1468**Possible Causes**
1469
1470The ability configured for **mainElement** is not a UIAbility.
1471
1472**Solution**
1473
1474Check whether the ability configured for **mainElement** in the **module.json** file is a UIAbility.
1475
1476## 16300009 Specified Package Does Not Have a Status Bar
1477
1478**Error Message**
1479
1480The target bundle has no status-bar ability.
1481
1482**Description**
1483
1484This error code is reported when the application does not have a status bar.
1485
1486**Possible Causes**
1487
1488The application does not have a status bar.
1489
1490**Solution**
1491
1492Check whether the application has a status bar.
1493
1494## 16300010 Running Application Is Not Attached to a Status Bar
1495
1496**Error Message**
1497
1498The target application is not attached to status bar.
1499
1500**Description**
1501
1502This error code is reported when the application is not attached to a status bar after running.
1503
1504**Possible Causes**
1505
1506The application has a status bar, but it is not attached to the status bar during running.
1507
1508**Solution**
1509
1510Check whether the application is attached to a status bar.
1511
1512## 29600001 Internal Error During Image Editing
1513
1514**Error Message**
1515
1516Internal error.
1517
1518**Description**
1519
1520This error code is reported when an internal error such as memory allocation or multithreaded processing exception occurs during image saving.
1521
1522**Possible Causes**
1523
1524Common 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.
1525
1526**Solution**
1527
15281. Ensure sufficient system memory. Ensure that the system version used by the device is normal.
15292. Restart the device.
1530
1531## 29600002 Internal Error During Image Editing
1532
1533**Error Message**
1534
1535Image input error.
1536
1537**Description**
1538
1539This error code is reported when the image URI does not exist or the image cannot be parsed.
1540
1541**Possible Causes**
1542
1543The URI does not exist or the URI does not point to an image file.
1544
1545**Solution**
1546
1547Check whether the file exists and whether the file type is image.
1548
1549## 29600002 Image Too Large
1550
1551**Error Message**
1552
1553Image too big.
1554
1555**Description**
1556
1557The image is too large.
1558
1559**Possible Causes**
1560
1561This error code is reported when the size of the image exceeds 50 MB.
1562
1563**Solution**
1564
15651. Limit the size of the edited image to less than 50 MB.
15662. Verify the image size in advance.
1567## 16300007 Download and Installation Task Information of the Atomic Service Does Not Exist
1568
1569**Error Message**
1570
1571The target free install task does not exist.
1572
1573**Description**
1574
1575This 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.
1576
1577**Possible Causes**
1578
1579The value of **bundleName**, **moduleName**, **abilityName**, or **startTime** is incorrect, leading to the query failure.
1580
1581**Solution**
1582
1583Pass in correct values for **bundleName**, **moduleName**, **abilityName**, and **startTime**.
1584