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 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 [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.
Release : 20.2
Component : CA DOI Foundations
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
For the actions to complete successfully, the Generate Task value needs to be set to 'Runtime' as shown below
More details on Generate Task at Runtime from Automic documentation: