Can Power Query Read Data from a Live SharePoint Workbook?
Question details
The user wants to know if Power Query can extract data from a live Excel workbook hosted on SharePoint, specifically regarding unsaved changes in an active session.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Connecting Power Query to an active Excel workbook hosted on SharePoint to pull real-time data.
- Observed behavior
- Power Query retrieves data from the last saved version of the SharePoint workbook, ignoring any unsaved changes currently held in memory by active users.
Ensure that you have appropriate read permissions for the SharePoint folder or file you are trying to connect to, and verify that the file path URL is correct.
Connecting to a SharePoint Workbook and Fetching Updates
Set up the connection properly and understand the requirement of saving the source file to retrieve new data.
Power Query reads data from the saved file on the SharePoint server, not from the local memory of an open Excel session. Therefore, any real-time edits made by you or another user will not be visible to Power Query until those changes are explicitly saved to SharePoint. Keeping your query in a separate destination workbook is highly recommended to prevent file lock issues or interference with the live source file.
Open the source workbook in the Excel desktop app, go to File > Info, click 'Copy Path', and remove the '?web=1' suffix from the copied URL.
In your separate destination workbook, go to Data > Get Data > From File > From Workbook (or From Web), and paste the SharePoint URL.
Before attempting to refresh your data in the destination workbook, ensure the source workbook on SharePoint has been saved so that all memory-only edits are committed to the disk.
In the destination workbook, navigate to Data > Refresh All to pull the newly saved changes from the SharePoint source file.

Manage Your Spreadsheets Seamlessly with WPS Office
While Power Query and SharePoint live connections are specific to the Microsoft ecosystem, WPS Office provides a lightweight, highly compatible alternative for everyday data analysis and spreadsheet management. It's free, fast, and fully supports standard Excel formats.
- 1. Download and Install: Get WPS Office Free from the official website and install it on your device.
- 2. Open Your Excel File: Launch WPS Spreadsheets and click 'Open' to load your existing .xlsx workbooks.
- 3. Analyze Data: Use WPS Spreadsheets' built-in tools like PivotTables, formulas, and charts to manage your data.

Frequently Asked Questions
Why does Power Query not show the latest data from a shared workbook?
Power Query reads the file saved on the server (or disk). If another user has the file open and is making changes, those changes exist only in their local memory until they save the document. Once saved, a Power Query refresh will fetch the updated data.
Can I connect Power Query to a SharePoint file that is currently open?
Yes, Power Query can read an open file stored on SharePoint. However, it will only retrieve the data as it was last saved to the server, ignoring any unsaved, real-time edits.
How do I avoid file lock errors when refreshing Power Query from SharePoint?
Keeping your queries in a separate destination workbook rather than the source workbook reduces interference and prevents file locking issues when multiple users are accessing the live SharePoint file.
Does AutoSave help Power Query get live updates faster?
Yes, if AutoSave is enabled on the SharePoint workbook, it frequently commits changes to the cloud. This makes the newly added data available to Power Query much quicker than waiting for a manual save.




