Click HERE to see how Saviynt Intelligence is transforming the industry. |
03/08/2024 02:29 AM
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
Solved! Go to Solution.
03/08/2024 02:42 AM
@Jaya Please share the JSON you are using.
03/10/2024 06:28 AM
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]}}]}
03/10/2024 08:16 AM
may i know when call processing all values passing correct task level?
first,last,email,isactive,accountname?
03/11/2024 11:13 AM
Hi @Raghu and @rushikeshvartak
Please find payload for update account task -
response status :200
@manu - please see response via postman-
Guys please check & suggest what is wrong here. Thanks.
03/11/2024 07:51 PM
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
]
}
}
]
}
03/10/2024 11:07 AM
Please share response of api
03/10/2024 10:45 PM
@Jaya try performing the same via Postman once and check the status code.
Try mapping the same once.
04/03/2024 10:54 PM
Hi Team,
We get the 200 ok status code both via POSTMAN & in Svaiynt logs.
Still the tasks are not getting closed, please guide.
Thanks,
Sitarasmi
04/03/2024 11:24 PM
Please share logs in file
04/08/2024 08:07 AM
04/08/2024 07:14 PM
You seems on v5.5x version , Please check with EIC version
04/08/2024 11:01 PM
Hi Rushikesh,
Are you saying this issue cant be fixed with non EIC version ?
Is there any specific reason , kindly clarify.
Thanks,
Sitarasmi
04/09/2024 10:47 AM
This seems like code issue which have fixed with latest version
04/09/2024 10:45 PM
Hi Rushikesh,
The New Account & Add access tasks are getting closed.
Problem is only with Update Account & Disable Account task.
Thanks,
Sitarasmi
04/09/2024 10:58 PM
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
]
}
}
]
}
04/10/2024 05:56 AM - edited 04/10/2024 08:33 AM
Thanks.
04/10/2024 08:32 AM
Hi Rushikesh,
Thank you very much for your continuous support, this is resolved now.
Thanks,
Sitarasmi
04/10/2024 07:35 PM
Please click the 'Accept As Solution' button on the reply (or replies) that best answered your original question.