logo
search
Power Query Problems

Fix Power Query SharePoint DataSource Error When Loading Excel Files

WPS EditorWPS Editor Sep 28, 2026 868 views

Question details

The user experiences intermittent DataSource errors and slow refreshes when using Power Query to load Excel workbooks from SharePoint.

Fix Power Query SharePoint DataSource Errors When Loading Excel Files
Product
Microsoft Excel, SharePoint, Power Query
Device & OS
not provided
Scenario
Refreshing Power Query data sourced from multiple Excel files stored on a SharePoint site.
Observed behavior
Refreshes take several minutes and intermittently fail with a SharePoint DataSource.Error requesting context information, with the failing source file varying.
Before you start

Ensure you have a stable internet connection and verify that you have the appropriate read permissions for the SharePoint site and all source Excel files.

Solution 1Recommended

Verify Source Files and User Access

Rule out file corruption and file locking by other users as the root cause of the DataSource error.

Power Query can struggle to pull data from SharePoint if the source Excel files are corrupted or currently locked by another user who is editing them without co-authoring properly synced.

1
Test with a newly created file

Create a brand new Excel file on your SharePoint site. Temporarily update your Power Query source settings to point to this new file to check if one of the original workbooks is corrupted.

2
Close active files

Ensure that all users who might be accessing the source Excel files have completely closed them, as active file locks can trigger context information errors during the data refresh.

3
Retry the data refresh

In your main Excel workbook, navigate to the 'Data' tab on the ribbon and click 'Refresh All' to see if the Power Query now executes without the DataSource.Error.

Verify Source Files and User Access
Variable File Failures: Because the failing source file varies, the issue is highly likely related to temporary file locks caused by active users rather than permanent file corruption.
Free Microsoft Office alternative

Try WPS Office for a Streamlined Spreadsheet Experience

Tired of dealing with complex SharePoint connection errors and slow data refreshes? WPS Office provides a lightweight, highly compatible alternative for processing and analyzing your spreadsheets without the frustrating errors.

  1. 1. Download the Installer: Visit the official WPS Office website and click on 'Download WPS Office Free' to get the latest version.
  2. 2. Install the Software: Run the downloaded installer and follow the simple on-screen instructions to set up the suite on your device.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheets and open your existing .xlsx files directly. You can seamlessly continue your data analysis without formatting loss.
Highly compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Lightweight design for faster installation and smoother overall performance.Free and easy to use with a familiar, intuitive spreadsheet interface.Excellent local and cloud-based file management capabilities.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query take so long to refresh from SharePoint?

Refreshing from SharePoint requires downloading data over the network, which can be slow if you are dealing with multiple large Excel files, complex data transformations, or local bandwidth limitations.

Can an open Excel file cause a Power Query error?

Yes. If another user has a source Excel file open in the desktop application and it creates a file lock, Power Query may fail to read the file, resulting in an intermittent DataSource error.

How do I find my SharePoint connection details to provide to support?

You can find your connection details by opening your Excel file, navigating to the Data tab, clicking 'Queries & Connections', right-clicking your specific query, and selecting 'Advanced Editor' to view the source URL.