Job fails when using Script Variable with {} for Host or Queue in Job object

Document ID : KB000084446
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Error Message :
U0020357 Runtime Error in Object X Line Y: HOST/QUEUE Z does not exist

When using Script Variables with {} for a Host or a Queue in a Job Object, the Job will fail with the above error message.

Notation: {&Var1#,&Var2#,3}

Reference
 
Automic Workload Automation 12.0 Documentation:

 
 
Environment:
OS Version: N/A
Cause:
Cause type:
By design
Root Cause: Hosts and Queues have to be resolved earlier, before the Job is in the Workflow. These values need to be written to Script Variables before the job runs. Otherwise the Script Variables do not exist. So for these Attributes, the above Notation doesn't work
Resolution:
Use a Script before the Job is in the Workflow to get the Host or Queue information and write it to a Script Variable.

Example:

:pset &HWA# = GET_VAR(VARA.TDA.WINAGENTS,&ITEM#,1)

In the Job you would use the Notation &HWA# for the Host or Queue.

Fix Status: No Fix

Fix Version(s):
N/A
Additional Information:
Workaround :
N/A