Error Code 6 When Building a LabVIEW Executable

Updated Jan 9, 2019

Reported In


  • LabVIEW Full
  • LabVIEW Base
  • LabVIEW Professional
  • LabVIEW 2017 Application Builder Module

Operating System

  • Windows

Issue Details

I use the LabVIEW Application Builder to create a distribution (i.e. an application (EXE), a shared library (DLL), source distribution (LLB), or web service). When I create the distribution, I receive an error like the following:

Error 6 occured at AB_Source_VI.lvclass
Possible reason(s): LabVIEW: Generic File I/O error.

What causes this error and how can I resolve it?


Error 6 occurs when building a distribution when the file path of a file in the project extends beyond the 255 character limit allowed by Windows. To resolve the error, follow the steps ahead:
  • Use a shorter path, like C:\Your_File
  • Ensure that your file path is not pointing to an incorrect drive, such as a CD or DVD drive. 
  • For application or shared library builds, place a checkmark in the Use LabVIEW 8.x file layout checkbox on the Advanced page of the build specification Properties dialog box.
  • For a source distribution or web service builds, uncheck the Preserve disk hierarchy checkbox on the problem on the Destinations build specification page located under the Destination type.
For more information on the Maximum Path Length in the Windows OS, visit the MSDN article on File Names, Paths, and Namespaces.


Not Helpful