LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EXE build fail caused by broken VI (Excel Find and Replace.vi)

Hello! I need to build an exe file using Labview 2022. The problem is that build fails with error 1502 which occurred at AB_Source_VI.lvclass:Close_Reference.vi -> AB_Build.lvclass:Save.vi. The error message gave me the possible reason, so I opened the vi of the following directory. 

C:\Program Files\National Instruments\LabVIEW 2022\vi.lib\addons\_office\excel.llb\Excel Find and Replace (num)

It turns out the vi is broken (like the picture below). 

The program I made should open the Excel template and save some numbers with a new file. 

I hope I can get any clues or solutions to solve it. 

Thank you.

Parisnocturne_0-1685175701083.png

Parisnocturne_1-1685175728126.png

 

 

 

0 Kudos
Message 1 of 6
(1,321 Views)

There are many reasons why a program doesn't work.  Some of the time, it is the programmer's fault.  Some of the time, it is bugs in the Software.  Sometimes there are "flaws" in the data being processed.

 

Simply showing "pictures" of the Error Message and a Front Panel is unlikely to allow us to help you.  If you want help/advice, please do the following:

  1. Attach your entire Project.  Right-click your Project's folder, do "Send to:", "Compressed (zipped) folder", and attach the resulting .zip file.
  2. Attach a sample data file.
  3. Many (most?) "active developers" on the Forum might not have LabVIEW 2022 on their PCs (I'm mostly working with LabVIEW 2019, myself). I recommend you "Save for Previous Version" and use at most LabVIEW 2021.  Attach this (zipped) Project, as well.
  4. You didn't say whether you are using 32- or 64-bit LabVIEW.  Do tell us!  Many of us (continue to) use 32-bit LabVIEW.

Bob Schor

0 Kudos
Message 2 of 6
(1,257 Views)

That has happened to me a couple of times. The Report generation toolkit is based on an older Excel and sometimes calls are changed. Open the VI and fix the call.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(1,217 Views)

@Yamaeda  ha scritto:

That has happened to me a couple of times. The Report generation toolkit is based on an older Excel and sometimes calls are changed. Open the VI and fix the call.


Agree. But beware that if the target computer contains an older Excel version than the development computer, the fixed vi may not work there.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 6
(1,201 Views)

Hi all,

I have the same problem. I cannot build my exe due to this broken VI in the Excel report generation toolkit.

I know how to fix the broken VI, but it's not allowing me to save it.

Please advise.

Download All
0 Kudos
Message 5 of 6
(216 Views)

@battler. wrote:

Hi all,

I have the same problem. I cannot build my exe due to this broken VI in the Excel report generation toolkit.

I know how to fix the broken VI, but it's not allowing me to save it.

Please advise.


When you get this error message:

Kyle97330_0-1730159426432.png

It means one of two things.

 

First, it could just be that the file is set to read-only.  Find the current file in explorer, right-click it, select Properties, then uncheck Read-Only.

 

If that's not it, then you legitimately might not have permissions to modify files in "Program Files" with your login.  You might need to speak to your organization's IT department to get permissions to those directories, or you might need to run LabVIEW with admin rights (log in as admin and/or start LabVIEW with the "right-click -> run as administrator" option).

0 Kudos
Message 6 of 6
(182 Views)