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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Sunflower7500
Helper I
Helper I

Error with automatic refreshes for Databricks source: Authentication/authorization error occurred

I have a Power BI semantic model that pulls from Databricks. The automatic refreshes were running perfectly up until yesterday when I started to get this error message. I am able to refresh this report on the desktop app, but it errors out on the refresh after 10 minutes on the server.

I checked that my Databricks connection is online and also updated my PAT. Does anyone know how I can resolve this error and have the automated refreshes begin to work again?

Sunflower7500_0-1745005387785.png

 

1 ACCEPTED SOLUTION

Hi @Sunflower7500,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @Deku  for the prompt response.

It’s likely related to how Fabric Capacity handles authentication differently than Pro. PATs sometimes don’t play well in Fabric refreshes due to security model differences. Try switching the Databricks connection to use OAuth2 in Power BI Service instead of a PAT. Also check your dataset’s credentials and gateway settings in the Fabric workspace.

If those don’t help, then go for opening a support ticket as suggested by Deku.

I recommend submitting your detailed ticket below:

How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

 

 

View solution in original post

11 REPLIES 11
v-venuppu
Community Support
Community Support

Hi @Sunflower7500 ,

We are following up once again regarding your query. Could you please confirm whether the issue has been resolved through your support ticket with Microsoft?

If so, we would appreciate it if you could share the resolution or any key insights here to benefit others in the community. If we don’t receive a response, we will proceed with closing this thread.

If you need further assistance in the future, feel free to start a new thread in the Microsoft Fabric Community Forum. We will be happy to support you there.

rohit1991
Super User
Super User

Hi @Sunflower7500 ,

 

Refreshes from Databricks working fine in Power BI Desktop, but failing with an authentication/authorization error in the Power BI Service. This is becoming more common lately, especially with the newer Fabric capacities and stricter security around tokens. Here’s what usually fixes it:

  1. Switch from PAT to OAuth2 Authentication: Power BI Service (especially with Fabric) no longer plays well with Personal Access Tokens (PAT) for scheduled refreshes. Go into your dataset settings in the Power BI Service, and re-authenticate your Databricks connection using OAuth2 instead of PAT. This single step resolves the vast majority of these errors now.

  2. Re-enter Credentials & Check Gateway: After switching to OAuth2, re-enter your credentials and double-check your gateway settings if you’re using one. Sometimes credentials stored in the Service get stale or don’t update until you re-authenticate.

  3. Double-Check Databricks Workspace Permissions: Make sure your user/service principal still has access to the Databricks workspace and cluster. Sometimes permissions change on the Databricks side and silently break refreshes.

  4. Firewall/VNet Issues: If your Databricks workspace is behind a VNet or firewall, confirm that the necessary Microsoft Power BI Service IP ranges are allowed. Otherwise, the refresh can fail even if everything else is correct.

  5. Token Expiry/Conditional Access: If your organization enforces strict Azure AD token lifetimes or conditional access, the refresh may work intermittently or break when a token expires. Your IT or Azure admin can help check for this.


Did it work? ✔ Give a Kudo • Mark as Solution – help others too!
v-venuppu
Community Support
Community Support

Hi @Sunflower7500 ,

Have you had a chance to raise a support ticket and resolve this issue? If so, please consider sharing the solution in the forum and marking it as accepted, this will help other members find the answer more easily.

Thank you.

Deku
Super User
Super User

403 is forbidden so related to authentication. Are you able to access the underlying tables with the same identify that is performing the refresh?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Hi @Deku yes, I am able to access the underlying tables. I'm able to refresh this file in PBI desktop and also access the tables I'm querying from on Databricks itself

Sounds like networking. Using cloud connections or a gateway?


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

I am using a cloud connection and it says the connection is online

I would talk to your networking team to figure out if any firewall rules have been added or changed


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Hi @Deku I figured out that the issue seems to stem from the workspace being a Fabric capcity. When I changed it back to Pro capacity, the server refresh succeeded. Do you know why I would only get this error in the Fabric capacity workspace and not in the Pro capacity?

Hi @Sunflower7500,

Thank you for reaching out to Microsoft Fabric Community.

Thank you @Deku  for the prompt response.

It’s likely related to how Fabric Capacity handles authentication differently than Pro. PATs sometimes don’t play well in Fabric refreshes due to security model differences. Try switching the Databricks connection to use OAuth2 in Power BI Service instead of a PAT. Also check your dataset’s credentials and gateway settings in the Fabric workspace.

If those don’t help, then go for opening a support ticket as suggested by Deku.

I recommend submitting your detailed ticket below:

How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

 

If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! 

Thank you.

 

 

No. Very weird. Might need a support ticket.


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors