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

A document by KCS Integration on behalf of ae12e993d860a7e9570dcb0d68d6850a4e0f02c8 on Oct 17, 2017Last modified by Clinton Moore on Jan 17, 2020
Version 4Show Document
  • View in full screen mode

Issue Description
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}"


Issue Resolution

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:

Is this article helpful ?



Who This Solution Applies To

Customers integrated with Salesforce using IP restrictions