Question:
How do I resolve authentication errors for the Historical Account Pull Job on the initial sync for Vault Medcomms?
Answer:
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 your 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
On the line with your 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, you will be able to successfully authenticate with your Salesforce environment.
For additional information regarding this setting, please see the following Salesforce documentation:
Related Documentation:
Help Documentation:
- Configuring Medical Inquiry CRM Data Sharing (MedComms)
- How to Obtain a Consumer Key and Secret of Connected App in CRM?
Send us your feedback: We're always looking for feedback to help improve our Knowledge Base! Please let us know if this article was helpful or provide feedback on how we can improve your experience here.