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

Error in Remove Account for a REST connector

nitishdas
New Contributor
New Contributor

After the one click disable is selected for the user and the remove account task is getting generated but the task is not getting completed successfully. Getting the below error:

{"auditDetails":{"call1":[{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"},{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"},{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"},{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}]},"call1":{"headers":null,"message":"","statusCode":null,"description":null,"status":"Failed"}}

 

6 REPLIES 6

SumathiSomala
All-Star
All-Star

@nitishdas Did you add remove account JSON at connection level?

 

Regards,
Sumathi Somala
If this reply answered your question, please Accept As Solution and give Kudos.

Hi @SumathiSomala , yeah it added at connection level.

rushikeshvartak
All-Star
All-Star
  • Please share logs in file 
  • share JSON from connection.
  • Does it works from postman / ARS ?

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

Hi @rushikeshvartak ,

The remove account JSON at connection:

{
"accountIdPath":"call1.message.results.sqp_id",
"call":[
{
"name":"call1",
"connection":"userAuth",
"url":" https://removed.net/api/v2/passport/user/update ",
"httpMethod":"PUT",
"httpParams":"{\"sqp_id\": \"${account.accountID}\",\"status\": \"Inactive\"}",
"httpHeaders":{
"Authorization":"${access_token}"
},
"httpContentType":"application/json",
"successResponses":[

],
"unsuccessResponses":{
"statusCode":[
400,
401,
404,
405,
500
]
}
}
]
}

[This message has been edited by moderator to mask url]

Please add success response 


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

stalluri
Regular Contributor II
Regular Contributor II

@nitishdas Can you try the below Json.

{
"accountIdPath": "call1.message.results.sqp_id",
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": " https://removed.net/api/v2/passport/user/update ",
"httpMethod": "PUT",
"httpParams": "{\"sqp_id\": \"${account.accountID}\",\"status\": \"Inactive\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"successResponses": [
200,
201,
204,
205
],
"unsuccessResponses": {
"statusCode": [
400,
401,
404,
405,
500
]
}
}
]
}


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