Import per Rest API of Event object with condition check "Used Space" leads to an error
search cancel

Import per Rest API of Event object with condition check "Used Space" leads to an error

book

Article ID: 381462

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

A Rest API call against a 21.0.x system that uses the POST method to import an Event object with the following json text in the body

{
     "data": {
        "evnt": {
            "metadata": {
                "version": "21.0.11"
            },
            "general_attributes": {
                "type": "EVNT",
                "name": "EVNT.FILE.TEST",
                "max_parallel_action": 1,
                "mrt_time": "000000",
                "inherit_output_filter": "N",
                "platform": "UNIX",
                "queue": "CLIENT_QUEUE",
                "sub_type": "FT",
                "auto_deactivation": "A",
                "minimum_ae_version": "11.2"
            },
            "rollback_definitions": {},
            "event_attributes": {
                "type": "FT",
                "repeat_type": "R",
                "time_period": "0010",
                "sub_type": "PD",
                "destination_agent": "LINUX01",
                "destination_login": "LOGIN.TEST",
                "path": "/tmp",
                "operator": "L",
                "check_value": 101,
                "unit": 3,
                "platform": "UNIX"
            }
        }
    },
    "path": "PLAYGROUND/TEST0001",
    "client": 22,
    "hasmore": false
}

will lead to the following response

[
    {
        "code": 45431,
        "error": "Invalid value. Allowed values: 'EY, EC, EA, O4, O3, A1, A2, A3, S1, PC, PU, FF, FZ'.",
        "path": "sub_type",
        "invalid_value": "PD"
    }
]

Sub_type 'PD' stands for the condition check 'Used Space'

 

Environment

Release 21.x

Component: Automic Workload Automation

Sub-Component: Automic Automation Engine

Cause

This is a defect of the Automation Engine 21.x, as the problem was not ocurring on AE 24.x

Resolution

Update to a fix version listed below or a newer version if available.

Fix version:
Component(s): Automation Engine
Automation.Engine 21.0.13 - Available

 

Additional Information

Bug Ticket ID: DE155060

Bug Ticket Title: Error when importing an AE-objects of certain type

Defect Public Description: A problem has been fixed where the import of certain object types was not possible.

Added only the 'PD' value as accepted value into field subtype of EventAttributes to pass the validation.