Error -2146827284 When Using Excel Insert Object VI in LabVIEW

Updated Jun 1, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Report Generation Toolkit

Operating System

  • Windows

Other

  • Microsoft Excel

Issue Details

When I try to insert a picture into an Excel report using the LabVIEW Report Generation Toolkit, the following error message shows up.
 

Error -2146827284 occurred at Exception occured in Microsoft Excel: Cannot insert object.Help Path is xlmain11.chm and context 0 in NI_Excel.lvclass:Excel Insert Object.vi->Insert NI Logo.vi

This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (-2146827284) or for its hexadecimal representation (0x800A03EC).


This error is shown in the following dialog box

Solution

This issue occurs if the object that you want to insert in the report does not exist in the expected directory in your computer. To solve the problem, verify the picture exists in the file path specified as input parameter to the Excel Insert Object VI. Use traditional debugging tools in LabVIEW such as probes and highlight execution to find out the expected location of the file.