Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Getting error in closing task

Jaya
Regular Contributor II
Regular Contributor II

Hi Team,

We are facing a issue in REST connection update account & Disable account tasks.

Whenever task is generated and wsretry job is completed, it is getting updated at target application but those task aren't moving to completed task.

Please suggest what could be the issue.

Error msg - 

2024-02-08/18:26:18.696 [{}] [quartzScheduler_Worker-1]  ERROR rest.RestProvisioningService - Error Updating the User from REST - Null key for a Map not allowed in JSON (use a converting NullKeySerializer?) ---update account error

Thanks
Jaya Karothia
18 REPLIES 18

naveenss
All-Star
All-Star

@Jaya Please share the JSON you are using. 

 

Regards,
Naveen Sakleshpur
If this reply answered your question, please click the Accept As Solution button to help future users who may have a similar problem.

Jaya
Regular Contributor II
Regular Contributor II

Update account Json-

{"call":[{"connection":"userAuth","url":"https://xxx.com/user/users/${account.accountID}","httpMethod":"PUT","httpContentType":"application/json","httpParams":"{\"first\":\"${user.firstname}\",\"last\":\"${user.lastname}\",\"email\":\"${user.email}\",\"isActive\":\"true\"}","httpHeaders":{"API-Token":"xxx"},"successResponses":{"statusCode":[200]}}]}

 

Remove account Json-

{"call":[{"connection":"userAuth","url":"xxx.com/user","httpMethod":"DELETEWITHBODY","httpContentType":"application/json","httpParams":"{\"email\":\"${account.name}\"}","httpHeaders":{"API-Token":"xxx"},"successResponses":{"statusCode":[200]}}]}

 

Thanks
Jaya Karothia

may i know when call processing all values passing correct  task level?

first,last,email,isactive,accountname?


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

Jaya
Regular Contributor II
Regular Contributor II

Hi @Raghu and @rushikeshvartak 

Please find payload for update account task -

Jaya_0-1710180490510.png

response status :200

Jaya_1-1710180502404.png

@manu - please see response via postman-

Jaya_2-1710180762274.png

Guys please check & suggest what is wrong here. Thanks.

 

Thanks
Jaya Karothia

Use below Json

Update account Json-

 

{
"call": [
{
"connection": "userAuth",
"url": "https://xxx.com/user/users/${account.accountID}",
"httpMethod": "PUT",
"httpContentType": "application/json",
"httpParams": "{\"first\":\"${user.firstname}\",\"last\":\"${user.lastname}\",\"email\":\"${user.email}\",\"isActive\":\"true\"}",
"httpHeaders": {
"API-Token": "xxx",
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": [
200
]
}
}
]
}

 

Remove Account

 

{
"call": [
{
"connection": "userAuth",
"url": "xxx.com/user",
"httpMethod": "DELETEWITHBODY",
"httpContentType": "application/json",
"httpParams": "{\"email\":\"${account.name}\"}",
"httpHeaders": {
"API-Token": "xxx",
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": [
200
]
}
}
]
}


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

Please share response of api 

  • enable showlogs =true in connector
  • check task comments section 
  • or check logs

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

Manu269
All-Star
All-Star

@Jaya try performing the same via Postman once and check the status code.

Try mapping the same once.

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

Sitarasmi
Regular Contributor
Regular Contributor

Hi Team,

We get the 200 ok status code both via POSTMAN & in Svaiynt logs.
Still the tasks are not getting closed, please guide.

Sitarasmi_0-1712210024318.png

 

Thanks,

Sitarasmi

Please share logs in file


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

Hi Team,

PFA application log - task id - 55100 which is in pending state.

Thanks,

Sitarasmi

You seems on v5.5x version , Please check with EIC version


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

Sitarasmi
Regular Contributor
Regular Contributor

Hi Rushikesh,

Are you saying this issue cant be fixed with non EIC version ?

Is there any specific reason , kindly clarify.

Thanks,

Sitarasmi

This seems like code issue which have fixed with latest version


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

Hi Rushikesh,

The New Account & Add access tasks are getting closed.

Problem is only with Update Account & Disable Account task.

Thanks,

Sitarasmi

 

Update account Json-

 

{
"call": [
{
"connection": "userAuth",

"name": "call1",
"url": "https://xxx.com/user/users/${account.accountID}",
"httpMethod": "PUT",
"httpContentType": "application/json",
"httpParams": "{\"first\":\"${user.firstname}\",\"last\":\"${user.lastname}\",\"email\":\"${user.email}\",\"isActive\":\"true\"}",
"httpHeaders": {
"API-Token": "xxx",
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": [
200
]
}
}
]
}

 

Remove Account

 

{
"call": [
{
"connection": "userAuth",

"name": "call1",
"url": "xxx.com/user",
"httpMethod": "DELETEWITHBODY",
"httpContentType": "application/json",
"httpParams": "{\"email\":\"${account.name}\"}",
"httpHeaders": {
"API-Token": "xxx",
"Authorization": "${access_token}"
},
"successResponses": {
"statusCode": [
200
]
}
}
]
}


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

Thanks.

Hi Rushikesh,

Thank you very much for your continuous support, this is resolved now.

Thanks,

Sitarasmi

Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question.


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