logo
search
Permission & Access Issues

Fix Access Denied When Importing SharePoint Excel Query to Power BI

Chanuka GeekiyanageChanuka Geekiyanage Oct 10, 2026 868 views

Question details

The user is experiencing an Access Denied error when attempting to import an Excel query hosted on SharePoint or OneDrive into Power BI.

Fix Access Denied Error Importing SharePoint Excel Query into Power BI
Product
Power BI
Device & OS
not provided
Scenario
Connecting Power BI to an Excel dataset stored on SharePoint or OneDrive to establish a stable cloud-based data connection.
Observed behavior
Power BI returns an Access Denied error, preventing the software from successfully importing or refreshing the Excel query from the SharePoint source.
Before you start

Ensure you have the exact SharePoint or OneDrive file path URL and verify that your Microsoft 365 account has at least read-level permissions for that specific SharePoint site or file.

Solution 1Recommended

Clear and Reconfigure Data Source Permissions in Power BI

Clearing existing cached credentials in Power BI is the most effective fix for SharePoint authentication and access denied errors.

Power BI often caches older or incorrect credentials (such as an expired token or anonymous login). Forcing Power BI to forget these credentials allows you to sign in fresh using the correct Organizational Account.

1
Open Data Source Settings

Launch Power BI Desktop, click on the 'File' tab in the top ribbon, select 'Options and settings', and then click on 'Data source settings'.

2
Clear Existing Permissions

In the Data source settings window, locate the SharePoint or OneDrive URL in the list. Right-click the URL and select 'Clear Permissions' to remove the cached login details.

3
Reconnect with Organizational Account

Attempt to get data from the SharePoint URL again. When prompted for credentials, ensure you select the 'Organizational account' tab (not Windows or Anonymous) and sign in with your Microsoft 365 credentials.

Clear and Reconfigure Data Source Permissions in Power BI
Authentication Tip: Always use the 'Organizational account' option when connecting to Microsoft cloud services like SharePoint or OneDrive Business.
Free Microsoft Office alternative

Edit and Manage Excel Data Easily with WPS Office

While troubleshooting complex Power BI and SharePoint connectivity issues, you might need a reliable, lightweight alternative for viewing, editing, and managing your Excel datasets locally. WPS Office provides a seamless spreadsheet experience without heavy resource requirements.

  1. 1. Download the Software: Visit the official WPS Office website and download the free installer for your specific operating system.
  2. 2. Install WPS Office: Run the downloaded setup file and follow the straightforward on-screen instructions to complete the installation.
  3. 3. Manage Your Datasets: Launch WPS Spreadsheet to open, review, and perfectly format your .xlsx or .csv files before building data models in external dashboards.
Highly compatible with Microsoft Excel formats including .xlsx, .xls, and .csv.Lightweight software that quickly opens massive datasets for review before importing them to Power BI.Free to use with a familiar, intuitive tabbed user interface.Built-in cloud sync for easy file backup and cross-device sharing.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power BI say Access Denied when I have full SharePoint permissions?

This usually happens because Power BI Desktop is holding onto old, cached credentials (such as an expired token or a Windows login) rather than actively using your current organizational account to authenticate with SharePoint.

Which Power BI connector is best for a single SharePoint Excel file?

If you are connecting to a single Excel file hosted on SharePoint, it is generally recommended to use the 'Web' connector and paste the file's direct path. If you are importing multiple files from a directory, use the 'SharePoint Folder' connector instead.

Can I connect Power BI to a local Excel file instead to avoid this error?

Yes, you can use the 'Excel Workbook' connector in Power BI to import a file stored on your local hard drive. However, relying on a local file means the Power BI service will not be able to automatically refresh the data in the cloud unless you set up and configure a personal data gateway.