How do I resolve authentication errors for the Historical Account Pull Job on the initial sync for Vault Medical?
This solution resolves the following errors when present in the log for the Historical Account Pull Job:
Error performing CRM Pull Historical Accounts job: Salesforce authentication
response error=[invalid_grant] errorDescription=[authentication failure]
ERROR:Invalid Salesforce credentials. Please enter valid Salesforce credentials
for the CRM Org and rerun the job.
The issue is due to an IP Restriction in place for the Connected App used for the Integration.
To resolve the issue, please take the following steps in CRM using Lightning:
- Go To: Setup --> Apps --> Apps Manager.
On the line with the Vault Connected App, select the dropdown arrow and select Manage.
On the Connect App page, click the Edit Policies button.
- In the OAuth Policies section, for IP Relaxation set the picklist value to Relax IP restrictions.
- Click Save
Once this action is taken, the user is able to successfully authenticate with their Salesforce environment.
For additional information regarding this setting, please see the following Salesforce documentation:
- Configuring Medical Inquiry CRM Data Sharing (Vault Medical)
- How to Obtain a Consumer Key and Secret of Connected App in CRM?