Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/02/2024 08:52 PM
Tasks are getting failed in completed tasks with below error , can ayone one pls help on the permanent solution on this issue as we are daily getting below errors and we need to provide permanent solution for this
TAsk type :update account
{"auditDetails":{"call1":[{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"},{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"}]},"call1":{"headers":null,"message":{"results":{"jsonResponse":[{"errors":[{"type":"Validation Failed","message":"Invalid id.","field":null}],"iserror":"true"}]}},"statusCode":417,"description":null,"status":"Failed"}} |
09/02/2024 08:59 PM
@Growit can you share more details?
Update account json, logs when you try to provision the task, application name
To debug further.
09/02/2024 09:00 PM
The HTTP error code 417, or "Expectation Failed", indicates that the server could not meet the expectation specified in the request's Expect header. This error can occur when the server doesn't support expectations or is unable to fulfill the client's expectations.
09/02/2024 09:05 PM
@Growit
Can you please share a few more details?
09/02/2024 09:09 PM
Hi,
Below is the update account Json.
{
"call": [{
"name": "call1",
"connection": "ExpertusOne",
"url": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"httpParams": "{\"first_name\":\"${user.firstname}\",\"last_name\":\"${user.lastname}\",\"user_name\":\"${user.employeeid}\",\"status\":\"${user.customproperty23 == 'Active' || user.customproperty23 == 1 ? 'cre_usr_sts_atv' : 'cre_usr_sts_itv'}\",\"returntype\":\"json\",\"apiname\":\"UserUpdationAPIV2\",\"email\":\"${user?.email ? user.email : user.firstname.replace(' ','') + '.' + user.lastname.replace(' ','') + '.' + user.employeeid + '@bluecollar.pg.com'}\",\"userid\":\"311863\",\"id\":\"${account.customproperty5}\",\"org_name\": \"${user.customproperty47}-${user.customproperty19}-${user.customproperty21}\",\"addr1\":\"${user.street}\",\"city\":\"${user.city}\",\"country\":\"${user.customproperty11}\",\"is_manager\":\"${if(user?.customproperty25=='true'){'Y'} else {'N'}}\",\"zip\":\"${user.regioncode}\",\"employee_no\":\"${user.employeeid}\",\"empltype\":\"${user.customproperty49} - ${user.customproperty43}\",\"manager_username\":\"${user.customproperty46}\",\"jobrole\":\"${user.customproperty45}\",\"jobtitle\":\"${user.customproperty45}\",\"usertype\":\"${user.customproperty42}\",\"hire_date\":\"${user.customproperty41.replace('-','/')}\",\"c_cost_center\":\"${user.costcenter}\",\"c_company_name\":\"${user.companyname}\"}}",
"httpMethod": "POST",
"httpHeaders": {
"Authorization": "${access_token}",
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"successResponses": {
"statusCode": [
200
]
},
"unsuccessResponses": {
"statusCode": [
400,
401,
403,
417
]
}
}]
}
Application Name: My learning account.
It is not failing for all users. Only failing for few users.
Thanks
09/02/2024 09:23 PM - edited 09/02/2024 10:48 PM
Hi @Growit , i could see you have not applied null check if in case the property/field is null..
i believe this might be causing the issue as it is only affecting few users.
can you share provisioning logs?
09/02/2024 09:33 PM
09/07/2024 09:32 PM
@Growit could be related to this hyphen
\"${user.customproperty47}-${user.customproperty19}-${user.customproperty21}\",
09/02/2024 10:49 PM - edited 09/02/2024 10:49 PM
Hi @Growit ,
This looks like a data issue for some users. You need to check the attribute values and see which one causing issue.
Based on that, you either need to change things in json or change data at source
09/07/2024 01:50 AM
As said by you the attribute values, all looks fine . I'm not getting wether am missing anything to check can you pls help on this what makes the cause of this errors
09/07/2024 04:59 AM
Validate in postman
09/07/2024 11:31 AM
Ho to check and what I need to check using post man can you pls share steps what details need to be checked in postman
09/07/2024 01:08 PM
Test above api used in json
https://learning.postman.com/docs/getting-started/overview/
09/07/2024 04:43 PM
@Growit
Is it happening for all users? If yes -> \"userid\":\"311863\", I can see you hard coded userid.
If No -> Can you test it from postman and share the Curl command.