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