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

book

Article ID: 84446

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine AUTOMIC WORKLOAD AUTOMATION

Issue/Introduction

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:

 
 

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

Environment

OS Version: N/A

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