<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Salesforce Connector - Lakeflow Connect 400 Error in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/salesforce-connector-lakeflow-connect-400-error/m-p/157119#M54506</link>
    <description>&lt;P class=""&gt;&lt;SPAN&gt;Hi Vedanth,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN&gt;invalid_grant&lt;/SPAN&gt;&lt;SPAN&gt; error usually occurs due to authentication or OAuth configuration issues between &lt;/SPAN&gt;&lt;SPAN&gt;Salesforce&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;Databricks&lt;/SPAN&gt;&lt;SPAN&gt; Lakeflow Connect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Could you please verify the following points:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Ensure the Salesforce user account is not locked and has API access enabled.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Verify whether you are using the correct login URL:&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Production: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://login.salesforce.com" target="_blank" rel="noopener"&gt;https://login.salesforce.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Sandbox: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://test.salesforce.com" target="_blank" rel="noopener"&gt;https://test.salesforce.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;If password-based authentication is used, make sure the Salesforce security token is appended to the password.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Check whether the Connected App OAuth scopes include:&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Full access (&lt;/SPAN&gt;&lt;SPAN&gt;full&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Refresh token access (&lt;/SPAN&gt;&lt;SPAN&gt;refresh_token&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;offline_access&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Confirm that IP restrictions or MFA policies are not blocking the authentication request.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Try reauthorizing the connection after resetting the security token.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Also verify whether the connected app is approved for all users or the specific integration user profile.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;This issue is commonly caused by expired refresh tokens, incorrect OAuth scopes, MFA enforcement, or incorrect environment endpoints.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2026 04:43:35 GMT</pubDate>
    <dc:creator>GaneshI</dc:creator>
    <dc:date>2026-05-18T04:43:35Z</dc:date>
    <item>
      <title>Salesforce Connector - Lakeflow Connect 400 Error</title>
      <link>https://community.databricks.com/t5/data-engineering/salesforce-connector-lakeflow-connect-400-error/m-p/157098#M54505</link>
      <description>&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;I have been trying to setup Salesforce using Lakeflow Connect and followed instructions on the docs&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/connect/managed-ingestion#sfdc" target="_blank" rel="noopener"&gt;https://docs.databricks.com/aws/en/connect/managed-ingestion#sfdc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However I face into invalid_grant error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vedanth_0-1779009668052.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/27085i01B7AECB7B501D96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vedanth_0-1779009668052.png" alt="vedanth_0-1779009668052.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However login history on salesforce shows as successful from Databricks App.&lt;/P&gt;&lt;P&gt;Can someone please guide me on resolving this please?&lt;/P&gt;&lt;P&gt;Im using Databricks Free Edition and Salesforce Trial version&lt;/P&gt;</description>
      <pubDate>Sun, 17 May 2026 09:21:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/salesforce-connector-lakeflow-connect-400-error/m-p/157098#M54505</guid>
      <dc:creator>vedanth</dc:creator>
      <dc:date>2026-05-17T09:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Salesforce Connector - Lakeflow Connect 400 Error</title>
      <link>https://community.databricks.com/t5/data-engineering/salesforce-connector-lakeflow-connect-400-error/m-p/157119#M54506</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;Hi Vedanth,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN&gt;invalid_grant&lt;/SPAN&gt;&lt;SPAN&gt; error usually occurs due to authentication or OAuth configuration issues between &lt;/SPAN&gt;&lt;SPAN&gt;Salesforce&lt;/SPAN&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;SPAN&gt;Databricks&lt;/SPAN&gt;&lt;SPAN&gt; Lakeflow Connect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Could you please verify the following points:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Ensure the Salesforce user account is not locked and has API access enabled.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Verify whether you are using the correct login URL:&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Production: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://login.salesforce.com" target="_blank" rel="noopener"&gt;https://login.salesforce.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Sandbox: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;A href="https://test.salesforce.com" target="_blank" rel="noopener"&gt;https://test.salesforce.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;If password-based authentication is used, make sure the Salesforce security token is appended to the password.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Check whether the Connected App OAuth scopes include:&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Full access (&lt;/SPAN&gt;&lt;SPAN&gt;full&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Refresh token access (&lt;/SPAN&gt;&lt;SPAN&gt;refresh_token&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;offline_access&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Confirm that IP restrictions or MFA policies are not blocking the authentication request.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Try reauthorizing the connection after resetting the security token.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Also verify whether the connected app is approved for all users or the specific integration user profile.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;This issue is commonly caused by expired refresh tokens, incorrect OAuth scopes, MFA enforcement, or incorrect environment endpoints.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2026 04:43:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/salesforce-connector-lakeflow-connect-400-error/m-p/157119#M54506</guid>
      <dc:creator>GaneshI</dc:creator>
      <dc:date>2026-05-18T04:43:35Z</dc:date>
    </item>
  </channel>
</rss>

