Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
thot
New Member

DMTS_OAuthTokenRefreshFailedError when connect to databricks

My PBI dashboard is connecting to a Databricks data source.

I got below error about every 10 days when refreshing a model from a daily schedule.  I have to reset the Data source credentials to solve the issue.

I use OAuth2 and privacy level set to 'Organizational' when setting the Data source credentials. 

I am not sure why the issue happens every 10 days? 

 

The error

Data source 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://tfs-edp.cloud.databricks.com/oidc/v1/token' (400): Bad Request"}}],"exceptionCulprit":1}}} Table: rz_databricks_jobs_not_run_pre_7_days.

2 REPLIES 2
lbendlin
Super User
Super User

Tokens do expire.   Updating your credentials should be part of your regular maintenance. 

 

Every 10 days is a bith harsh though - can you ask your Databricks admin for an option to extend that a bit?  To the "standard" 90 days, for example?

I ended up using key (Databricks token) to connect. That expires in 90 days hopefully.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors