Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/20/2022 06:53 AM
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 pullObjectsByRest | NullResponseFromTarget |
Thanks already in advance!
Solved! Go to Solution.
10/20/2022 09:12 AM
"httpHeaders": { "Authorization": "${access_token}" },
Authorization is missing
Refer syntax : https://saviynt.freshdesk.com/support/solutions/articles/43000521736-rest-connector-guide%C2%A0
10/24/2022 12:04 AM
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.
10/24/2022 06:26 AM
Does Entitlement Import working ?
10/24/2022 06:33 AM
If I have understood the customer correctly, there are no entitlements in test data
10/24/2022 06:37 AM
I suspect your connection is not working can you check connectionJson if its working or not
10/24/2022 06:41 AM
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.
10/24/2022 06:46 AM
Does it returning success ? it should return success 200 else account import may fail
10/25/2022 01:34 AM
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"
10/25/2022 01:58 AM
Please provide postman screenshot of working api with body params
10/26/2022 03:32 AM
Edited some fields that might have customer info.
10/26/2022 05:40 AM
I see issue is your data start with [ ]
10/21/2022 06:52 AM
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