When running pdm_status, pdm_load, or one of many Service Desk Manager-related commands, it's possible to see the error message "Variable NX_KEY wasn't in the environment". When this message is displayed, pdm_ commands will not function, some Service Desk Manager functionality may stop working, and the Service Desk Manager services may fail to start from a stopped state with a Windows "Error 1053" generic service failure message.
What is the meaning of the "Variable NX_KEY wasn't in the environment" message, and how can it be fixed?
This message may appear in any Service Desk Manager version.
As Service Desk Manager keeps most of its' environment variables and settings in memory and other live working locations, any changes to nx.env while the system is running may not be immediately reflected in the environment - this is why a missing, renamed, or corrupted nx.env file may not immediately cause system-wide issues, but would cause trouble once services are trying to start up again.
After making changes to nx.env intentionally (e.g. changing a setting in Options Manager in the web interface or through the pdm_options_manager command), restarting the Service Desk Manager services is usually necessary. Manually editing the nx.env file is generally discouraged.