Precondition with IF file EXIST never ends if the folder doesn't exist.

book

Article ID: 225924

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

In a job a Precondition is called but it keeps looping and never ends. The job status remains 'Waiting Precondition'

The log shows:

2020-04-20 09:14:11 - IF file '/home/uc4/software/user/file.txt' exists (check via <AGENT> and use login <LOGIN>).
2020-04-20 09:14:11 - U02000102 Error when calling the function 'Error checking directory '/home/uc4/software/user/', error code '2(No such file or directory)'.

The job needs to be stopped when folder doesn't exist. There is no other way forward.

Cause

This is not a bug

Environment

Component : AUTOMATION ENGINE

Resolution

This works as expected. Although the behavior is inconvenient, it cannot be changed without breaking the solution for other use cases.