Store Object files are not always removed from agent's files system after execution
search cancel

Store Object files are not always removed from agent's files system after execution

book

Article ID: 204731

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

When using the Store Object in conjunction with the function :ATTACH_RES it can happen that (some) files transferred to the Agent's files system are not removed after execution.

This was observed in cases where an archive files (tar.gz) was transferred and unarchived.

 

The function :ATTACH_RES transfers files in the related Store object to the Agent.

For instance, UC4 script statement: ':ATTCH_RES STORE.MYFILES, '*', T' moves all files in Store object STORE.MYFILES to

C:\<UC4>\Agents\<AGENT_NAME>\Resources\<client_xxxx>\<runID_xxxxxxxxxx>\

 

In most cases these files are removed after execution of the job finishes. When unzipping files the original files is sometimes not removed.

Environment

Release : 12.3

Component : AUTOMATION ENGINE

Cause

Unknown

Resolution

Workaround:

This behavior could be prevent by unzipping the files in a subfolder created for that purpose and removing the entire subfolder before finishing the script.

For instance with 'rmdir &$AGENT_RESOURCES_TASK#subfolder /s /q'

In that case also the original file is automatically removed.