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.
100% helpful (1/1)
davindersingh
Saviynt Employee
Saviynt Employee

Symptoms

During the integration with Salesforce, you may come across the following error


2023-01-11 16:36:18,051 [http-nio-8080-exec-8] DEBUG provisoning.SalesForceProvisioningService - Access token is not generated successfully
2023-01-11 16:36:17,510 [http-nio-8080-exec-8] DEBUG provisoning.SalesForceProvisioningService - callService url:>>>>>> https://mybox--savyint.sandbox.my.salesforce.com/services/oauth2/token
2023-01-11 16:36:17,505 [http-nio-8080-exec-8] DEBUG services.ImportUtilityService - EntitlementType 'ObjectPermissions' for Endpoint 'Salesforce Saviynt Dev' found with EntitlementTypekey - 79
2023-01-11 16:36:17,503 [http-nio-8080-exec-8] DEBUG services.ImportUtilityService - EntitlementType 'CustomPermission' for Endpoint 'Salesforce Saviynt Dev' found with EntitlementTypekey - 78
2023-01-11 16:36:17,501 [http-nio-8080-exec-8] DEBUG services.ImportUtilityService - EntitlementType 'ExternalDataSource' for Endpoint 'Salesforce Saviynt Dev' found with EntitlementTypekey - 77
2023-01-11 16:36:17,499 [http-nio-8080-exec-8] DEBUG services.ImportUtilityService - EntitlementType 'NamedCredential' for Endpoint 'Salesforce Saviynt Dev' found with EntitlementTypekey - 76
2023-01-11 16:36:17,497 [http-nio-8080-exec-8] DEBUG services.ImportUtilityService - EntitlementType 'Custom Application' for Endpoint 'Salesforce Saviynt Dev' found with EntitlementTypekey - 75

Diagnosis

1. Ensure the saviynt app on the salesforce side is setup as per the documentation.  https://docs.saviyntcloud.com/bundle/SF-v55x/page/Content/Salesforce-Integration-Overview.htm

2. followed the troubleshooting guide on the connector documentation https://docs.saviyntcloud.com/bundle/SF-v2021x/page/Content/Troubleshooting.htm#Save

3. Able to generate the refresh token from postman using the steps provided in the documentation. The steps involves generating a code and then passing the code into another url to generate refresh token. More details on how to generate code and refresh token at https://docs.saviyntcloud.com/bundle/SF-v2021x/page/Content/Preparing-for-an-Integration.htm

Solution

1.While creating a Salesforceapplication, you must have enabled the check box “Require Secret for Refresh Token Flow “. This needs to be unchecked. Please refer to the documentation section “Registering the Connector in Salesforce “, this will have a list of options we need to select and do not select. Please go through below documentation link for reference: https://docs.saviyntcloud.com/bundle/SF-v2021x/page/Content/Preparing-for-an-Integration.htm
You can reach out to your Salesforce application team and revalidate these configurations.

2. If point one is true, please uncheck the option on target end and retry authentication or create a new application without selecting “Require Secret for Refresh Token Flow “. When you are creating a new connection post validation of these config, in particular be sure that Secret for Refresh Token Flow is not selected as this will interfere with token creation when the application first connects to Salesforce.

Version history
Last update:
‎01/11/2023 09:12 AM
Updated by:
Contributors