logo
search
Power Query Problems

How to Fix SharePoint Folder Connection Errors in Power Query

Adam DavisAdam Davis Oct 20, 2026 869 views

Question details

The user is unable to connect Power Query to a SharePoint data folder because the OK button remains disabled after entering the site URL.

How to Fix SharePoint Folder Connection Errors in Power Query
Product
Excel
Device & OS
not provided
Scenario
Attempting to import data from a SharePoint folder into Excel using Power Query.
Observed behavior
The OK button stays grayed out or disabled after entering the SharePoint site URL, preventing the user from completing the connection.
Before you start

Ensure you are connected to the internet, have an active session with your Microsoft 365 account, and have the correct SharePoint root site URL ready.

Solution 1Recommended

Verify SharePoint URL Format and Reconnect

Check your SharePoint URL accuracy and ensure your account has the correct permissions to establish the Power Query connection.

The most common reason for the 'OK' button being disabled in Power Query is entering an invalid URL format. Power Query requires the root site URL rather than the direct path to a specific document library or folder.

1
Verify Site Permissions

Open your web browser, navigate to the SharePoint site URL, and confirm that your account has permission to view the site and its document contents.

2
Open Get Data in Excel

Launch Microsoft Excel, navigate to the 'Data' tab on the ribbon, click 'Get Data', select 'From Other Sources', and choose 'From SharePoint Folder'.

3
Enter the Root URL

In the dialog box, enter the base SharePoint site URL (e.g., https://yourdomain.sharepoint.com/sites/yoursite). Do not include the path to the specific shared documents folder. The 'OK' button will now become enabled.

4
Select Your Target Folder

Click 'OK'. If prompted, sign in with your organizational or Microsoft account. Once the Navigator window opens, locate and select your specific data folder to load or transform the data.

Verify SharePoint URL Format and Reconnect
URL Verification Complete: By using the root site URL and authenticating properly, Power Query maps the directory structure, allowing you to filter down to the specific folder you need.
Free Microsoft Office alternative

Process Data Effortlessly with WPS Office

If complex Microsoft Excel Power Query connections are slowing down your workflow, try WPS Office. It is a free, lightweight, and easy-to-use alternative featuring excellent compatibility, a highly familiar user interface, and seamless data management.

  1. 1. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
  2. 2. Install the Software: Follow the simple on-screen instructions to install WPS Office on your device in just a few minutes.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing Excel files to continue your data analysis and editing seamlessly.
Fully compatible with Microsoft Excel (.xlsx, .xls, .csv) formats.Familiar spreadsheet interface ensures zero learning curve for Excel users.Lightweight installation with incredibly fast loading speeds.Rich built-in formulas and data management tools without complex setups.
microsoft office alternative - wps office

Frequently Asked Questions

Why is the OK button disabled when I enter my SharePoint URL?

The OK button typically remains disabled if the URL format is incorrect. Power Query expects the root site URL (e.g., https://domain.sharepoint.com/sites/sitename) rather than a direct link to a specific folder or document library. Once a valid root URL is detected, the button will activate.

Do I need special admin permissions to connect Power Query to SharePoint?

No, you do not need admin permissions, but you must have at least 'Read' access to the SharePoint site and the specific folder contents you are trying to query. If you lack these permissions, the connection will fail during the authentication step.

How do I clear or change my existing SharePoint credentials in Excel?

If you are stuck in an authentication loop, go to the 'Data' tab, click 'Get Data', and select 'Data Source Settings'. Choose 'Global permissions', locate your SharePoint URL in the list, and click 'Edit Permissions' or 'Clear Permissions' to reset your login credentials.