Showing results for 
Search instead for 
Did you mean: 

Create an executable fails at the second attempt


I am using labview 23.3f0 (32bits) to create an executable to be used on another computer. The creation of the executable works fine at the first time after opening labview but fails afterwards and I need to restart labview.
The error message tells that it cannot write on an existing file. This file was copied here by labview at the previous build but I don't understand why it cannot overwrite it.




0 Kudos
Message 1 of 6

A few things you could try:


Right-click the build spec and select "clean"

In the project window, try a tools...advanced...clear compiled object cache.


What are your settings in the "Advanced" and "additional exclusions" of the build spec?

0 Kudos
Message 2 of 6

What are the attributes of that file it fails on? It may be write protected or something else and then the initial copy operation works fine but it can’t remove the file afterwards before starting a new build.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 6

thank you for this idea.
I tried to clean from the build spec but an error appeared :

L'erreur 8 s'est produite à : C:\Users\admin-local\Documents\Yves\CASTOR v2.0\builds\CASTOR_XDURS\data\tango_binding.dll

finally, this is the same error than previously. I don't understand why labview does not want to overwrite it.


I tried your second idea, cleaned the compiled object cache but still, Labview does not want to overwrite it.

0 Kudos
Message 4 of 6

thank you Rolf.


but it is weird, the attribute of the file is not protected, that is why labview can overwrite it at the first build after opening labview. But strangely, Labview keeps "in mind" that it cannot overwrite it for a second build.

0 Kudos
Message 5 of 6

I can't read the error message but this looks very similar to one I have seen on older versions of LabVIEW.  Check my solution in the post below.  I see similar references to AB_EXE.lvclass.


Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 6 of 6