Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

ars task error

Growit
New Contributor
New Contributor

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"}}

 

13 REPLIES 13

NM
Esteemed Contributor
Esteemed Contributor

@Growit can you share more details?

Update account json, logs when you try to provision the task, application name 

To debug further.


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

rushikeshvartak
All-Star
All-Star
  • Please share JSON
  • also confirm if it works from postman ?
  • 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. 

     

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

stalluri
Valued Contributor II
Valued Contributor II

@Growit 
Can you please share a few more details?

  • Application you are using.
  • Share the update account Json.
  • Logs in the text format.

    Please mask all the Sensitive information when sharing it here.

 


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.

Growit
New Contributor
New Contributor

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

NM
Esteemed Contributor
Esteemed Contributor

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?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

  • What is difference between 2 users w.r.t. attributes used in json

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Esteemed Contributor
Esteemed Contributor

@Growit could be related to this hyphen 

\"${user.customproperty47}-${user.customproperty19}-${user.customproperty21}\",


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

Amit_Malik
Valued Contributor II
Valued Contributor II

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

 

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

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

Validate in postman


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

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 

Test above api  used in json

https://learning.postman.com/docs/getting-started/overview/


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

stalluri
Valued Contributor II
Valued Contributor II

@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.



Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.