<?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: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4635395#M149122</link>
    <description>&lt;P&gt;I resolved my issue by following these steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigated to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Manage Connections and Gateways&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in Power BI Online.&lt;/LI&gt;&lt;LI&gt;On the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Connections&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab, located the Databricks entry (Connection type: Databricks) and clicked the three dots -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Settings&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Under&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Authentication method&lt;/STRONG&gt;, I ensured it was set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;OAuth&lt;/STRONG&gt;. Then, I clicked&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Edit credentials&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and refreshed them.&lt;/LI&gt;&lt;LI&gt;Finally, clicked&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Save&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After completing these steps, the semantic model refreshed successfully! &lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="771733" data-lia-user-login="Rohan_B" class="lia-mention lia-mention-user"&gt;Rohan_B&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;hope this work for you&lt;/P&gt;</description>
    <pubDate>Wed, 02 Apr 2025 15:47:09 GMT</pubDate>
    <dc:creator>diego-jd</dc:creator>
    <dc:date>2025-04-02T15:47:09Z</dc:date>
    <item>
      <title>PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4348126#M144003</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Could someone please help with the issue below:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have a PowerBI report that is connected to the databricks using an Import mode. We are using OAuth as the authentication mode.&lt;BR /&gt;The report is scheduled for daily refresh. The report was refreshing successfully for past 6-7 days. But then it failed with the below error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;SPAN&gt;{"error":{"code":"DMTS_OAuthTokenRefreshFailedError","pbi.error":{"code":"DMTS_OAuthTokenRefreshFailedError","details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"[DataSource.Error] Web.Contents failed to get contents from '&lt;A href="https://servername.cloud.databricks.com/xxxx/x1/token" target="_blank" rel="noopener"&gt;https://servername.cloud.databricks.com/xxxx/x1/token&lt;/A&gt;' (400): Bad Request"}}],"exceptionCulprit":1}}}&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;This keeps happening once in a week.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When it fails we have to go the PowerBIservice --&amp;gt; data source credentials and reauthenticate the credentials, only after which it will start working.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What could be the issue here?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;FYI, the databricks cluster stays disabled until some query hits.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 06:34:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4348126#M144003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-02T06:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4348275#M144004</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks for reaching out about the refresh failure you're experiencing with your Power BI report connected to Databricks. I understand that the report was refreshing successfully for several days but started failing with a "DMTS_OAuthTokenRefreshFailedError" once a week.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;This error typically indicates an issue with refreshing the OAuth token used for authentication between Power BI and Databricks. Here are some possible causes and solutions to troubleshoot the problem:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;You mentioned that the Databricks cluster stays disabled until a query hits it. This auto-shutdown behavior might be causing the token to expire before the scheduled refresh. To address this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;If possible, adjust your Databricks cluster settings to remain active for a specific period or continuously run low-resource queries to prevent automatic shutdowns. Alternatively, consider scheduling a simple query to the Databricks cluster just before your Power BI refresh. This will ensure the cluster is active and the token is valid for refresh.&lt;/LI&gt;
&lt;LI&gt;Investigate the expiration time of OAuth tokens issued by Databricks. If they expire frequently (e.g., daily), it might lead to refresh failures around that time.&lt;/LI&gt;
&lt;LI&gt;see if there's an option on the Databricks side to extend the validity period of OAuth tokens. This would reduce refresh attempts and potential failures.&lt;/LI&gt;
&lt;LI&gt;While reauthenticating credentials in Power BI service after the refresh failure seems to resolve the issue temporarily, it's not an ideal long-term solution.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If these solutions do not resolve the issue, please consider contacting Databricks support or raising a Microsoft support ticket. You can create a Microsoft support ticket using the link below:&lt;BR /&gt;&lt;A href="https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket" target="_blank"&gt;https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If this helps then please &lt;STRONG&gt;Accept it as a solution&lt;/STRONG&gt; and dropping a "&lt;STRONG&gt;Kudos&lt;/STRONG&gt;" so other members can find it more easily.&lt;BR /&gt;Hope this works for you!&lt;BR /&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 09:25:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4348275#M144004</guid>
      <dc:creator>v-ssriganesh</dc:creator>
      <dc:date>2025-01-02T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4348353#M144008</link>
      <description>&lt;P&gt;Thanks a lot for your immediate response and detailed explanation provided. We will try some of these options to see if it resolves the issue and provide an update here.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 10:42:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4348353#M144008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-02T10:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4608345#M148028</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; what did you end up doing? We are facing what sounds like the exact same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 09:55:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4608345#M148028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-03-13T09:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4633729#M149068</link>
      <description>&lt;P&gt;Anonymous&lt;/a&gt;&amp;nbsp; Did you find a solution for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried the above options but the issue still persists. The token expires after 6 to 7 days even if we have set the&amp;nbsp;Refresh token TTL (in minutes) to&amp;nbsp;43200 (30 days) at databricks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also set up a query to trigger at the same time the report refreshed to keep the serverless warehouse up during that time. That also did not work.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 17:14:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4633729#M149068</guid>
      <dc:creator>Rohan_B</dc:creator>
      <dc:date>2025-04-01T17:14:04Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4633754#M149072</link>
      <description>&lt;P&gt;I'm having the same issue and it began today. So I'm guessing databricks is having a generalized problem.&lt;BR /&gt;&lt;BR /&gt;Please let me know if you&amp;nbsp; figure out a solution.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Apr 2025 17:45:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4633754#M149072</guid>
      <dc:creator>diego-jd</dc:creator>
      <dc:date>2025-04-01T17:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4634159#M149079</link>
      <description>&lt;P&gt;The issue still persists. We have tried possible ways&amp;nbsp; like having the databricks started before the schedule refresh time , but did not help.&amp;nbsp;&lt;BR /&gt;Analysis in the databricks end is in progress.&amp;nbsp;Meanwhile we have switched the report to use PAT token.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 03:04:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4634159#M149079</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-04-02T03:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4635395#M149122</link>
      <description>&lt;P&gt;I resolved my issue by following these steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigated to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Manage Connections and Gateways&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in Power BI Online.&lt;/LI&gt;&lt;LI&gt;On the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Connections&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tab, located the Databricks entry (Connection type: Databricks) and clicked the three dots -&amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Settings&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Under&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Authentication method&lt;/STRONG&gt;, I ensured it was set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;OAuth&lt;/STRONG&gt;. Then, I clicked&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Edit credentials&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and refreshed them.&lt;/LI&gt;&lt;LI&gt;Finally, clicked&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Save&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;After completing these steps, the semantic model refreshed successfully! &lt;span class="lia-unicode-emoji" title=":party_popper:"&gt;🎉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="771733" data-lia-user-login="Rohan_B" class="lia-mention lia-mention-user"&gt;Rohan_B&lt;/a&gt;&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;hope this work for you&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 15:47:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4635395#M149122</guid>
      <dc:creator>diego-jd</dc:creator>
      <dc:date>2025-04-02T15:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBI refresh failed when connected to databricks- DMTS_OAuthTokenRefreshFailedError</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4705257#M151168</link>
      <description>&lt;P&gt;Did you find a solution&amp;nbsp;Anonymous&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 13:14:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/PowerBI-refresh-failed-when-connected-to-databricks-DMTS/m-p/4705257#M151168</guid>
      <dc:creator>MattWritesSql</dc:creator>
      <dc:date>2025-05-23T13:14:07Z</dc:date>
    </item>
  </channel>
</rss>

