Error 8 with Application Builder When I Create an Executable

Updated Jun 1, 2021

Reported In


  • 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


Common Solutions:
  1. 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.
    1. Make sure you are compiling using the Windows administrator user (especially if you are compiling to restricted directories, such as root C:\)
    2. Make sure the folder where you are compiling to is empty and there are no other filed that the application builder needs to overwrite.
    3. Make sure you don't have open a previous version of the compiled application that could be using the same resources as the one that is compiling.
  2. If you are using an auto-backup feature on your system, it can lock files that are not currently backed up. This will receive Error 8 because the auto-backup feature will request administrative privileges to edit or remove a file that is not currently backed up. Either turn off this feature or save the files in a different location that does not have this feature running. 
  3. 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
  4. Windows Firewall or the local Anti Virus program is blocking the application. Disable both and try to build the application.
  5. This error can also appear if the file size of your executable is too large (900 MB), You can follow the section "Rules for Better Memory Usage" on the VI Memory Usage section on LabVIEW help.
  6. Try building the application in a Network Drive to ensure that no other software is using the same files.
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: