Power Query Problems

How to Stop Power Query Refreshes from Running in a Loop in Excel

Khadija KhanKhadija Khan Nov 10, 2026 869 views

Question details

Users need to prevent Power Query from entering a continuous refresh loop or making repeated API requests when opening a workbook.

How to Stop Power Query Refreshes from Running in a Loop in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Opening an Excel workbook with multiple connected data queries, particularly when it is shared with new users who have different default privacy settings.
Observed behavior
Power Query repeatedly refreshes data or makes continuous API requests in an endless loop, often triggered by default or misconfigured privacy levels.
Before you start

Ensure your Excel workbook is saved and that you have the necessary credentials to authenticate all external data sources linked to your queries before modifying privacy settings.

Solution 1Recommended

Configure Data Source Privacy Settings and Permissions

Set explicit privacy levels for your data sources to prevent Excel from constantly re-evaluating query combinations and triggering a loop.

Power Query privacy settings prevent unauthorized data leakage by evaluating how sources combine. When these levels are mismatched or undefined, Excel may repeatedly request data, causing a loop.

1
Open Data Source Settings

Open Excel and navigate to the Data tab on the ribbon. Click on Get Data and select Data Source Settings from the dropdown menu.

2
Edit Source Permissions

Select the relevant data source from the list and click the Edit Permissions button at the bottom.

3
Assign a Privacy Level

Under the Privacy Level dropdown, assign the appropriate level (e.g., Public, Organizational, or Private) based on the confidentiality of the data.

4
Apply and Refresh

Click OK and then Close to apply the settings. Manually refresh your queries to verify that the infinite refresh loop has stopped.

Configure Data Source Privacy Settings and Permissions
Disabling Privacy Checks: If you completely trust all sources in the workbook, you can temporarily bypass privacy levels by going to Query Options > Privacy and selecting 'Ignore the Privacy Levels', though this is not recommended for sensitive data.
Free Microsoft Office alternative

Try WPS Office for Seamless Data Management

If complex Excel Power Query errors and background refresh loops are slowing down your workflow, consider using WPS Office. It provides a highly compatible, user-friendly spreadsheet environment that handles daily data analysis tasks smoothly without complicated background query loops.

  1. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package.
  2. 2. Install the Software: Run the downloaded installer and follow the on-screen prompts to complete the setup.
  3. 3. Open Your Spreadsheet: Launch WPS Spreadsheets and seamlessly open your existing Excel workbooks to analyze your data.
Fully compatible with Microsoft Excel (.xlsx, .xls, .csv) formats.Lightweight design ensures fast loading times even for large datasets.Intuitive interface familiar to Excel users, requiring zero learning curve.Built-in robust data analysis and pivot table tools without the heavy background processing.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Power Query keep asking for credentials or privacy levels?

This happens when the privacy levels for combined data sources are not explicitly defined. Power Query continuously prompts for these settings to prevent unauthorized data leakage between different sources.

Are Power Query privacy settings saved in the workbook for everyone?

No, privacy levels are generally user-specific and machine-specific. When a new user opens a shared workbook, Excel relies on their local default settings, which is why setup instructions are necessary for new users.

Can I turn off the Power Query privacy level checks entirely?

Yes, you can disable privacy checks by going to Data > Get Data > Query Options > Privacy, and selecting 'Always ignore Privacy Level settings'. However, this is only recommended if you fully trust all data sources involved.

What causes a circular reference in Power Query?

A circular reference occurs when Query A relies on the output of Query B, while Query B simultaneously relies on the output of Query A. This creates an infinite loop where neither query can finish loading.