SFDC Sync Error - Salesforce setCredential failed with code: {LOGIN_DURING_RESTRICTED_DOMAIN}


You receive a notification that the Marketo/SFDC sync has failed due to " Invalid username, password, security token; or user locked out." On the Salesforce side, you see the error "Salesforce setCredential failed with code: {LOGIN_DURING_RESTRICTED_DOMAIN} and message: {cannot log in from current domain}"


Take the following steps to troubleshoot this issue:

  1. Confirm that the username and password are correct by using them to log into Salesforce.
  2. Check to make sure the Marketo IPs are on the Salesforce general whitelist.
  3. Check the Marketo sync user's profile in Salesforce and make sure the "Login IPs" include the IPs for your Marketo instance.


The complete list of IP ranges is:


Who This Solution Applies To

Customers integrated with Salesforce using IP restrictions