• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
11Incorrect Ability name. The specified Ability name 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. Check whether the bundle name is correct.
242. Check whether the ability name corresponding to the bundle name is correct.
25
26## 16000002 Incorrect Ability Type
27
28**Error Message**
29
30Incorrect Ability type.
31
32**Description**
33
34This error code is reported when the ability type invoked by the API is incorrect.
35
36**Possible Causes**
37
38The ability with the specified type does not support the API invocation.
39
40**Solution**
41
421. Check whether the ability name corresponding to the bundle name is correct.
432. Call the supported APIs based on the ability type.
44
45## 16000003 Nonexistent ID
46
47**Error Message**
48
49Input error. The specified ID does not exist.
50
51**Description**
52
53This error code is reported when the specified ID does not exist.
54
55**Possible Causes**
56
57The target with the specified ID does not exist.
58
59**Solution**
60
61Use the correct ID.
62
63## 16000004 Visibility Verification Failure
64
65**Error Message**
66
67Visibility verification failed.
68
69**Description**
70
71This error code is reported when the application fails visibility verification.
72
73**Possible Causes**
74
75Visibility verification fails.
76
77**Solution**
78
79Check whether **exported** under the **Ability** field in the **module.json5** file of the application is set to **true**. If this parameter is set to **true**, the ability can be invoked by other applications. If this parameter is set to **false**, the ability cannot be invoked by other applications.
80
81## 16000006 Cross-User Operation Is Not Allowed
82
83**Error Message**
84
85Cross-user operations are not allowed.
86
87**Description**
88
89This error code is reported when an application tries to perform a cross-user operation.
90
91**Possible Causes**
92
93The application initiates a cross-user operation.
94
95**Solution**
96
97Do not perform a cross-user operation.
98
99## 16000007 Service Busy
100
101**Error Message**
102
103Service busy, please wait and try again.
104
105**Description**
106
107This error code is reported when the service requested is busy.
108
109**Possible Causes**
110
111The service is busy.
112
113**Solution**
114
115Try again later.
116
117## 16000008 Crowdtesting Application Expires
118
119**Error Message**
120
121Crowdtest App Expired.
122
123**Description**
124
125This error code is reported when users try to open a crowdtesting application that has expired.
126
127**Possible Causes**
128
129The crowdtesting application has expired.
130
131**Solution**
132
133Check whether the crowdtesting application has expired.
134
135## 16000009 Ability Start or Stop Failure in Wukong Mode
136
137**Error Message**
138
139Ability cannot be started or sotpped in Wukong mode.
140
141**Description**
142
143This error code is returned when the application tries to start or stop an ability in Wukong mode.
144
145**Possible Causes**
146
147An ability cannot be started or stopped in Wukong mode.
148
149**Solution**
150
151Do not start or stop an ability in Wukong mode.
152
153## 16000010 Continuation Flag Forbidden
154
155**Error Message**
156
157The call with the continuation flag is forbidden.
158
159**Description**
160
161This error code is reported when the API call carries the continuation flag.
162
163**Possible Causes**
164
165The continuation flag is not allowed for the API call.
166
167**Solution**
168
169Remove the continuation flag.
170
171## 16000011 Nonexistent Context
172
173**Error Message**
174
175The context does not exist.
176
177**Description**
178
179This error code is reported when the specified context does not exist.
180
181**Possible Causes**
182
183The context passed in the API does not exist.
184
185**Solution**
186
187Use the correct context.
188
189## 16000017 Waiting for the Previous Abilities to Finish Startup
190
191**Error Message**
192
193The previous ability is starting, wait start later.
194
195**Description**
196
197Too 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.
198
199**Possible Causes**
200
201The system has a large number of concurrent requests.
202
203**Solution**
204
205No action is required. Wait for the previous abilities to finish startup.
206
207## 16000050 Internal Error
208
209**Error Message**
210
211Internal error.
212
213**Description**
214
215This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing.
216
217**Possible Causes**
218
219Common kernel errors such as memory application and multi-thread processing errors occur.
220
221**Solution**
222
223Ensure sufficient system memory.
224
225## 16000051 Network Error
226
227**Error Message**
228
229Network error.
230
231**Description**
232
233This error code is reported when the network is abnormal.
234
235**Possible Causes**
236
237The network is unavailable.
238
239**Solution**
240
241Try again later or reconnect to the network.
242
243## 16000052 Installation-Free Is Not Supported
244
245**Error Message**
246
247Installation-free is not supported.
248
249**Description**
250
251This error code is reported when the application does not support installation-free.
252
253**Possible Causes**
254
255The application package does not meet the installation-free requirements. For example, the package is too large.
256
257**Solution**
258
259Check whether the application supports installation-free.
260
261## 16000053 Ability Is Not on Top
262
263**Error Message**
264
265The ability is not on the top of UI.
266
267**Description**
268
269This error code is reported when the ability is not displayed on the top of the UI.
270
271**Possible Causes**
272
273The ability is not displayed on the top of the UI.
274
275**Solution**
276
277Ensure that the ability is displayed on the top of the UI.
278
279## 16000054 Installation-Free Busy
280
281**Error Message**
282
283Installation-free service is busy, please wait and try again later.
284
285**Description**
286
287This error code is reported when the installation-free service is busy.
288
289**Possible Causes**
290
291Another installation-free task is in progress.
292
293**Solution**
294
295Try again later.
296
297## 16000055 Installation-Free Timeout
298
299**Error Message**
300
301Installation-free time out.
302
303**Description**
304
305This error code is reported when the installation-free task times out.
306
307**Possible Causes**
308
309Installation-free times out.
310
311**Solution**
312
313Try again later.
314
315## 16000056 Installation-Free Is Not Allowed for Other Applications
316
317**Error Message**
318
319Installation-free is not allowed for other applications.
320
321**Description**
322
323This error code is reported when users try to apply installation-free for other applications.
324
325**Possible Causes**
326
327Installation-free is allowed only for the current application.
328
329**Solution**
330
331Apply installation-free only for the current application.
332
333## 16000057 Cross-Device Installation-Free Is Not Supported
334
335**Error Message**
336
337Cross-device installation-free is not supported.
338
339**Description**
340
341This error code is reported when users try to apply installation-free across devices.
342
343**Possible Causes**
344
345Cross-device installation-free is not supported.
346
347**Solution**
348
349Use installation-free on the same device.
350
351## 16000058 Specified URI Flag Is Invalid
352
353**Error Message**
354
355Invalid URI flag.
356
357**Description**
358
359This error code is reported when the specified URI flag is invalid.
360
361**Possible Causes**
362
363An incorrect parameter is passed in.
364
365**Solution**
366
367Pass in a valid URI flag.
368
369## 16000059 Specified URI Type Is Invalid
370
371**Error Message**
372
373Invalid URI type.
374
375**Description**
376
377This error code is reported when the specified URI type is invalid.
378
379**Possible Causes**
380
381An incorrect parameter is passed in. Currently, URI authorization management supports only URIs of the file type.
382
383**Solution**
384
385Ensure that the input parameter is of the supported URI type.
386
387## 16000060 Sandbox Applications Cannot Authorize URIs
388
389**Error Message**
390
391Sandbox application can not grant URI permission.
392
393**Description**
394
395This error code is reported when a sandbox application authorizes a URI.
396
397**Possible Causes**
398
399Sandbox applications cannot authorize URIs.
400
401**Solution**
402
403Use a non-sandbox application.
404
405## 16000101 shell Command Failure
406
407**Error Message**
408
409Failed to run the shell command.
410
411**Description**
412
413This error code is reported when the command is not a valid shell command.
414
415**Possible Causes**
416
417The command is not a valid shell command.
418
419**Solution**
420
421Use a valid shell command.
422
423## 16000151 Invalid wantAgent Object
424
425**Error Message**
426
427Invalid wantAgent object.
428
429**Description**
430
431This error code is reported when the **wantAgent** object passed in the API is invalid.
432
433**Possible Causes**
434
435The **wantAgent** object is invalid.
436
437**Solution**
438
439Pass a valid **wantAgent** object in the API.
440
441## 16000152 wantAgent Object Does Not Exist
442
443**Error Message**
444
445the wantAgent object does not exist.
446
447**Description**
448
449This error code is reported when the **wantAgent** object passed in the API does not exist.
450
451**Possible Causes**
452
453The **wantAgent** object does not exist.
454
455**Solution**
456
457Pass a valid **wantAgent** object in the API.
458
459## 16000153 wangAgent Object Canceled
460
461**Error Message**
462
463wangAgent object has been canceled.
464
465**Description**
466
467This error code is reported when the **wangAgent** object passed in the API has been canceled.
468
469**Possible Causes**
470
471The **wantAgent** object has been canceled.
472
473**Solution**
474
475Pass a valid **wantAgent** object in the API.
476
477## 16100001 Ability of the Specified URI Does Not Exist
478
479**Error Message**
480
481The ability with the specified URI does not exist.
482
483**Description**
484
485This error code is reported when the ability with the specified URI does not exist.
486
487**Possible Causes**
488
489The ability to query does not exist.
490
491**Solution**
492
493Check the ability with the specified URI.
494
495## 16100002 Incorrect Ability Type
496
497**Error Message**
498
499Incorrect ability type.
500
501**Description**
502
503This error code is reported when the ability type invoked by the API is incorrect.
504
505**Possible Causes**
506
507The ability with the specified type does not support the API invocation.
508
509**Solution**
510
5111. Check whether the ability name corresponding to the bundle name is correct.
5122. Call the supported APIs based on the ability type.
513
514## 16200001 Caller Released
515
516**Error Message**
517
518The caller has been released.
519
520**Description**
521
522This error code is reported when the caller has been released.
523
524**Possible Causes**
525
526The caller has been released.
527
528**Solution**
529
530Register a valid caller again.
531
532## 16200002 Invalid Callee
533
534**Error Message**
535
536The callee does not exist.
537
538**Description**
539
540This error code is reported when the callee is invalid.
541
542**Possible Causes**
543
544The callee does not exist.
545
546**Solution**
547
548Use a valid callee.
549
550## 16200003 Release Failure
551
552**Error Message**
553
554Release error. The caller does not call any callee.
555
556**Description**
557
558This error code is reported when the release fails.
559
560**Possible Causes**
561
562The caller is not registered with a callee.
563
564**Solution**
565
566Check whether the caller has registered.
567
568## 16200004 Method Registered
569
570**Error Message**
571
572The method has registered.
573
574**Description**
575
576This error code is reported when the method has been registered.
577
578**Possible Causes**
579
580The method has been registered by the callee.
581
582**Solution**
583
584Check whether the method has been registered.
585
586## 16200005 Method Not Registered
587
588**Error Message**
589
590The method is not registered.
591
592**Description**
593
594This error code is reported when the method has not been registered.
595
596**Possible Causes**
597
598The method has not been registered by the callee.
599
600**Solution**
601
602Check whether the method has been registered.
603
604## 16300001 Nonexistent Mission
605
606**Error Message**
607
608The specified mission id does not exist.
609
610**Description**
611
612This error code is reported when the specified mission does not exist.
613
614**Possible Causes**
615
616The mission does not exist.
617
618**Solution**
619
620Check the mission ID.
621
622## 16300002 Nonexistent Mission Listener
623
624**Error Message**
625
626The specified mission listener does not exist.
627
628**Description**
629
630This error code is reported when the specified mission listener does not exist.
631
632**Possible Causes**
633
634The mission listener does not exist.
635
636**Solution**
637
638Check the mission listener ID.
639
640## 16300003 Target Application Is Not the Invoker Application
641
642**Error Message**
643
644The target application is not self application.
645
646**Description**
647
648This error code is reported when the application to start is not the application that calls the API.
649
650**Possible Causes**
651
652The application to start and the invoker application are not the same application.
653
654**Solution**
655
656Ensure that the application to start is the invoker application.
657
658## 18500001 Invalid Bundle Name
659
660**Error Message**
661
662Invalid bundle name.
663
664**Description**
665
666This error code is reported when the specified bundle name is invalid.
667
668**Possible Causes**
669
670The bundle does not exist or is not installed.
671
672**Solution**
673
674Check whether the bundle has been installed.
675
676## 18500002 Invalid Patch Package
677
678**Error Message**
679
680Invalid patch package.
681
682**Description**
683
684This error code is returned when the specified patch package is invalid.
685
686**Possible Causes**
687
688The patch package does not exist or is inaccessible.
689
690**Solution**
691
6921. Check whether the path of the patch package is valid.
6932. Check whether the application has the permission to access the patch package.
694
695## 18500003 Patch Deployment Failure
696
697**Error Message**
698
699Failed to deploy the patch.
700
701**Description**
702
703This error code is reported when the patch package fails to be deployed.
704
705**Possible Causes**
706
7071. The **type** field in the **patch.json** file is set to a value other than **patch** or **hotreload**.
7082. The HAP corresponding to the bundle name is not installed.
7093. 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.
7104. If a patch package has been deployed, the **versionCode** of the new patch package is not later than that of the previous patch package.
7115. If the **type** field is set to **patch**, the signature information is different from that of the application.
7126. If the **type** field is set to **patch** and a debug version is to be installed, a **hotreload** patch is in use.
7137. 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.
714
715**Solution**
716
717Check whether the patch package complies with the deployment rules.
718
719## 18500004 Patch Package Enablement Failure
720
721**Error Message**
722
723Failed to enable the patch package.
724
725**Description**
726
727This error code is reported when the patch package fails to be enabled.
728
729**Possible Causes**
730
731The patch package is in an incorrect state.
732
733**Solution**
734
735Check the state of the patch package.
736
737## 18500005 Patch Package Deletion Failure
738
739**Error Message**
740
741Failed to enable the patch package.
742
743**Description**
744
745This error code is reported when the patch package fails to be deleted.
746
747**Possible Causes**
748
749The patch package is in an incorrect state.
750
751**Solution**
752
753Check the state of the patch package.
754
755## 18500006 Patch Installation Failure
756
757**Error Message**
758
759Failed to load the patch.
760
761**Description**
762
763This error code is reported when the patch fails to be installed.
764
765**Possible Causes**
766
767The Ark engine fails to install the patch.
768
769**Solution**
770
771Check whether the patch package is correct.
772
773## 18500007 Patch Uninstall Failure
774
775**Error Message**
776
777Failed to unload the patch.
778
779**Description**
780
781This error code is reported when the Ark engine fails to uninstall the patch.
782
783**Possible Causes**
784
785The Ark engine fails to uninstall the patch.
786
787**Solution**
788
789Check whether the patch package is correct.
790
791## 18500008 Internal Error
792
793**Error Message**
794
795Internal error.
796
797**Description**
798
799This error code is reported when an error occurs during internal processing, such as memory application or multi-thread processing.
800
801**Possible Causes**
802
803Common kernel errors such as memory application and multi-thread processing errors occur.
804
805**Solution**
806
807Ensure sufficient system memory.
808
809## 18500009 Application Has a Quick Fix Task Being Processed
810
811**Error Message**
812
813The application has a apply quick fix task that is being processed.
814
815**Description**
816
817This error code is reported when the application has a quick fix task that is under processing.
818
819**Possible Causes**
820
821When you try to cancel a quick fix task for an application, the application has a quick repair task that is under processing.
822
823**Solution**
824
825Wait until the quick fix task is complete.
826