Error -125024 When Installing a Package From Remote Location Using NI Package Manager

Updated Jan 26, 2026

Reported In

Software

  • Package Manager

Operating System

  • Windows

Issue Details

I am presenting issues when building packages with NI Package Manager and nipkg.exe. Both are presenting the error "-125024: Error '2' occurred while opening file '\\?\UNC\Package_name.nipkg (2)'. Error details: No such file or directory File: source\nipkg_client\pkgrepo\CachingLocalStrategy.cpp"

The file is in a remote location, and I can confirm that it exist on the specified location and I can manually install it.

 

Solution

On the error message -125024: Error '2' occurred while opening file '\\?\UNC\Package_name.nipkg (2), the error (2) in Windows is related to a file not being found.

If the package is found in a remote location please make sure that the package exists and it is accessible from the PC that is trying to install it.  For explanation purposes, the file is going to be stored in this remote location: \\ABC.domainexample.com\D\package feeds\Package_name.nipkg. ABC is the server name under domainexample.com local domain.

  1. Run Package Manager or the command line with administrator privileges.
  2. Make sure the package is on the corresponding feed, this can be done in the command line:
    1. Change file directory: 
      cd "C:\Program Files\National Instruments\NI Package Manager"

       

    2. List the packages using: 
      nipkg.exe list
    3. Verify that the package you are trying to install is being listed
    4. Install the package: 
      nipkg.exe install Package_name
       

At this point, if the error is being present, having confirmed that the package exist and that the Package_name is listed in the feed, please address the part of the error message related to the file location \\?\\UNC\. This means that the Domain Name System (DNS) was not able to solve the suffix. The suffix domainexample.com must be configured in Windows so the file can be found by system.

This is done by configuring the domain suffix search list on the Domain Name System Clients to add the domainexample.com so the system can look up this suffix for the failing connections on the NI Package Manager.

Please:

1. Go to Control Panel>>Network and Internet>> Network and Sharing center>> Change Adapter Settings and select the corresponding ethernet adapter.

2. Right click on the Ethernet adapter>> Properties>> Internet Protocol Version 4>> Properties>> Advanced>>DNS>> Append these DNS suffixes>>Add

3. Add domainexample.com to the list