REST API Executions issue | '400' Bad request error.
search cancel

REST API Executions issue | '400' Bad request error.

book

Article ID: 228252

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation

Issue/Introduction

REST API fails when 'Generate Task at Runtime' is not used on job object.

An error occured - after the request
Response error code: 400 (Response family:CLIENT_ERROR), Exception: {
"code" : 45111,
"error" : "Object to be executed has to have the attribute \"generate at runtime\" set. ",
"details" : "No detail information available."
}:Bad Request

or

An error occurred - after the request
Response error code: 500 (Response family:SERVER_ERROR), Exception:<Map><timestamp>...</timestamp><status>500</status><error>Internal Server Error</error><message>401 : [no body]</message><path>...</path></Map>:Internal Server Error

Environment

Release : 21.x, 24.x

Component : Automic Workload Automation

Resolution

The REST API is designed to only work with 'Generate at runtime'. The reason for this is 'generate at activation time' the execution of the object is declined by the AE REST API since the activation could take time and the request could time out. To say this another way, the REST request cannot wait for the AE processing.