Error -375701 When Writing Excel File in Append Mode in LabVIEW

Updated May 31, 2024

Reported In

Software

  • LabVIEW

Issue Details

When using the LabVIEW Write To Measurement File Express VI in Append mode with my previous edited Excel file, that contains column headers, I am getting the following error, this does not happen when the Write to Measurement File Express VI writes a file from scratch.:

Error -375701 occurred at Write to Measurement File->VI Name

Possible reason(s):
LabVIEW: (Hex 0xFFFA446B) The Excel file is not generated by LabVIEW 
image.png

 

Solution

Error -375701 is caused in LabVIEW due to the mismatch of the existing content in the Excel file that is used as a base with the content the Write To Measurement File Express VI tries to write with the append mode.

When using the Write To Measurement File Express VI in append mode make sure that this VI is the only one writing to the Excel file, do not use other VIs or edit the file manually before the writing. As an alternative if headers need to be written or an Excel template should be used, consider using the Report Generation Toolkit for Microsoft Office you can use the following guide as a reference: Write Data to an Excel File Using the LabVIEW Report Generation Toolkit.