07-29-2013 04:38 AM
Error 1502 occurred at AB_Source_VI.lvclass:Close_Reference.vi -> AB_Build.lvclass:Save.vi -> AB_Build.lvclass:Copy_Files.vi -> AB_Application.lvclass:Copy_Files.vi -> AB_EXE.lvclass:Copy_Files.vi -> AB_Build.lvclass:Build.vi -> AB_Application.lvclass:Build.vi -> AB_EXE.lvclass:Build.vi -> AB_Build.lvclass:Build_from_Wizard.vi -> AB_UI_Frmwk_Build.lvclass:Build.vi -> AB_UI_FRAMEWORK.vi -> AB_Item_OnDoProperties.vi -> AB_Item_OnDoProperties.vi.ProxyCaller
Possible reason(s):
LabVIEW: Cannot save a bad VI without its block diagram.
07-31-2013 05:06 PM - edited 07-31-2013 05:15 PM
Me too!
Update: Enable Debug resolved the issue.
08-02-2013 10:47 AM - edited 08-02-2013 10:48 AM
09-25-2014 09:14 AM
I also found that enabling debugging eliminated the error 1502 during build, but then I looked and found a Boolean constant wired to the selector terminal of a True/False case structure. Changing that Boolean constant to a control allowed us to turn debugging back off.
11-08-2021 12:04 PM
I had this occur when trying to trigger an event based on "value change" of a latched Boolean.
11-08-2021 01:31 PM
The latched boolean was not the real issue. The issue ended up being a use of Match Pattern where I only wired String and Regular Expression inputs and only the before match output. Once I wired to handle the offset past match it was able to compile and save.
02-07-2024 01:30 PM
Was running into this error and after combing through various threads found I had a broken VI in one of my libraries that I was not calling anywhere so my application still functioned.
Once I patched that VI up I was able to compile without having to change any of the build settings.
The thing that I'm curious about is that with a broken VI in a library the build still does not work even if I have "Removed unused members of project libraries checked". But I haven't read up on that setting at all so there's probably something I don't know yet.
Also, I am running on LabView 2017.
02-07-2024 05:08 PM
When you say "library", is it an plain library (.lvlib), a library container file (.llb), a class (.lvclass), or something else?
If it's a class, LabVIEW always includes everything even with that check box.
If it's anything else, LabVIEW may try to include it if it thinks it's needed, even if it's not. Having debugging enabled sometimes does that.
02-08-2024 10:43 AM
You know what, it was a class which makes sense why it was working the way it did and I just wasn't paying attention to details.
Thanks!