Script function SYS_ACTIVE_COUNT returns 0 when selecting specific Agent and Object type
search cancel

Script function SYS_ACTIVE_COUNT returns 0 when selecting specific Agent and Object type

book

Article ID: 87595

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Error Message :
N/A

SYS_ACTIVE_COUNT fails if a specific agent name has been set and always returns 0.

Investigation
  1. Start a long running job (i.e. Job JOBS.WIN.LONGRUN on Agent VWGSUP15_WS112_X32_03_SYS)
  2. Execute a script containing these lines: 
:SET &COUNT# = SYS_ACTIVE_COUNT(ANY_ALIVE, "JOBS", JOBS.WIN.LONGRUN,,NB030148) 
:P &COUNT# 
  1. In the report the result will be 0 although one Job is running. 

Environment

Release: AUTWAB99000-11.0-Automic Workload Automation-Base Edition
Component:

Cause

Cause type:
Defect
Root Cause: SYS_ACTIVE_COUNT did not work if a specific agent name has been set. SYS_ACTIVE_COUNT always returns 0.

Resolution

This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Fix Status: Released

Fix Version(s):
Automation Engine 12.0.0 - Available
Automation Engine 11.2.3 - Available
Automation Engine 11.1.5 - Available

Additional Information

Workaround :
N/A