Forum Discussion
Unable to open PBIX file from SharePoint folder
Hi Team, I have saved my pbix file in sharepoint folder and this pbix file created by data source as databricks with direct query when I am trying to share this path to my collegue when she open this pbix file getting below error message. I just want to know is direct query datasource not supported for using pbix file in sharepoint and I checked with our admin this Users can view Power BI files saved in OneDrive and SharePoint (Preview) feature is tun on.
Hi ManasRout
DirectQuery is supported with Databricks, and storing/opening a .pbix file from SharePoint is also supported.
More often, the error might come from one of below listed causes:Common causes
Missing permissions
- Your colleague may not have access to the Databricks source or the saved credentials/auth method.
Credentials are not embedded for the user
- A PBIX file stored in SharePoint does not carry everyone’s authentication.
- If the connection uses your account credentials, another user opening the file may be blocked.
DirectQuery source accessibility
- Their machine must be able to reach Databricks and authenticate correctly.
Version / refresh / cache issues
- Sometimes the PBIX opens, but a query or preview refresh fails because the source connection can’t be re-established.
Important distinction
- SharePoint is only storing the PBIX file
- The DirectQuery connection still points to Databricks
- So when your colleague opens the PBIX, Power BI must still validate access to Databricks
Here are the relevant Microsoft links:
DirectQuery overview and limitations
https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-aboutUse DirectQuery in Power BI Desktop
https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-use-directqueryAzure Databricks connector for Power BI
https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-connect-to-databricksSave and share Power BI files in OneDrive/SharePoint
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-save-to-sharepoint-onedrive
Hi,
This behavior is expected. The SharePoint/OneDrive PBIX preview currently has limitations and doesn't support opening PBIX files that use certain live connectivity modes, including DirectQuery. That's why you're seeing the DirectQueryNotSupported error.
Your colleague should download the PBIX file and open it using the Power BI Desktop version that supports the same DirectQuery connector (in your case, Databricks).
If you want users to view and interact with the report without Power BI Desktop, the recommended approach is to publish the report to the Power BI Service and share it from there.
So, in short:
Import mode PBIX files can be opened in the SharePoint/OneDrive preview.
DirectQuery PBIX files are not currently supported in that preview experience.
Downloading the file and opening it in Power BI Desktop, or using the Power BI Service, are the supported options.
6 Replies
- powerbidev123
Solution Sage
Hi ManasRout
DirectQuery is supported with Databricks, and storing/opening a .pbix file from SharePoint is also supported.
More often, the error might come from one of below listed causes:Common causes
Missing permissions
- Your colleague may not have access to the Databricks source or the saved credentials/auth method.
Credentials are not embedded for the user
- A PBIX file stored in SharePoint does not carry everyone’s authentication.
- If the connection uses your account credentials, another user opening the file may be blocked.
DirectQuery source accessibility
- Their machine must be able to reach Databricks and authenticate correctly.
Version / refresh / cache issues
- Sometimes the PBIX opens, but a query or preview refresh fails because the source connection can’t be re-established.
Important distinction
- SharePoint is only storing the PBIX file
- The DirectQuery connection still points to Databricks
- So when your colleague opens the PBIX, Power BI must still validate access to Databricks
Here are the relevant Microsoft links:
DirectQuery overview and limitations
https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-directquery-aboutUse DirectQuery in Power BI Desktop
https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-use-directqueryAzure Databricks connector for Power BI
https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-connect-to-databricksSave and share Power BI files in OneDrive/SharePoint
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-save-to-sharepoint-onedrive
- ManasRout
Resolver II
Hi Murtaza_Ghafoor , sannavajjala , powerbidev123 Thank you all for sharing these details with me.
- sannavajjala
Resolver II
Hi,
This behavior is expected. The SharePoint/OneDrive PBIX preview currently has limitations and doesn't support opening PBIX files that use certain live connectivity modes, including DirectQuery. That's why you're seeing the DirectQueryNotSupported error.
Your colleague should download the PBIX file and open it using the Power BI Desktop version that supports the same DirectQuery connector (in your case, Databricks).
If you want users to view and interact with the report without Power BI Desktop, the recommended approach is to publish the report to the Power BI Service and share it from there.
So, in short:
Import mode PBIX files can be opened in the SharePoint/OneDrive preview.
DirectQuery PBIX files are not currently supported in that preview experience.
Downloading the file and opening it in Power BI Desktop, or using the Power BI Service, are the supported options.
- Murtaza_Ghafoor
Super User
Hi ManasRout
Why this is happening
The new feature that lets people view Power BI files inside OneDrive or SharePoint is still in preview feature and has some limits. Right now, it only works for reports that use "Import mode." It does not applicable for reports using "DirectQuery" or "Live Connection."
Because your report uses DirectQuery, your colleague sees the DirectQueryNotSupported (400) error, even though your admin switch on the preview feature.
How to make this works (Workarounds)
You can ask your colleague to try one of these options:
Option 1: Click the Download button, open the file in Power BI Desktop on their computer, and sign in with their own Databricks log-in details if asked.
Option 2 (Ideak way): Publish the report to a Power BI Service or Fabric workspace and share the link from there. This is always the best way to share DirectQuery reports.
If this helps, ✓ Mark as Kudos | Help Others
- v-aatheeque
Community Support
Hi ManasRout
Following up to confirm if the earlier responses addressed your query. If not, please share your questions and we’ll assist further.
- v-aatheeque
Community Support
Hi ManasRout
Have you had a chance to look through the responses shared earlier? If anything is still unclear, we’ll be happy to provide additional support.