Error Code 6 When Building a LabVIEW Executable

Updated Mar 1, 2019

Reported In

Software

  • LabVIEW Real-Time Module
  • LabVIEW Application Builder Module
  • LabVIEW

Operating System

  • Windows

Issue Details

I am utilizing 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 similar to 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?

Solution

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 outlined below:
  • 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.
 
 
 

Additional Information

For more information on the Maximum Path Length in the Windows OS, visit the MSDN article on File Names, Paths, and Namespaces.

WAS THIS ARTICLE HELPFUL?

Not Helpful