Workato · Salesforce connector

Salesforce connection disconnects repeatedly (Connection lost)

Short answer

A Salesforce connection that keeps showing "Connection lost" usually means Salesforce is not returning a refresh token. Grant the "Perform requests at any time" scope, then check the Refresh Token Policy and IP Relaxation settings.

VerifiedLast verified

01Error text

Workato error
Connection lost

02Likely causes

  • Salesforce issues a refresh token only when the app's OAuth policies grant the Perform requests at any time scope. Full access does not include it by default.
  • A Refresh Token Policy or IP Relaxation setting can cause the same symptom.

03How to fix it

  1. For a custom OAuth profile, add Perform requests at any time (refresh_token, offline_access) to the external client app's Selected OAuth Scopes.
  2. For the default OAuth 2.0 connection, go to Setup > Apps > App Manager, open the Connected App named "Workato connector", select Manage and check the scope under OAuth Policies.
  3. Check Refresh Token Policy. Avoid Immediately expire refresh token, and keep any idle window longer than the gap between recipe runs.
  4. Set IP Relaxation to Relax IP restrictions, or add Workato IPs to Setup > Security > Network Access or the integration user's Login IP Ranges.
  5. Check Lock sessions to the IP address from which they originated under Setup > Security > Session Settings.
  6. Reconnect the connection.

04Official documentation

Test every fix in a non-production environment before you apply it to production. See how entries are verified.

More for Workato work:Open Workato jobsWorkato rates and salariesHire a senior Workato developer

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.