How Do I Disconnect a VI from a Deleted Owning Library?

Updated Aug 16, 2018

Reported In

Software

  • LabVIEW

Issue Details

When I try to open my VI from the Project Explorer, I receive the following error:

"Library.lvlib:Test.vi" is at the expected path but is part of a library. "Library.lvlib:Test.vi" will be opened but it will be removed from the project.

Also, if I open the VI directly from Windows, my VI has a broken run arrow. Opening the Error List in the VI, I see the error:

This VI claims to be a part of a library, but that library does not claim to own this VI

If I have deleted this owning library from my computer, how can I continue using the VI?

Solution

Deleting a LabVIEW library that has VIs being used in a project can cause linking errors. The library will still be listed as a dependency of the project but will have a warning associated with it, as seen below:
 

Since you cannot delete the library file or disconnect the VI directly from the dependencies, you will have to first remove the owned VI from the project and then disconnect the VI from the library. Complete the following steps to fully remove the library from the project and disconnect it from your VI:
  1. Open the owned VI from the Project Explorer by double-clicking it.
  2. If LabVIEW attempts to locate the deleted library, select Ignore Item.
  3. When prompted with the following dialog, select Remove.

Note: If your VI is in an auto-populating folder it may be re-added to the project automatically. Right click the auto-populating folder and select Stop Auto-populating to prevent this.
 
  1. Navigate to and open the owned VI
  2. With the owned VI open, navigate to File » Disconnect From Library
  1. Save and close the VI.
  2. Add the VI back to the project.
    1. Right-click My Computer in the Project Explorer and navigate to Add » File.
    2. Browse to the location of your VI.
    3. Select your VI and click Add File.

Additional Information

If you have many VIs and would like to perform this process programmatically, use a VI Invoke Node with the method "DisconnectFromLibrary". 

WAS THIS ARTICLE HELPFUL?

Not Helpful