Windows Agent delivers incorrect return code for GET_FILESYSTEM and PATH_FILE_COUNT

book

Article ID: 129019

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

The script function GET_FILESYSTEM in combination with the File System Value 'PATH_FILE_COUNT' 
returns '1' instead of the previous and documented value of '0', when the folder defined does not exist. 
With Windows Agent version 12.2.0, it worked correctly - returned '0', 
with Windows Agent version 12.2.1, it returns the value '1'.

Example: 

:SET &TAR = GET_FILESYSTEM(WIN_AGE,'C:\Test1\*',PATH_FILE_COUNT,"STD_WINDOWS") 
:P ******************************************** 
:P &TAR 
:P ***************************************** 

Windows Agent Version 12.2.0: 
2018-11-29 15:46:57 - U00020792 Runtime error in object 'SCRI.SMP.02', line '00001': The value of parameter '4' is too long. The allowed length is '8'. 
2018-11-29 15:46:57 - U00020408 ******************************************** 
2018-11-29 15:46:57 - U00020408 0000000000000000 
2018-11-29 15:46:57 - U00020408 ***************************************** 

Windows Agent Version 12.2.1: 
2018-11-30 10:59:00 - U00020792 Runtime error in object 'SCRI.SMP.02', line '00001': The value of parameter '4' is too long. The allowed length is '8'. 
2018-11-30 10:59:00 - U00020408 ******************************************** 
2018-11-30 10:59:00 - U00020408 0000000000000001 
2018-11-30 10:59:00 - U00020408 ***************************************** 

Environment

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

Resolution

To obtain the correction for this issue please install one of the following versions or higher:

  • Automation Engine 12.2.2 - Available
  • Automation Engine 12.3.0 - Available


Correction Description:
A problem has been fixed where a lot of error messages and return codes got lost in the Windows, Unix, and AS/400 Agents.