Error 1059 When Using LabVIEW Report Generation Toolkit

Updated Jun 7, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Report Generation Toolkit

Issue Details

When I am using Save Report to File.vi, I get the following error:

Error 1059 occurred at Open/Create/Replace File in NI_Excel.lvclass:Save Report to File.vi->error 1059.vi

Possible reason(s):

LabVIEW: (Hex 0x423) Unexpected file type.

C:\Users\<Username>\Desktop\FileName

 
The error is shown as the below dialog box:
error 1059 pop out.png
 

Solution

To resolve this issue,  specific the full report file path including the report file name. For example, C:\Users\<Username>\Desktop\FileName\test.xlsx. File path is C:\Users\<Username>\Desktop\FileName\, while file name is test.xlsx. The file name is any name that you specified for the report and its file type could be Excel, Words or HTML. If you are not sure about the file format (eg. .xlsx), you could check it via the file properties. 

Also, make sure that you are referred to the correct report file path.

Even though you have not create a file in the specific report file path, when you specific the file name, it will automatically create a file with the file name that you specified. 

Additional Information

There are few reasons that caused this error to happen when using Report Generation toolkit.
  • When you do not specific the full report file path to the Save Report to File.vi, which should include the file name. When you do not specific which file it should save into, it will automatically generate out a new file. At the same time, it will pop out the error message 1059.
  • When you specific the wrong report file path.