ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

C_PERIOD runs all tasks but is ENDED_NOT_OK - aborted end status

book

Article ID: 237372

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation

Issue/Introduction

When running cyclical tasks (C_PERIOD objects), there are some that end with ENDED_NOT_OK status.  All their child tasks run and the end time appears to be midnight or period turnaround for the object.

Cause

Behavior as designed

Environment

Release : 12.3.7

Component :

Resolution

This status of ENDED_NOT_OK is caused by a return code of 1 or 2 for the C_PERIOD object.  See the documentation here https://docs.automic.com/documentation/webhelp/english/ALL/components/DOCU/21.0/Automic%20Automation%20Guides/Content/AWA/Executions/obj_ExecutingRecursive.htm#link3

The period container starts tasks according to the settings specified on the Execution <object name> dialog. If it has ended, it waits until all tasks have finished and removes itself from the Tasks window. To see the details on how the tasks have ended, open the Executions lists (see Execution Data), where the following error indicators are provided:

  • 0: All tasks ended successfully.
  • 1: Some task ended abnormally
  • 2: No task ended successfully

The log file of C_PERIOD tasks changes every day when the time frame starts and when the settings are changed. The error indicator is reset when the log file changes.