We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Getting success response but task not getting completed

Saviynt_RK
New Contributor
New Contributor

As per the logs, I am getting 200 OK response after API called but task remained in pending with failed state. When check the provisioning comments, it shows status code as null with status failed

API Response in log:
Webservice API Response: [headers:[Date: Tue, 02 Jan 2024 08:31:36 GMT, Content-Type: application/json, Content-Length: 47, Connection: keep-alive, x-amzn-RequestId: 3f262f78-8eb6-4127-953a-88b593a5202c, X-Amzn-Trace-Id: root=1-6593c9cc-56c1b78c14e136561f1139ea;sampled=0;lineage=9ef67de8:0], responseText:{\"id\": \"184670\", \"resourceType\": \"AgencyAdmin\"}, cookies:[], statusCode:200]

Response as per Provisioning comments in Task:
{"call1":{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}}

JSON:
{
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://xxxxx/v1/admins/${account.accountID}",
"httpMethod": "PUT",
"httpParams": "{\"active\":true,\"managingOrganization\":{\"display\":\"9990\"},\"resourceType\": \"AgencyAdmin\",\"name\":[{\"family\":\"${account.name}\",\"given\":[\"${account.name}\"],\"text\":\"${account.name} ${account.name}\",\"use\":\"official\"}],\"meta\":{\"tag\":[{\"code\":\"roles\",\"display\":[\"Agency Admin\"]},{\"code\":\"externalId\",\"display\":\"${account.name}-9990\"},{\"code\":\"payRate\",\"display\":null},{\"code\":\"payMethod\",\"display\":null},{\"code\":\"clientLocationIds\",\"display\":[]},{\"code\":\"caregiverLocationIds\",\"display\":[]}]},\"telecom\":[{\"system\":\"email\",\"use\":\"work\",\"value\":\"${account.name.concat('@abc.com')}\"}]}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": {
"statusCode": [
200
]
}
}
]
}

There are multiple error in the logs but unable to find root cause some of them are as below. Attached is the full logs

ecm-worker 2024-01-02T08:33:38.687+00:00 {log":"groovy.lang.MissingPropertyException: No such property: display for class: java.lang.String\n" stream:"stdout" time:"2024-01-02T08:33:38.32934181Z"}"

ecm-worker 2024-01-02T08:33:38.687+00:00 {log":"2024-01-02 08:33:38 335 [quartzScheduler_Worker-7] DEBUG rest.RestProvisioningService - Exception while iterating Http Map instance\n" stream:"stdout" time:"2024-01-02T08:33:38.336039427Z"}" ecm-worker 2024-01-02T08:33:38.687+00:00 {log":"groovy.lang.GroovyRuntimeException: Could not find matching constructor for: java.lang.String(java.util.ArrayList)\n" stream:"stdout" time:"2024-01-02T08:33:38.336061576Z"}"

2 REPLIES 2

rushikeshvartak
All-Star
All-Star

This is issue with display  keyword.

Please share postman response and body parameters


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

Manu269
All-Star
All-Star

The variables which is being passed in json, did you validate the same via postman?

 

Regards
Manish Kumar
If the response answered your query, please Accept As Solution and Kudos
.