The System Variables &LOOP_COUNT and &LOOP_INDEX are not available for ForEach Workflows in post conditions as predefined variables.
Article ID: 87889
CA Automic Workload Automation - Automation EngineAUTOMIC WORKLOAD AUTOMATION
Error Message : 2016-01-11 16:12:58 - U00021719 Syntaxfehler in Objekt 'JAC#KCH.LOOP_COUNT.SCRI', Zeile '00000'. 'U01001308 Variable '$LOOP_COUNT#' has not yet been defined.'.
The predefined variables &$LOOP_COUNT# and &$LOOP_INDEX# are not generated to the pre- and post-conditions of a subtask in a ForEach workflow. Usage of those variables results in an error during condition-check, see error message.