Solution
This error occurs when the contents of the User Data configuration file (
UserData.json) are incorrect or corrupt. Follow the steps below to resolve it.
- On the SystemLink Server PC, navigate to C:\ProgramData\National Instruments\Skyline\Config.
- Open the UserData.json file in any text editor.
- Modify the file so that it resembles the following image.
- Note: it is not necessary to change the value of WhitelistedApiKey. As long as the key name exists, the value can be kept the same.
- Save the file and close it.
- Open a Command Prompt as an administrator.
- Do this by searching "Command Prompt" in the Start Menu. Right-click the application and select Run as administrator.
- Type cd "C:\Program Files\National Instruments\Shared\Skyline" and press Enter.
- This changes the current directory to the location of SystemLink's MongoDB executable.
- Type mongodbconfig.exe -v configureService UserData "C:\ProgramData\National Instruments\Skyline\Config\UserData.json" and press Enter.
- This command forces SystemLink to recreate the UserData.json file with the correct user and password information.
- Once the command completes, launch NI SystemLink Server Configuration and restart the services.