Variables declared from the "Variables" tab need to respect a certain order
book
Article ID: 216389
calendar_today
Updated On:
Products
CA Automic One Automation
Issue/Introduction
It looks like the order in which you defined the variables in the "Variable" tab matters.
How to reproduce :
Create a Job
Make sure that the variables are defined in the same order as below :
$A# = &C#-1
$B# = &C#-2
$C# = UC4PROD
$D# = &C#4
Execute the Job
Check the report
Expected behavior : As variables A & B are based on variable C (which is defined as "UC4PRD") we were expecting the report to look like : 2021-04-08 13:14:12 - U00020408 UC4PROD-1 2021-04-08 13:14:12 - U00020408 UC4PROD-2 2021-04-08 13:14:12 - U00020408 UC4PROD 2021-04-08 13:14:12 - U00020408 UC4PROD-4
Actual behavior : A & B are set as "-1" and "-2", indicating that it could not resolve "C" at that time The report shows : 2021-04-08 13:14:12 - U00020408 -1 2021-04-08 13:14:12 - U00020408 -2 2021-04-08 13:14:12 - U00020408 UC4PROD 2021-04-08 13:14:12 - U00020408 UC4PROD-4
Environment
Release : 12.3
Component : AUTOMATION ENGINE
Cause
The order is important.
C is not resolved because it's declared AFTER A & B.