Error 8 with Application Builder When I Create an Executable

Updated Jan 3, 2018

Reported In

Software

  • LabVIEW Professional
  • LabVIEW Application Builder Module

Issue Details

When I try to create an application with Application Builder, I get the following build error showing Error 8 occurred. as shown below

Solution

Common Solutions:
  • Check permissions on the directory you are writing to. Sometimes when you try to build your application to a shared network drive, you might not have access to write to this drive and you will receive Error 8. Having the Application Builder save your executable to a local drive will solve this issue.
  • Either another application is accessing the same file or the file is already open when you are trying to create the executable. For more information please refer to the KB: Error 8 When Writing to or Reading from a File
  • Windows Firewall or the local Anti Virus program is blocking the application. Disable both and try to build the application.  

Another Possible Solution:

If your error file says:
This error can be due to an option selected while setting up the build for your executable-Copy error code files in the Advanced section of Application Builder. Copy error code files adds copies of XML-based LabVIEW error code text files from the project\errors and user.lib\errors folders to the run-time engine. 

You can fix the issue by following these steps:
  1. From the Project Explorer view right click Build Specifications. Select New»Application (EXE).
  2. Select the Advanced category of Application Builder and uncheck Copy error code files option as shown below:


If you rebuild your application, the error should no longer appear.

Additional Information

Note: For VI's built in 8.5 that have been compiled to LabVIEW 2009 or higher, you may also need to uncheck the Use LabVIEW 8.x file layout option, when rebuilding your application, as shown below:

WAS THIS ARTICLE HELPFUL?

Not Helpful