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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
saurabhtd
Resolver II
Resolver II

Getting error : Failed to test the connection to your data source. Please retry your credentials

Hello everyone, 

I need one help. 

I am unable to start the refresh of semantic model in Power BI Service as my creditionals are not getting validated. I getting this error "Failed to update data source credentials: " and "Failed to test the connection to your data source. Please retry your credentials". I have admin access in both Power BI and Databricks workspace. Power BI semantic model is consuming data from Databricks. 

saurabhtd_0-1714141691337.pngsaurabhtd_1-1714141698421.png


Can you please help me in resolving this issue ? Any solutions to this solve this ? 

1 ACCEPTED SOLUTION
v-jialongy-msft
Community Support
Community Support

Hi @saurabhtd 

 

Follow the steps below to solve your problem

Step 1: Verify Databricks Token

First, ensure that the Databricks access token you are using is still valid. Databricks tokens have an expiration date, and if yours has expired, you will need to generate a new one. Follow the steps in the Databricks documentation to create a new token  and update the connection in Power BI with this new token.Authentication for Databricks automation - overview | Databricks on AWS

Step 2: Validate Gateway Configuration

If you are connecting to Databricks using an on-premises data gateway, make sure that the gateway is online and properly configured. Verify that the Databricks data source is correctly set up in the gateway and that the credentials stored there are up-to-date. For more information on configuring gateways, refer to the Tutorial: Connect to on-premises data in SQL Server - Power BI | Microsoft Learn

Step 3: Test Connection in Power BI Desktop

Try to establish the connection to Databricks from Power BI Desktop first. If you can successfully connect and access data from Power BI Desktop, republish the PBIX file to the Power BI Service. This ensures that any connection or credential changes are updated in the service.

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

2 REPLIES 2
v-jialongy-msft
Community Support
Community Support

Hi @saurabhtd 

 

Follow the steps below to solve your problem

Step 1: Verify Databricks Token

First, ensure that the Databricks access token you are using is still valid. Databricks tokens have an expiration date, and if yours has expired, you will need to generate a new one. Follow the steps in the Databricks documentation to create a new token  and update the connection in Power BI with this new token.Authentication for Databricks automation - overview | Databricks on AWS

Step 2: Validate Gateway Configuration

If you are connecting to Databricks using an on-premises data gateway, make sure that the gateway is online and properly configured. Verify that the Databricks data source is correctly set up in the gateway and that the credentials stored there are up-to-date. For more information on configuring gateways, refer to the Tutorial: Connect to on-premises data in SQL Server - Power BI | Microsoft Learn

Step 3: Test Connection in Power BI Desktop

Try to establish the connection to Databricks from Power BI Desktop first. If you can successfully connect and access data from Power BI Desktop, republish the PBIX file to the Power BI Service. This ensures that any connection or credential changes are updated in the service.

 

 

 

Best Regards,

Jayleny

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

Thanks a lot @v-jialongy-msft. These steps helped me in resolving the issue. Now I am not getting this error and I am able to start the refresh. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.