logo
search
Power Query Problems

How to Fix Power Query Keeping an Excel Source Workbook Locked

Huma Ashraf ChHuma Ashraf Ch Oct 9, 2026 869 views

Question details

The user needs to resolve an issue where Power Query locks a source Excel file during an active connection, which prevents other collaborators from editing or saving it.

How to Fix Power Query Keeping an Excel Source Workbook Locked
Product
Microsoft Excel
Device & OS
not provided
Scenario
Multiple users are collaborating on Excel files, and one workbook is extracting data from another using a Power Query connection.
Observed behavior
Power Query keeps the source workbook open or locked in the background while the query connection is active, blocking other users from saving changes to that source file.
Before you start

Ensure that the destination workbook is completely closed by all users before testing to see if the source file lock has been released.

Solution 1Recommended

Allow Query Connection to Finish and Close File

The most straightforward solution is to ensure the query refresh operation completes and then close the destination file to sever the active connection lock.

1
Wait for refresh completion

Check the status bar at the bottom of the Excel window to confirm that the Power Query data refresh has finished completely.

2
Close the destination workbook

Save any necessary changes in your destination workbook, then close the file entirely. This action ends the active query connection.

3
Verify lock release

Have another user attempt to open, edit, and save the original source workbook to confirm that the background lock has been successfully removed.

Allow Query Connection to Finish and Close File
Connection Terminated: Closing the destination file immediately terminates active Power Query background processes holding the lock on your source data.
Free Microsoft Office alternative

Try WPS Office for Seamless Spreadsheet Collaboration

If you are frustrated by persistent file-locking issues and complicated data connection errors in Microsoft Excel, consider switching to WPS Office. It provides a fast, lightweight, and highly compatible spreadsheet experience without the heavy background processes that cause local file locks.

  1. 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite for your operating system.
  2. 2. Open Your Spreadsheet: Launch WPS Spreadsheets and open your existing .xlsx or .csv data files directly.
  3. 3. Collaborate Freely: Use WPS Cloud collaboration tools to edit documents with your team simultaneously without encountering local file lock errors.
Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv).Free and lightweight, avoiding the heavy background processes of legacy queries.Built-in cloud features for smooth, conflict-free team collaboration.Familiar tabbed interface ensuring a zero learning curve for Excel users.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query lock my Excel file in the first place?

Power Query places a read/write lock on the source workbook while a connection is active to ensure data integrity during the extraction and refresh process. This prevents the source data from changing mid-refresh.

Will saving the destination file release the source lock?

Not necessarily. Saving alone does not terminate the query connection. You must allow the query to finish refreshing and completely close the destination workbook to guarantee the background lock is released.

Does the intermediate file workaround permanently fix the locking issue?

No, it only shifts the problem. Your original source file becomes free to edit, but the intermediate file will now be locked when the final workbook queries it. You will also need to manually open and refresh the intermediate file to push updates through.

How can I force Excel to release a locked file if the query crashed?

If Excel crashes but leaves a background process running, the file may remain locked. You can press Ctrl + Shift + Esc to open the Task Manager, locate any lingering 'Microsoft Excel' background processes, and end the task to force the lock to drop.