Forum Discussion
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?
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.
11 Replies
- DekuSuper 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?
- Sunflower7500Helper I
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
- DekuSuper User
Sounds like networking. Using cloud connections or a gateway?
- v-venuppuCommunity 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.
- rohit1991Super 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:
-
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.
-
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.
-
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.
-
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.
-
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.
-
- v-venuppuCommunity 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.