Advanced Tubular Technologies, Inc. Support Center

Contact Us

Windows File I/O Error Codes Reference

Quick Reference for Most Common Windows File I/O Errors

These are the most common file I/O error codes:

These cover about 90% of file I/O errors in typical applications.


Common File Access Errors (0-31)

CodeConstantDescriptionCommon Causes
0ERROR_SUCCESSThe operation completed successfullyNo error
1ERROR_INVALID_FUNCTIONIncorrect functionInvalid file operation
2ERROR_FILE_NOT_FOUNDThe system cannot find the file specifiedFile doesn't exist
3ERROR_PATH_NOT_FOUNDThe system cannot find the path specifiedDirectory doesn't exist
4ERROR_TOO_MANY_OPEN_FILESToo many open filesSystem file handle limit reached
5ERROR_ACCESS_DENIEDAccess is deniedInsufficient permissions, file is read-only
6ERROR_INVALID_HANDLEThe handle is invalidFile handle corrupted or closed
8ERROR_NOT_ENOUGH_MEMORYNot enough storage is availableInsufficient memory
9ERROR_INVALID_BLOCKThe storage control block address is invalidMemory corruption
10ERROR_BAD_ENVIRONMENTThe environment is incorrectInvalid environment variables
11ERROR_BAD_FORMATAn attempt was made to load a malformed programInvalid executable format
12ERROR_INVALID_ACCESSThe access code is invalidInvalid file access mode
13ERROR_INVALID_DATAThe data is invalidCorrupted file data
14ERROR_OUTOFMEMORYNot enough storage is availableOut of memory
15ERROR_INVALID_DRIVEThe system cannot find the drive specifiedDrive doesn't exist
16ERROR_CURRENT_DIRECTORYThe directory cannot be removedCannot remove current directory
17ERROR_NOT_SAME_DEVICEThe system cannot move the file to a different disk driveCross-device move attempt
18ERROR_NO_MORE_FILESThere are no more filesEnd of directory listing
19ERROR_WRITE_PROTECTThe media is write protectedDisk/file is write-protected
20ERROR_BAD_UNITThe system cannot find the device specifiedInvalid device
21ERROR_NOT_READYThe device is not readyDrive not ready
22ERROR_BAD_COMMANDThe device does not recognize the commandInvalid device command
23ERROR_CRCData error (cyclic redundancy check)Data corruption detected
24ERROR_BAD_LENGTHThe program issued a command but the command length is incorrectInvalid command length
25ERROR_SEEKThe drive cannot locate a specific area or track on the diskDisk seek error
26ERROR_NOT_DOS_DISKThe specified disk or diskette cannot be accessedInvalid disk format
27ERROR_SECTOR_NOT_FOUNDThe drive cannot find the sector requestedBad disk sector
28ERROR_OUT_OF_PAPERThe printer is out of paperPrinter error
29ERROR_WRITE_FAULTThe system cannot write to the specified deviceWrite operation failed
30ERROR_READ_FAULTThe system cannot read from the specified deviceRead operation failed
31ERROR_GEN_FAILUREA device attached to the system is not functioningGeneral device failure

File Sharing and Locking Errors (32-89)

CodeConstantDescriptionCommon Causes
32ERROR_SHARING_VIOLATIONThe process cannot access the file because it is being used by another processFile locked by another application
33ERROR_LOCK_VIOLATIONThe process cannot access the file because another process has locked a portion of the fileFile region locked
34ERROR_WRONG_DISKThe wrong diskette is in the driveIncorrect removable media
36ERROR_SHARING_BUFFER_EXCEEDEDToo many files opened for sharingSharing buffer full
38ERROR_HANDLE_EOFReached the end of the fileEnd of file reached
39ERROR_HANDLE_DISK_FULLThe disk is fullNo space left on device
50ERROR_NOT_SUPPORTEDThe request is not supportedOperation not supported
51ERROR_REM_NOT_LISTWindows cannot find the network pathNetwork path not found
52ERROR_DUP_NAMEYou were not connected because a duplicate name exists on the networkDuplicate network name
53ERROR_BAD_NETPATHThe network path was not foundNetwork path invalid
54ERROR_NETWORK_BUSYThe network is busyNetwork congestion
55ERROR_DEV_NOT_EXISTThe specified network resource or device is no longer availableNetwork device unavailable
56ERROR_TOO_MANY_CMDSThe network BIOS command limit has been reachedToo many network commands
57ERROR_ADAP_HDW_ERRA network adapter hardware error occurredNetwork hardware error
58ERROR_BAD_NET_RESPThe specified server cannot perform the requested operationBad network response
59ERROR_UNEXP_NET_ERRAn unexpected network error occurredUnexpected network error
60ERROR_BAD_REM_ADAPThe remote adapter is not compatibleIncompatible remote adapter
61ERROR_PRINTQ_FULLThe printer queue is fullPrint queue full
62ERROR_NO_SPOOL_SPACESpace to store the file waiting to be printed is not availableNo print spool space
63ERROR_PRINT_CANCELLEDYour file waiting to be printed was deletedPrint job cancelled
64ERROR_NETNAME_DELETEDThe specified network name is no longer availableNetwork name deleted
65ERROR_NETWORK_ACCESS_DENIEDNetwork access is deniedNetwork access denied
66ERROR_BAD_DEV_TYPEThe network resource type is not correctWrong network device type
67ERROR_BAD_NET_NAMEThe network name cannot be foundNetwork name not found
68ERROR_TOO_MANY_NAMESThe name limit for the local computer network adapter card was exceededToo many network names
69ERROR_TOO_MANY_SESSThe network BIOS session limit was exceededToo many network sessions
70ERROR_SHARING_PAUSEDThe remote server has been paused or is in the process of being startedRemote server paused
71ERROR_REQ_NOT_ACCEPNo more connections can be made to this remote computerConnection limit reached
72ERROR_REDIR_PAUSEDThe specified printer or disk device has been pausedDevice paused
80ERROR_FILE_EXISTSThe file existsFile already exists
82ERROR_CANNOT_MAKEThe directory or file cannot be createdCannot create file/directory
83ERROR_FAIL_I24Fail on INT 24Critical error handler failure
84ERROR_OUT_OF_STRUCTURESStorage to process this request is not availableOut of system structures
85ERROR_ALREADY_ASSIGNEDThe local device name is already in useDevice name in use
86ERROR_INVALID_PASSWORDThe specified network password is not correctInvalid network password
87ERROR_INVALID_PARAMETERThe parameter is incorrectInvalid parameter
88ERROR_NET_WRITE_FAULTA write fault occurred on the networkNetwork write error
89ERROR_NO_PROC_SLOTSThe system cannot start another processNo process slots available

Directory and Path Errors (100-150)

CodeConstantDescriptionCommon Causes
100ERROR_TOO_MANY_SEMAPHORESCannot create another system semaphoreSemaphore limit reached
101ERROR_EXCL_SEM_ALREADY_OWNEDThe exclusive semaphore is owned by another processSemaphore conflict
102ERROR_SEM_IS_SETThe semaphore is set and cannot be closedSemaphore in use
103ERROR_TOO_MANY_SEM_REQUESTSToo many semaphore requestsSemaphore request limit
104ERROR_INVALID_AT_INTERRUPT_TIMECannot request exclusive semaphores at interrupt timeInvalid interrupt operation
105ERROR_SEM_OWNER_DIEDThe previous ownership of this semaphore has endedSemaphore owner terminated
107ERROR_PROCESS_ABORTEDThe process stopped because of CTRL+CProcess terminated by user
108ERROR_BROKEN_PIPEThe pipe has been endedBroken pipe
109ERROR_OPEN_FAILEDThe system cannot open the device or file specifiedOpen operation failed
110ERROR_BUFFER_OVERFLOWThe file name is too longFilename/path too long
111ERROR_DISK_FULLThere is not enough space on the diskDisk full
112ERROR_NO_MORE_SEARCH_HANDLESNo more internal file identifiers availableSearch handle limit
113ERROR_INVALID_TARGET_HANDLEThe target internal file identifier is incorrectInvalid target handle
114ERROR_INVALID_CATEGORYThe IOCTL call made by the application program is not correctInvalid IOCTL
115ERROR_INVALID_VERIFY_SWITCHThe verify-on-write switch parameter value is not correctInvalid verify switch
116ERROR_BAD_DRIVER_LEVELThe system does not support the command requestedUnsupported driver level
117ERROR_CALL_NOT_IMPLEMENTEDThis function is not supported on this systemFunction not implemented
118ERROR_SEM_TIMEOUTThe semaphore timeout period has expiredSemaphore timeout
119ERROR_INSUFFICIENT_BUFFERThe data area passed to a system call is too smallBuffer too small
120ERROR_INVALID_NAMEThe filename, directory name, or volume label syntax is incorrectInvalid name syntax
121ERROR_INVALID_LEVELThe system call level is not correctInvalid system call level
122ERROR_NO_VOLUME_LABELThe disk has no volume labelNo volume label
123ERROR_MOD_NOT_FOUNDThe specified module could not be foundModule not found
124ERROR_PROC_NOT_FOUNDThe specified procedure could not be foundProcedure not found
125ERROR_WAIT_NO_CHILDRENThere are no child processes to wait forNo child processes
126ERROR_CHILD_NOT_COMPLETEThe child process has not completedChild process running
127ERROR_DIRECT_ACCESS_HANDLEAttempt to use a file handle to an open disk partition for an operation other than raw disk I/OInvalid direct access
128ERROR_NEGATIVE_SEEKAn attempt was made to move the file pointer before the beginning of the fileNegative seek
129ERROR_SEEK_ON_DEVICEThe file pointer cannot be set on the specified device or fileSeek not supported
130ERROR_IS_JOIN_TARGETA JOIN or SUBST command cannot be used for a drive that contains previously joined drivesInvalid JOIN target
131ERROR_IS_JOINEDAn attempt was made to use a JOIN or SUBST command on a drive that has already been joinedDrive already joined
132ERROR_IS_SUBSTEDAn attempt was made to use a JOIN or SUBST command on a drive that has already been substitutedDrive already substituted
133ERROR_NOT_JOINEDThe system tried to delete the JOIN of a drive that is not joinedDrive not joined
134ERROR_NOT_SUBSTEDThe system tried to delete the substitution of a drive that is not substitutedDrive not substituted
135ERROR_JOIN_TO_JOINThe system tried to join a drive to a directory on a joined driveCannot join to joined drive
136ERROR_SUBST_TO_SUBSTThe system tried to substitute a drive to a directory on a substituted driveCannot substitute to substituted drive
137ERROR_JOIN_TO_SUBSTThe system tried to join a drive to a directory on a substituted driveCannot join to substituted drive
138ERROR_SUBST_TO_JOINThe system tried to SUBST a drive to a directory on a joined driveCannot substitute to joined drive
139ERROR_BUSY_DRIVEThe system cannot perform a JOIN or SUBST at this timeDrive busy
140ERROR_SAME_DRIVEThe system cannot join or substitute a drive to or for a directory on the same driveSame drive operation
141ERROR_DIR_NOT_ROOTThe directory is not a subdirectory of the root directoryDirectory not root
142ERROR_DIR_NOT_EMPTYThe directory is not emptyDirectory contains files
143ERROR_IS_SUBST_PATHThe path specified is being used in a substitutePath is substituted
144ERROR_IS_JOIN_PATHNot enough resources are available to process this commandPath is joined
145ERROR_PATH_BUSYThe path cannot be used at this timePath busy
146ERROR_IS_SUBST_TARGETAn attempt was made to join or substitute a drive for which one of its directories is the target of a previous substituteInvalid substitute target
147ERROR_SYSTEM_TRACESystem trace information was not specified in your CONFIG.SYS fileSystem trace not configured
148ERROR_INVALID_EVENT_COUNTThe number of specified semaphore events for DosMuxSemWait is not correctInvalid event count
149ERROR_TOO_MANY_MUXWAITERSDosMuxSemWait did not execute; too many semaphores are already setToo many mux waiters
150ERROR_INVALID_LIST_FORMATThe DosMuxSemWait list is not correctInvalid list format

Network and Remote File Errors (206-234)

CodeConstantDescriptionCommon Causes
206ERROR_FILENAME_EXCED_RANGEThe filename or extension is too longFilename too long
230ERROR_BAD_PIPEThe pipe state is invalidInvalid pipe state
231ERROR_PIPE_BUSYAll pipe instances are busyAll pipes in use
232ERROR_NO_DATAThe pipe is being closedPipe closing
233ERROR_PIPE_NOT_CONNECTEDNo process is on the other end of the pipePipe not connected
234ERROR_MORE_DATAMore data is availableAdditional data available