Variable picker does not show predefined variables &$LOOP_COUNT# and &$LOOP_INDEX#
book
Article ID: 84454
calendar_today
Updated On:
Products
CA Automic Workload Automation - Automation Engine
Issue/Introduction
Error Message : N/A
The variable picker does not show predefined variables&$LOOP_COUNT# and &$LOOP_INDEX# in the variable picker in the task context of a foreach workflow.
Investigation
1. Display the properties of a task within a FOREACH workflow.
<Please see attached file for image>
2. Add a Pre condition.
<Please see attached file for image>
or a Post condition.
<Please see attached file for image>
3. In the Pre/Post conditions context view, drag and drop a condition,
<Please see attached file for image>
then an action. In the 'Variable' field click on '$x' to view the list of predefined variables:
<Please see attached file for image>
The list then appears. Select 'Object Properties' in the drop-down box:
<Please see attached file for image>
Results
Expected: Variables '&$LOOP_COUNT#' and '&$LOOP_INDEX#' should be in the list.
Actual: They are missing.
Cause
Cause type: Defect Root Cause: Predefined variables &$LOOP_COUNT# and &$LOOP_INDEX# are not shown in the variable picker in the task context of a foreach workflow.
Environment
OS Version: N/A
Resolution
Update to a fix version listed below or a newer version if available.
Fix Status: In Progress
Fix Version(s): Component(s) : Automation Engine & Automic Web Interface
Automation Engine 12.2.0 - Planned release date: 2018-06-19 Automation Engine 12.1.1 - Available Automation Engine 12.0.4 - Available
Additional Information
Workaround : Type in manually the name of the desired variable(s).