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

REST importaccountentJSON: nullresponse from target

ekorh
Regular Contributor
Regular Contributor

Hi,

We are trying to configure importaccountentJSON for REST connector. However, we get stopped by this kind of error constantly. We are not able to import any account information. What could cause these? Error messages, API response structure and our importaccountjson examples below.

Error

Error WebService call failed After retrying 1 times with responseStatusCode null
Error while getting Account Import Response WebService call failed with responseStatusCode null

API example response:
[{"FullName":"Firstname Lastname","Email":"email@email.com","UPN":null,"EmployeeNumber":"","PhoneNumber":null,"EmployerNumber":null,"UserRoles":["Administrator","Controller"],"Managers":[],"ReceiptManagers":[],"CustomFields":[],"Department":{"Name":"Sales","VatNumber":"","Address":"","Number":""},"HomeAddress":{"Street":"","City":"","PostalCode":"","Country":"","State":"","StateCode":"","County":"","HouseNumber":""}}]

Our call:

{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://xxx/api/xxx ",
"httpHeaders": {
"X-Access-Token": "xxx",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "Email~#~char",
"name": "Email~#~char",
"displayName": "FullName~#~char"
}
}
}
}
}

 

If we define a certain piece of information to retrieve from target, e.g. email following error appears

Error In Getting Response In pullObjectsByRestNullResponseFromTarget


Thanks already in advance!

12 REPLIES 12

rushikeshvartak
All-Star
All-Star
"httpHeaders": {
        "Authorization": "${access_token}"
      },

Authorization is missing 

Refer syntax : https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide%C2%A0 


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

Hi,

 

We have to send the token defined as 'X-Access-Token' in the header of the GET users request. When we tried with format "Authorization":"xxxx", the target system was receiving a wrong request. The token is predefined so we don't really need to fetch it in the connection json at all. 

Does Entitlement Import working ?


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

If I have understood the customer correctly, there are no entitlements in test data

I suspect your connection is not working can you check connectionJson if its working or not


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

As I said, the connectionJSON is more of a dummy one for us since we have a static token and don't need to authenticate before sending the GET users request.

Does it returning success ? it should return success 200 else account import may fail


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

In the logs I can see responseStatuscode::200 but the job is still failing with "Error - to Import Data correctly: Failed
url-https://xxx/api/xxx with Error Message-null"

Please provide postman screenshot of working api with body params


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

Edited some fields that might have customer info.

forumrest.png

I see issue is your data start with [ ]


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

Manu269
All-Star
All-Star

In case the api executes sometime and starts getting failed you can try following configuration : 

"apiRateLimitConfig": {"retryAfterCalls": 50000,"retryWaitSeconds": 60}

For details around the same :

https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide%C2%A0

Check for retryAfterCalls

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