This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Error -125490 in NIPM Log: Error Occurred While Reading Instructions File

Updated May 1, 2023

Reported In

Software

  • Package Manager

Operating System

  • Windows

Issue Details

When I check the log file located in the %localappdata%\National instruments\NI Package Manager\Logs\NIPkgLogs folder, it contains the following error message:
 
Error -125490! An error occurred while reading the package 'ni-ssp-notifier'.\|\|Details:\|An error occurred while reading the instructions file located at 'C:\Users\[username]\AppData\Local\Temp\xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.\|The status code returned by pugixml load_file was 1\|An error occurred in OnTransactionStep for transaction type 'install'.\|\|ErrorContext:\|NIPkg::Agents::FileAgent::Installer::Install: Installing a package\|NIPkg::Agents::FileAgent::PackageReader::ReadPackage: Reading the package.\|NIPkg::Agents::FileAgent::PackageReader::ReadInstructions: Reading the instructions file.
 

Solution

This error occurs when Package Manager tries to install a package that has an instructions file and fails to load the instructions file from the %temp% directory to which it was temporarily extracted. This could happen when the permissions for the %temp% directory have been changed from the default or are corrupted. 

The following steps will determine if your Windows Temp directory permissions have been modified and reset them to their default values if they have been modified: 

  1. Open the Run dialog by using Windows + R keyboard shortcut. Enter %localappdata% and click OK
  2. In the Windows explorer window that opens, right-click on Temp folder and select Properties.
  3. Navigate to the Security tab. 

If there are no permissions assigned to the Temp folder as shown in the image below, then the Temp directory permissions are incorrect and are likely the source of this error.

 


If the above step indicates that the Temp directory permissions are incorrect, then follow the steps below to reset them to the default inherited permissions: 

  1. Open the command prompt as an administrator. 
  2. Run the following command, which will reset the Windows Temp folder permissions to its default permissions: icacls %temp% /q /c /t /reset 
Note: It may display errors like Access is denied for certain folders or files. Those can be safely ignored.
  1. After the permissions have been reset, re-run the NI installer.