Description :When necessary to schedule the Autopatch on a lot of Windows nodes, a Uproc was developped to perfor, unfortunately the uproc was failing, with this error on the setup log:
Unable to read instance configuration variable UNI_INST_CLUSTER or Bad environment: U_TMP_PATH undefined
Environment
OS: Windows
Cause
Cause type: Configuration Root Cause: The issue was due to the fact that the u_batch does not reload the environment by default.
Resolution
The solution is adding a variable in the Uproc script so that the u_batch reloaded the environment.
Simply add this line at the beginning of the Uproc script: