1# File Management 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
7The error codes of the file management subsystem include the following:
8
9- [Basic File IO Error Codes](#basic-file-io-error-codes)
10- [User Data Management Error Codes](#user-data-management-error-codes)
11- [User File Access Error Codes](#user-file-access-error-codes)
12- [Space Statistics Error Codes](#space-statistics-error-codes)
13- [Device-Cloud Synchronization Error Codes](#device-cloud-synchronization-error-codes)
14
15## Basic File IO Error Codes
16
17### 13900001 Operation Not Permitted
18
19**Error Message**
20
21Operation not permitted
22
23**Possible Causes**
24
25The caller does not have the permission to access the URI or path.
26
27**Solution**
28
291. Check whether the caller cannot use the URI shared by another application. For details, see [access control mechanisms](../../security/AccessToken/access-token-overview.md) of the system.
30
312. Check whether the permission is obtained by Picker. The permission obtained by Picker is temporary. For details, see [System Pickers](../../application-models/system-app-startup.md).
32
333. Check whether the URI is a concatenated path, which has no permission by default.
34
35### 13900002 File or Directory Not Exist
36
37**Error Message**
38
39No such file or directory
40
41**Possible Causes**
42
43The file or directory does not exist.
44
45**Solution**
46
47Check whether the file directory exists.
48
49### 13900003 Process Not Exist
50
51**Error Message**
52
53No such process
54
55**Possible Causes**
56
57The process does not exist.
58
59**Solution**
60
611. Check whether the process is killed unexpectedly.
62
632. Check whether the service related to the process has started.
64
65### 13900004 System Call Interrupted
66
67**Error Message**
68
69Interrupted system call
70
71**Possible Causes**
72
73The system call is interrupted by another thread.
74
75**Solution**
76
771. Check the multi-thread code logic.
78
792. Invoke the system call again.
80
81### 13900005 I/O Error
82
83**Error Message**
84
85I/O error
86
87**Possible Causes**
88
89The I/O request is invalid.
90
91**Solution**
92
93Initiate the I/O request again.
94
95### 13900006 Device or Address Not Exist
96
97**Error Message**
98
99No such device or address
100
101**Possible Causes**
102
103The device information or address is incorrect.
104
105**Solution**
106
107Check that the device information or address is correct.
108
109### 13900007 Long Parameter List
110
111**Error Message**
112
113Arg list too long
114
115**Possible Causes**
116
117The parameter list is too long.
118
119**Solution**
120
121Reduce the number of parameters.
122
123### 13900008 File Descriptor Corrupted
124
125**Error Message**
126
127Bad file descriptor
128
129**Possible Causes**
130
1311. This file descriptor is closed.
1322. The read and write permissions on the file do not match the settings.
133
134**Solution**
135
1361. Check whether the file descriptor is closed.
1372. Check that the permissions on the file match the settings.
138
139### 13900009 Child Process Not Exist
140
141**Error Message**
142
143No child processes
144
145**Possible Causes**
146
147The child process cannot be created.
148
149**Solution**
150
151Check the maximum number of processes in the system.
152
153### 13900010 Resource Unavailable
154
155**Error Message**
156
157Try again
158
159**Possible Causes**
160
161The resources are blocked.
162
163**Solution**
164
165Request the resource again.
166
167### 13900011 Memory Overflow
168
169**Error Message**
170
171Out of memory
172
173**Possible Causes**
174
175A memory overflow occurs.
176
177**Solution**
178
1791. Check the memory overhead.
180
1812. Control the memory overhead.
182
183### 13900012 Permission Denied
184
185**Error Message**
186
187Permission denied
188
189**Possible Causes**
190
1911. The operation is intercepted by DAC or SELinux.
192
1932. The file sandbox path is incorrect.
194
195**Solution**
196
1971. Check the UGO permission of the file.
198
1992. Check the kernel log for [AVC log information](../../../device-dev/subsystems/subsys-security-selinux-develop-intro.md). If yes,<!--RP1--> see [SELinux Development](../../../device-dev/subsystems/subsys-security-selinux-develop-intro.md).<!--RP1End-->
200
2013. Check whether the file path is a [sandbox path](../../file-management/app-sandbox-directory.md). The File Management system does not allow operations on files outside the sandbox directory.
202
203### 13900013 Incorrect Address
204
205**Error Message**
206
207Bad address
208
209**Possible Causes**
210
211The address is incorrect.
212
213**Solution**
214
215Check that the address is correct.
216
217### 13900014 Device or Resource Not Available
218
219**Error Message**
220
221Device or resource busy
222
223**Possible Causes**
224
225The requested resource is unavailable.
226
227**Solution**
228
229Request the resource again.
230
231### 13900015 File Already Exists
232
233**Error Message**
234
235File exists
236
237**Possible Causes**
238
239The file to be created already exists.
240
241**Solution**
242
243Check whether the file path is correct.
244
245### 13900016 Invalid Cross-Device Link
246
247**Error Message**
248
249Cross-device link
250
251**Possible Causes**
252
253The link between devices is incorrect.
254
255**Solution**
256
257Check the devices and create the link correctly.
258
259### 13900017 Device Not Exist
260
261**Error Message**
262
263No such device
264
265**Possible Causes**
266
267The device is not identified.
268
269**Solution**
270
271Check the connection to the target device.
272
273### 13900018 Invalid Directory
274
275**Error Message**
276
277Not a directory
278
279**Possible Causes**
280
281The specified directory is invalid.
282
283**Solution**
284
285Check that the specified directory is correct.
286
287### 13900019 The Specified Object Is a Directory
288
289**Error Message**
290
291Is a directory
292
293**Possible Causes**
294
295The specified object is a directory.
296
297**Solution**
298
299Check that the specified data is correct.
300
301### 13900020 Invalid Parameter
302
303**Error Message**
304
305Invalid argument
306
307**Possible Causes**
308
309The input parameter is invalid.
310
311**Solution**
312
313Check that the input parameters are valid.
314
315### 13900021 Too Many File Descriptors Opened
316
317**Error Message**
318
319File table overflow
320
321**Possible Causes**
322
323The number of file descriptors opened has reached the limit.
324
325**Solution**
326
327Close the file descriptors that are no longer required.
328
329### 13900022 Too Many Files Opened
330
331**Error Message**
332
333Too many open files
334
335**Possible Causes**
336
337The number of files opened has reached the limit.
338
339**Solution**
340
341Close the files that are not required.
342
343### 13900023 Text File Not Respond
344
345**Error Message**
346
347Text file busy
348
349**Possible Causes**
350
351The executable file of the program is in use.
352
353**Solution**
354
355Close the program that is being debugged.
356
357### 13900024 File Oversized
358
359**Error Message**
360
361File too large
362
363**Possible Causes**
364
365The file size exceeds the limit.
366
367**Solution**
368
369Check whether the file size exceeds the limit.
370
371### 13900025 Insufficient Space on the Device
372
373**Error Message**
374
375No space left on device
376
377**Possible Causes**
378
379The device storage space is insufficient.
380
381**Solution**
382
383Clear the space of the device.
384
385### 13900026 Invalid Shift
386
387**Error Message**
388
389Illegal seek
390
391**Possible Causes**
392
393Seek is used in pipe or FIFO.
394
395**Solution**
396
397Check the use of **seek()**.
398
399### 13900027 Read-Only File System
400
401**Error Message**
402
403Read-only file system
404
405**Possible Causes**
406
407The file system allows read operations only.
408
409**Solution**
410
411Check whether the file is read-only.
412
413### 13900028 Links Reach the Limit
414
415**Error Message**
416
417Too many links
418
419**Possible Causes**
420
421The number of links to the file has reached the limit.
422
423**Solution**
424
425Delete the links that are no longer required.
426
427### 13900029 Resource Deadlock
428
429**Error Message**
430
431Resource deadlock would occur
432
433**Possible Causes**
434
435Resource deadlock occurs.
436
437**Solution**
438
439Terminate the deadlock process.
440
441### 13900030 Long File Name
442
443**Error Message**
444
445Filename too Long
446
447**Possible Causes**
448
449The length of the path or file name exceeds the limit.
450
451**Solution**
452
453Modify the path or file name.
454
455### 13900031 Function Not Implemented
456
457**Error Message**
458
459Function not implemented
460
461**Possible Causes**
462
463The function is not supported by the system.
464
465**Solution**
466
467Check the system version and update the system if required.
468
469### 13900032 Directory Not Empty
470
471**Error Message**
472
473Directory not empty
474
475**Possible Causes**
476
477The specified directory is not empty.
478
479**Solution**
480
4811. Check the directory.
482
4832. Ensure that the directory is empty.
484
485### 13900033 Too Many Symbol Links
486
487**Error Message**
488
489Too many symbolic links encountered
490
491**Possible Causes**
492
493There are too many symbolic links.
494
495**Solution**
496
497Delete unnecessary symbol links.
498
499### 13900034 Operation Blocked
500
501**Error Message**
502
503Operation would block
504
505**Possible Causes**
506
507The operation is blocked.
508
509**Solution**
510
511Perform the operation again.
512
513### 13900035 Invalid File Descriptor
514
515**Error Message**
516
517Invalid request descriptor
518
519**Possible Causes**
520
521The requested file descriptor is invalid.
522
523**Solution**
524
525Check that the file descriptor is valid.
526
527### 13900036 Target Is Not a Character Stream Device
528
529**Error Message**
530
531Device not a stream
532
533**Possible Causes**
534
535The device pointed to by the file descriptor is not a character stream device.
536
537**Solution**
538
539Check whether the file descriptor points to a stream.
540
541### 13900037 No Data Available
542
543**Error Message**
544
545No data available
546
547**Possible Causes**
548
549The required data is not available.
550
551**Solution**
552
553Request the data again.
554
555### 13900038 Value Mismatches the Data Type
556
557**Error Message**
558
559Value too large for defined data type
560
561**Possible Causes**
562
563The specified value is out of the range defined for the data type.
564
565**Solution**
566
567Modify the data type.
568
569### 13900039 File Descriptor Corrupted
570
571**Error Message**
572
573File descriptor in bad state
574
575**Possible Causes**
576
577The file descriptor is corrupted.
578
579**Solution**
580
581Check that the file descriptor is valid.
582
583### 13900040 System Call Not Started
584
585**Error Message**
586
587Interrupted system call should be restarted
588
589**Possible Causes**
590
591The system call is interrupted.
592
593**Solution**
594
595Invoke the system call again.
596
597### 13900041 Disk Quota Exceeded
598
599**Error Message**
600
601Quota exceeded
602
603**Possible Causes**
604
605The storage space is insufficient.
606
607**Solution**
608
609Clear disk space.
610
611### 13900042 Unknown Error
612
613**Error Message**
614
615Unknown error
616
617**Possible Causes**
618
619Internal error
620
621**Solution**
622
6231. Call the API again.
624
6252. Restart the service.
626
627### 13900043 No Available Lock
628
629**Error Message**
630
631No record locks available
632
633**Possible Causes**
634
635System resources are insufficient.
636
637**Solution**
638
639Wait until a lock is released and try again.
640
641### 2300007 Network Access Failure
642
643**Error Message**
644
645Network is unreachable
646
647**Possible Causes**
648
649A network error occurs.
650
651**Solution**
652
653Check the network status.
654
655### 13900045 Connection Failed
656
657**Error Message**
658
659Connection failed
660
661**Possible Causes**
662
663The device is abnormal, or Wi-Fi or Bluetooth is unavailable.
664
665**Solution**
666
6671. Check that the device is in normal status.
668
6692. Check that Wi-Fi and Bluetooth are available.
670
671### 13900046 Connection Interrupted by Software
672
673**Error Message**
674
675Software caused connection abort
676
677**Possible Causes**
678
679The device goes offline, or the Wi-Fi or Bluetooth is disconnected.
680
681**Solution**
682
6831. Check that the device is in normal status.
684
6852. Check that Wi-Fi and Bluetooth are available.
686
687## User Data Management Error Codes
688
689### 14000001 Invalid File Name
690
691**Error Message**
692
693Invalid file name
694
695**Possible Causes**
696
697The file name contains invalid characters.
698
699**Solution**
700
701Modify the file name.
702
703### 14000002 Invalid URI
704
705**Error Message**
706
707Invalid URI
708
709**Possible Causes**
710
711The URI is invalid.
712
713**Solution**
714
715Use the obtained URI.
716
717### 14000003 Invalid File Name Extension
718
719**Error Message**
720
721Invalid file name extension
722
723**Possible Causes**
724
725The file name extension is incorrect.
726
727**Solution**
728
729Modify the file name extension.
730
731### 14000004 File in Recycle Bin
732
733**Error Message**
734
735File already in the recycle bin
736
737**Possible Causes**
738
739The file is moved to the Recycle Bin.
740
741**Solution**
742
743Check whether the file is in the Recycle Bin.
744
745### 14000011 Internal System Error
746
747**Error Message**
748
749System inner fail
750
751**Possible Causes**
752
753An unidentified error occurs in the system.
754
755**Solution**
756
757Clear the background or restart the device.
758
759### 14000014 Invalid Member Name
760
761**Error Message**
762
763Member is not a valid PhotoKey
764
765**Possible Causes**
766
767The input string is not a member name of a class or interface.
768
769**Solution**
770
771Ensure that the input string is the member name of the class or interface.
772
773## Space Statistics Error Codes
774
775### 13600001 IPC Failed
776
777**Error Message**
778
779IPC error
780
781**Possible Causes**
782
783The called service does not exist.
784
785**Solution**
786
787Check whether the service is started.
788
789### 13600002 File System Not Supported
790
791**Error Message**
792
793File system not supported
794
795**Possible Causes**
796
797The file system is not supported.
798
799**Solution**
800
801Use a supported file system.
802
803### 13600003 Mount Failed
804
805**Error Message**
806
807Mount failed
808
809**Possible Causes**
810
811The **mount** command fails.
812
813**Solution**
814
815Remove the card and run the **mount** command again.
816
817### 13600004 Unmount Failed
818
819**Error Message**
820
821Unmount failed
822
823**Possible Causes**
824
825The device does not respond.
826
827**Solution**
828
829Check whether the file is being used. If yes, kill the thread that uses the file.
830
831### 13600005 Incorrect Volume State
832
833**Error Message**
834
835Incorrect volume state
836
837**Possible Causes**
838
839The volume state is incorrect.
840
841**Solution**
842
843Check whether the current volume state is correct.
844
845### 13600006 Failed to Create a Directory or Node
846
847**Error Message**
848
849Failed to create the drectory or node
850
851**Possible Causes**
852
853The directory or node to be created already exists.
854
855**Solution**
856
857Check whether the directory or node to be created already exists.
858
859### 13600007 Failed to Delete a Directory or Node
860
861**Error Message**
862
863Failed to delete the drectory or node
864
865**Possible Causes**
866
867The specified directory or node has been deleted.
868
869**Solution**
870
871Check whether the specified directory or node exists.
872
873### 13600008 Object Not Exist
874
875**Error Message**
876
877No such object
878
879**Possible Causes**
880
8811. The specified volume ID is incorrect.
882
8832. The specified bundle name is incorrect.
884
885**Solution**
886
8871. Check whether the specified volume exists.
888
8892. Check whether the specified bundle name exists.
890
891### 13600009 Invalid User ID
892
893**Error Message**
894
895User ID out of range
896
897**Possible Causes**
898
899The specified user ID is incorrect.
900
901**Solution**
902
903Check that the user ID is correct.
904
905## User File Access Error Codes
906
907### 14300001 IPC Failed
908
909**Error Message**
910
911IPC error
912
913**Possible Causes**
914
9151. The server service does not exist.
916
9172. The extension mechanism is abnormal.
918
919**Solution**
920
921Check that the server service exists.
922
923### 14300002 Incorrect URI Format
924
925**Error Message**
926
927Invalid URI
928
929**Possible Causes**
930
931The URI is invalid.
932
933**Solution**
934
935Check that the URI is in correct format.
936
937### 14300003 Failed to Obtain the Server Ability Information
938
939**Error Message**
940
941Failed to obtain the server ability information
942
943**Possible Causes**
944
945The BMS interface is abnormal.
946
947**Solution**
948
949Check for basic system capability errors.
950
951### 14300004 Incorrect Result Returned by js-server
952
953**Error Message**
954
955Incorrect result returned by js-server
956
957**Possible Causes**
958
959The data returned by the server is incorrect.
960
961**Solution**
962
963Check the data returned by the server.
964
965### 14300005 Failed to Register Notify
966
967**Error Message**
968
969Failed to register Notify
970
971**Possible Causes**
972
9731. The server service does not exist.
974
9752. The extension mechanism is abnormal.
976
977**Solution**
978
979Check that the server service exists.
980
981### 14300006 Failed to Unregister Notify
982
983**Error Message**
984
985Failed to unregister Notify
986
987**Possible Causes**
988
9891. The server service does not exist.
990
9912. The extension mechanism is abnormal.
992
993**Solution**
994
995Check that the server service exists.
996
997### 14300007 Failed to Initialize the Notify Agent
998
999**Error Message**
1000
1001Failed to initialize the Notify agent
1002
1003**Possible Causes**
1004
1005The specified Notify agent has not been registered.
1006
1007**Solution**
1008
1009Check whether the specified Notify agent is registered.
1010
1011### 14300008 Failed to Notify the Agent
1012
1013**Error Message**
1014
1015Failed to notify the agent
1016
1017**Possible Causes**
1018
10191. The service does not exist.
1020
10212. The extension mechanism is abnormal.
1022
1023**Solution**
1024
1025Check whether the client is normal.
1026
1027## Device-Cloud Synchronization Error Codes
1028
1029### 22400001 Cloud Unavailable
1030
1031**Error Message**
1032
1033Cloud status not ready
1034
1035**Possible Causes**
1036
10371. The cloud is not enabled.
1038
10392. The cloud synchronization switch is not enabled for the application.
1040
1041**Solution**
1042
10431. Check that the user has logged in with a cloud account.
1044
10452. Check that the cloud synchronization switch is enabled.
1046
1047### 22400002 Network Unavailable
1048
1049**Error Message**
1050
1051Network unavailable
1052
1053**Possible Causes**
1054
1055The device is not connected to the network or the network is unavailable.
1056
1057**Solution**
1058
1059Check the network status.
1060
1061### 22400003 Low Battery Level
1062
1063**Error Message**
1064
1065Low battery level
1066
1067**Possible Causes**
1068
1069The battery level is low.
1070
1071**Solution**
1072
1073Perform the operation after the battery is being charged or the battery level is restored.
1074