Hi,
Could you please explain the issue bit more on the package deployment. Which server is it deployed? is the same server where environment variable are available? I suggest to check the variables from Computer properties. Check if the variable is case sensitive, check for any blank space issues.
Regards,
Vijay