Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
Could someone please help with the issue below:
We have a PowerBI report that is connected to the databricks using an Import mode. We are using OAuth as the authentication mode.
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:
{"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 'https://servername.cloud.databricks.com/xxxx/x1/token' (400): Bad Request"}}],"exceptionCulprit":1}}} |
This keeps happening once in a week.
When it fails we have to go the PowerBIservice --> data source credentials and reauthenticate the credentials, only after which it will start working.
What could be the issue here?
FYI, the databricks cluster stays disabled until some query hits.
Solved! Go to Solution.
Hi @Anonymous,
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.
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:
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:
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:
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
If this helps then please Accept it as a solution and dropping a "Kudos" so other members can find it more easily.
Hope this works for you!
Thanks.
The issue still persists. We have tried possible ways like having the databricks started before the schedule refresh time , but did not help.
Analysis in the databricks end is in progress. Meanwhile we have switched the report to use PAT token.
I resolved my issue by following these steps:
After completing these steps, the semantic model refreshed successfully! 🎉
@Rohan_B @Anonymous hope this work for you
@Anonymous Did you find a solution for this.
We tried the above options but the issue still persists. The token expires after 6 to 7 days even if we have set the Refresh token TTL (in minutes) to 43200 (30 days) at databricks.
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.
I'm having the same issue and it began today. So I'm guessing databricks is having a generalized problem.
Please let me know if you figure out a solution.
@Anonymous what did you end up doing? We are facing what sounds like the exact same issue.
Hi @Anonymous,
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.
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:
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:
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:
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
If this helps then please Accept it as a solution and dropping a "Kudos" so other members can find it more easily.
Hope this works for you!
Thanks.
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.
Did you find a solution @Anonymous ?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!