logo
search
Power Query Problems

Fix Power Query Only Refreshes After Opening SharePoint Excel File

Maira MehtabMaira Mehtab Sep 22, 2026 869 views

Question details

The user is experiencing an issue where a Power Query using Web.Contents to pull data from a SharePoint-hosted Excel file only refreshes after the file has been manually opened, while other files in the same folder work normally.

Product
Microsoft Excel / SharePoint
Device & OS
not provided
Scenario
Refreshing data via Power Query from a SharePoint-hosted Excel file that is automatically retrieved and saved by a Power Automate flow.
Observed behavior
The data refresh fails or hangs until the specific third-party file is manually opened in Excel, despite having identical permissions and folder locations as fully functioning files.
Before you start

Ensure you have the necessary SharePoint access rights and verify that your Power Query connection credentials for Web.Contents are up to date.

Solution 1Recommended

Isolate the Issue with a Test Query

Create a separate, simplified query to determine if the problem is specific to the file's current query configuration or the file itself.

Testing a brand-new query against the problematic workbook helps rule out caching issues or complex transformation steps that might be causing the refresh failure.

1
Open a blank workbook

Open Excel and create a new, blank spreadsheet.

2
Start a new query

Navigate to the Data tab, click on 'Get Data' > 'From Web', and enter the SharePoint URL for the problematic Excel file.

3
Load and test

Load the data without applying complex transformations. Try refreshing this new query without opening the source file to see if the issue persists.

Free Microsoft Office alternative

Try WPS Office for Seamless Spreadsheet Management

If you are frustrated by complex SharePoint syncing issues and Power Query refresh errors, try WPS Office. It provides a lightweight, highly compatible, and user-friendly spreadsheet environment without the overhead of complex background data connections.

  1. 1. Download and Install: Visit the official WPS Office website to download and install the free software on your device.
  2. 2. Open Your Spreadsheets: Launch WPS Spreadsheets and seamlessly open your existing Excel files without worrying about formatting loss.
  3. 3. Edit and Collaborate: Use the familiar interface to analyze data, create charts, and share documents effortlessly.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Lightweight installation and lightning-fast loading speeds.Free to use with a familiar, intuitive tabbed interface.Built-in cloud syncing capabilities for easy team collaboration.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query require opening a file to refresh?

This typically happens if the file is generated by a third-party system or saved by Power Automate without fully committing the required Excel metadata. Opening and saving the file manually writes the correct metadata, allowing Power Query to read it.

Can Power Automate corrupt Excel files during transfer?

Yes, if a flow extracts an attachment incorrectly or saves it with a mismatched extension, the file might become locked or unreadable by Power Query until it is manually opened, repaired, and re-saved.

How do I fix Web.Contents credentials in Power Query?

Go to Data > Get Data > Data Source Settings, select your SharePoint URL, click Edit Permissions, and ensure you are using Organizational Account credentials to sign in rather than Anonymous or Windows authentication.