How to Fix SharePoint Folder Connection Errors in Power Query
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.

- 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.
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.
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.
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.
Launch Microsoft Excel, navigate to the 'Data' tab on the ribbon, click 'Get Data', select 'From Other Sources', and choose 'From SharePoint Folder'.
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.
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.

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. Download WPS Office: Visit the official WPS website and download the free installation package for your operating system.
- 2. Install the Software: Follow the simple on-screen instructions to install WPS Office on your device in just a few minutes.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing Excel files to continue your data analysis and editing seamlessly.

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.




