Recommended actions 400 error

book

Article ID: 220672

calendar_today

Updated On:

Products

DX Operational Intelligence CA Automic Workload Automation - Automation Engine

Issue/Introduction

 
 

When trying to run a recommended Automic action from an alarm, a number of actions fail with a 400 error

The 400 request can be seen by reviewing both the doi-ae-integration log

     [IntgegrationServiceEndpoint,http-nio-8080-exec-4] INFO   - TID[0] Failed to execute/submit automic job. Error Message: HTTP request execution failed for URI       [http://xxx.xxx.xxx.xxx:8088/ae/api/v1/0/executions]; nested exception is org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request

     [CustomRestExceptionHandler,http-nio-8080-exec-4] INFO   - TID[0] [801014:Bad request received for calling the API]

as well as Automic logs,

     U00045099 The server replied with following status: '400'

     U00045098 Method 'POST', URL: 'http://xxx.xxx.xxx.xxx:8088/ae/api/v1/0/executions'

 

A few of the actions do run with success but there is no obvious indication of why some actions work and some fail.

Cause

 
 

It was determined that this depends on the Automic workflow configuration.

In the attributes of the workflow, for actions that were failing, the Generate Task value was set to Activation Time

Environment

Release : 20.2

Component : CA DOI Foundations

Resolution

 
 

For the actions to complete successfully, the Generate Task value needs to be set to 'Runtime' as shown below

Additional Information

 

More details on Generate Task at Runtime from Automic documentation:

https://docs.automic.com/documentation/webhelp/english/AA/12.3/DOCU/12.3/Automic%20Automation%20Guides/help.htm#REST_API/AE_REST_API_GeneralInfo.htm#link8

Attachments