Announcing the SAVIYNT KNOWLEDGE EXCHANGE unifying the Saviynt forums, documentation, training, and more in a single search tool across platforms. Click HERE to read the Announcement.

AzureAD Account Import Job Failing

Souvik
New Contributor III
New Contributor III

In the Saviynt Version v23.3, © Copyright 2023 the AzureAD account Import job suddenly starts failing with the Error message:

Failed to import one or more object types due to
multiple errors. Check the Job Log Details page
for more information.

Before the version upgrade the job was running successfully and importing accounts as well. After version upgrade the job starts failing. Do we need to add any extra specific field to make the job successful?

 

ACCOUNT_ATTRIBUTES:

{
"acctLabels": {
"customproperty1": "FirstName",
"customproperty2": "LastName",
"customproperty3": "OfficePhone",
"customproperty4": "Email",
"customproperty5": "MailNickName",
"customproperty10": "AccountStatus",
"customproperty20": "EmployeeID"
},
"colsToPropsMap": {
"accountID": "id~#~char",
"name": "userPrincipalName~#~char",
"displayName": "displayName~#~char",
"customproperty1": "givenName~#~char",
"customproperty2": "surname~#~char",
"customproperty3": "businessPhone~#~char",
"customproperty4": "mail~#~char",
"customproperty5": "mailNickname~#~char",
"customproperty10": "accountEnabled~#~char",
"customproperty20": "employeeId~#~char",
"customproperty31": "STORE#ACC#ENT#MAPPINGINFO"
}
}

ACCOUNT_IMPORT_FIELDS:

accountEnabled,displayName,id,businessPhones,userPrincipalName,givenName,surname,mail,mailNickname,employeeId

 

3 REPLIES 3

SB
Saviynt Employee
Saviynt Employee

Can you share the error you are seeing in the logs for the job.


Regards,
Sahil

Souvik
New Contributor III
New Contributor III

Hi Sahil,

In the logs we are getting the below - Exception in token refresh : 400\n error.

Can you please let us know how can we fix it?

 

Logs:

2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,485 [quartzScheduler_Worker-10] DEBUG rest.RestUtilService - Calling https://graph.microsoft.com/v1.0/users/6a0a8c4e-cce7-40bb-b75a-4632b3187582/sendMail\n","stream":"stdout","time":"2023-03-31T06:46:36.485897058Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,485 [quartzScheduler_Worker-10] DEBUG services.HttpClientUtilityService - isFipsEnabled = false\n","stream":"stdout","time":"2023-03-31T06:46:36.485920113Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,485 [quartzScheduler_Worker-10] DEBUG services.HttpClientUtilityService - getHttpClient - sslParams : null\n","stream":"stdout","time":"2023-03-31T06:46:36.485935082Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,485 [quartzScheduler_Worker-10] DEBUG services.HttpClientUtilityService - getHttpClient - proxyParams : null\n","stream":"stdout","time":"2023-03-31T06:46:36.485942152Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,485 [quartzScheduler_Worker-10] DEBUG services.HttpClientUtilityService - getHttpClient - sslSocketFactory : null\n","stream":"stdout","time":"2023-03-31T06:46:36.485947742Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,493 [quartzScheduler_Worker-3] DEBUG services.HttpClientUtilityService - setting connection timeout to 10 seconds and request timeout to 60 seconds\n","stream":"stdout","time":"2023-03-31T06:46:36.493806202Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,494 [quartzScheduler_Worker-3] DEBUG services.HttpClientUtilityService - getHttpClient - HttpClientBuilder.create().build() called.\n","stream":"stdout","time":"2023-03-31T06:46:36.494272023Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,516 [quartzScheduler_Worker-10] DEBUG services.HttpClientUtilityService - setting connection timeout to 60 seconds and request timeout to 60 seconds\n","stream":"stdout","time":"2023-03-31T06:46:36.51653178Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,516 [quartzScheduler_Worker-10] DEBUG services.HttpClientUtilityService - getHttpClient - HttpClientBuilder.create().build() called.\n","stream":"stdout","time":"2023-03-31T06:46:36.516940967Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] DEBUG rest.RestUtilService - fetching result from response.responseText\n","stream":"stdout","time":"2023-03-31T06:46:36.738432138Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] DEBUG services.EmailerService - ResponseStatusCode: 400\n","stream":"stdout","time":"2023-03-31T06:46:36.738468675Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] ERROR services.EmailerService - Exception in pullObjectsByRest : 400\n","stream":"stdout","time":"2023-03-31T06:46:36.738475833Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] DEBUG services.EmailerService - Inside token Expiry Exception block. params.refreshTryCount : 0\n","stream":"stdout","time":"2023-03-31T06:46:36.738480524Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] DEBUG services.EmailerService - Incrementing params.refreshTryCount : 1\n","stream":"stdout","time":"2023-03-31T06:46:36.738489375Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] DEBUG services.EmailerService - maxRefreshTryCount : 0\n","stream":"stdout","time":"2023-03-31T06:46:36.738494235Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] ERROR services.EmailerService - Exception in token refresh : 400\n","stream":"stdout","time":"2023-03-31T06:46:36.738500302Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] DEBUG services.EmailerService - Decrementing params.refreshTryCount : 0\n","stream":"stdout","time":"2023-03-31T06:46:36.738504471Z"}
2023-03-31T12:16:37+05:30-ecm-worker-{"log":"2023-03-31 06:46:36,738 [quartzScheduler_Worker-10] DEBUG services.EmailerService - Response Status Code to sendEmail: 400\n","stream":"stdout","time":"2023-03-31T06:46:36.73869619Z"}

SB
Saviynt Employee
Saviynt Employee

Based on the error, it looks like the Access token is not getting refreshed. This could be due to the issue with the connection config. Can you share the connection json once.

Also, can you check if there were any changes made to the connection from History section that might have caused this.


Regards,
Sahil