Error 8 With Application Builder When I Create an Executable in LabVIEW 8.5/8.5.1
Primary Software: LabVIEW Toolkits>>Application Builder
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Problem: When I try to create an application from LabVIEW's build specifications with Report Generation toolkit, I get the following error:
Error 8 occurred at Copy in AB_Engine_Copy_Error_Files.vi» AB_Application.lvclass:Copy_Error_Files.vi» AB_Application.lvclass:Copy_Files.vi» AB_Build.lvclass:Build.vi»AB_EXE.lvclass:Build.vi» AB_Engine_Build.vi»AB_Build_Invoke.vi»AB_Build_Invoke.vi.ProxyCaller
Solution: When creating an application in LabVIEW 8.5/8.5.1 with Report Generation toolkit 1.1.2, you may find yourself getting an error when trying to build your application. This error will look like the dialog in Figure 1.

In the Details section, it gives the following information:
Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
Error 8 occurred at Copy in AB_Engine_Copy_Error_Files.vi» AB_Application.lvclass:Copy_Error_Files.vi» AB_Application.lvclass:Copy_Files.vi» AB_Build.lvclass:Build.vi»AB_EXE.lvclass:Build.vi» AB_Engine_Build.vi»AB_Build_Invoke.vi»AB_Build_Invoke.vi.ProxyCaller
Possible reason(s):
LabVIEW: File permission error. You do not have the correct permission's for the file.
=========================
C:\Program Files\National Instruments\LabVIEW 8.5\project\errors\Japanese\SPT-errors.txt
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. To alleviate this error, uncheck Copy error code files as you are building your application.
To create an executable without Copy error code files:
- From the Project Explorer view right click Build Specifications. Select New»Application (EXE).
- Select the Advanced section of Application Builder and uncheck Copy error code files option as shown in Figure 2.

If you rebuild your application the error should not appear anymore. If this does not fix the error, also consider the following:
- Check permissions on the directory you may be writing to with Report Generation.
- 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 KnowledgeBase article in the Related Links section.
Related Links: KnowledgeBase 3GFF9FBP: Why do I get "Error 8 Occurred at Open File" When Writing to or Reading from a File?
Attachments:
ErrorMessage.jpg
AdvancedWindow_AppBuild.jpg
Report Date: 09/18/2008
Last Updated: 09/29/2008
Document ID: 4PHB958I