Error 6: Generic File I/O Error in LabVIEW

Updated Oct 15, 2018

Reported In


  • LabVIEW Full
  • LabVIEW Base
  • LabVIEW Professional

Issue Details

I am receiving Error 6 in LabVIEW:

LabVIEW: Generic File I/O error.

When running an executable made with Application builder, I get a Generic File I/O error. What can I do to fix this?



Error 6, or Generic File I/O Error, is a common error that is generated when a file operation in LabVIEW or the user's code fails to execute. 

Try the following steps to troubleshoot this error:
  • Confirm that all the files developed used are locally saved and can be accessed by LabVIEW (i.e. VI's produced are not in the Program Files folder in the C drive)
  • Check to make sure there is enough available space on the disk.
  • Depending on which file system your disk implements there is a maximum number of files per folder (regardless of how much disk space that is available). For example, FAT16 can have 512 files per folder, FAT32 65,534 files per folder, and NTFS 4,294,967,295 files per folder. The solution to this would be to periodically delete old files or to periodically store the files in a new folder.
  • Enable sharing on any folders accessed over the network.
  • Make sure file paths or directories LabVIEW is accessing do not exceed the maximum length for system file paths.
  • Remove or replace any control characters from string controls or constants that are used to designate a file path. See LabVIEW Error 1 or 6: Input Parameter is Invalid to learn more about this case.
  • When you are deleting a directory, either first delete its contents and subfolders, or wire a True constant to the entire hierarchy input of the Delete function. See Error 6 Occurred at Delete When Deleting a Folder to learn more about this case.
  • In Linux, you need to open a pipe in Read Mode before trying to open it in Write Mode.
  • Antivirus can sometimes lock files that have recently been created. Try adding a Wait (ms) block set at 100 ms before calling the Close function. Also, you can try disabling Anti-Virus to see if that affects the issue. 
  • If you recently installed Windows XP, see Cannot Find Files in All Users Folders After Windows XP Re-install and follow those steps to troubleshoot your issue.

Additional Information

This error is caused by an issue with LabVIEW's interaction with the file system. 


Not Helpful