Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Cannot Refresh Data? Fix It Step by Step

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

When Excel says it cannot refresh data, the cause is almost always one of four things: a broken connection to the source, credentials that have expired, a file path or query that has moved, or a privacy-level conflict between sources. Start by opening Data > Queries & Connections, right-click the query that failed, and choose Refresh to see the exact error message. That message tells you which of the four you are dealing with and saves you from guessing. The steps below walk through each fix in order of how often it works, from a simple sign-in refresh to rebuilding a broken connection.

What You'll Need

  • Excel desktop (Windows or Mac) with the query or connection already set up. The web version has limited refresh options and cannot fix most connection errors.
  • The sign-in details for the data source (database, SharePoint, web service, or file share).
  • Access to the original file or server if the source is a local workbook or network path.
  • Permission to edit the query and, if needed, the workbook's connection settings.

Step-by-Step

  1. Read the error message first. Go to Data > Queries & Connections, right-click the failing query, and choose Refresh. Note the exact wording. Messages like "We couldn't authenticate" point to credentials; "The remote server returned an error" points to the source being unreachable; "The column 'X' of the table wasn't found" points to a schema change.
  2. Check the source is reachable. If the data comes from a website, open that URL in a browser. If it comes from a network file, open the folder in File Explorer or Finder. If it comes from a database, confirm the server is running and you can connect with the same credentials from another tool. If the source is down, no amount of Excel tweaking will help.
  3. Refresh your credentials. In Data > Queries & Connections, right-click the query and choose Edit. In Power Query Editor, go to Home > Data Source Settings (or Data Source Settings on the Home tab). Select the source and click Edit Permissions or Clear Permissions, then sign in again. For OAuth sources such as SharePoint or OneDrive, sign out of the account in File > Account > Sign out, then sign back in.
  4. Fix file paths that have moved. If the source is another workbook, open Data > Queries & Connections > right-click the query > Edit. In Power Query, go to Home > Advanced Editor and look at the file path in the source step. If the file moved, update the path. Alternatively, use Data > Get Data > Data Source Settings to change the file path without editing the query.
  5. Resolve privacy-level conflicts. Go to Data > Get Data > Query Options > Privacy. If "Combine data according to your Privacy Level settings" is on and your query pulls from two sources with different privacy levels, Excel may block the refresh. Either set matching privacy levels for each source or, if you trust the sources, choose "Ignore the Privacy Levels" for this workbook. Do not ignore privacy levels on shared or untrusted sources.
  6. Check the query for schema changes. If the source added, removed, or renamed a column, the query's steps will fail. Open the query in Power Query Editor and step through the Applied Steps pane. The step that errors is usually highlighted. Delete or adjust that step, then close and load again.
  7. Test a manual refresh of a single connection. In Data > Queries & Connections, right-click one connection and choose Refresh. If that works but "Refresh All" fails, the problem is a different query or a conflict between them. Disable background refresh for the workbook (Data > Connections > Properties > uncheck Enable background refresh) and try Refresh All again.
  8. Repair the workbook if refresh still fails. Save a copy first. Then use File > Open > Browse, select the file, click the arrow next to Open, and choose Open and Repair. This can fix corrupted connection definitions. If repair does not help, recreate the query from scratch using Data > Get Data and the same source.

Common Mistakes

  • Ignoring the exact error text and trying random fixes. The message names the failing step or source; start there.
  • Clearing permissions on a shared workbook without telling other users. They will be prompted to sign in again, and automated refreshes may fail until they do.
  • Changing the privacy level to "Ignore" on a workbook that pulls from public and internal sources. That can expose internal data to a public source in combined queries.
  • Assuming the web version of Excel can refresh every connection. Many external connections require the desktop app.
  • Deleting a query instead of editing it. Deleting removes the connection and any loaded tables, and you will need to rebuild them.

Tips

  • Keep a note of the exact source paths and sign-in method for each query. When refresh fails, you can check each one quickly.
  • Use Data > Queries & Connections > Connections > Properties to set refresh on open only for sources you know are available; otherwise open the workbook without refreshing to avoid errors.
  • If a query is slow or fails intermittently, refresh it alone rather than using Refresh All. That isolates the problem.
  • For shared workbooks, store credentials in a way that other users can access, or use a service account where your organization allows it. Do not share personal passwords in the workbook.
  • Before changing privacy levels or clearing permissions, save a backup copy of the workbook so you can revert.

Troubleshooting

If the steps above did not fix it, work through these checks in order. First, confirm the workbook is not open in another program or locked by another user; a read-only copy cannot refresh some connections. Second, check whether the source requires a VPN or is behind a firewall that has changed. Third, try the same query in a new blank workbook to see whether the problem is the workbook or the source. If a new workbook also fails, the issue is outside Excel: contact the source owner or your IT team. If only the original workbook fails, recreate the query in the original file or restore from a backup. Finally, if the error mentions a specific driver or provider, update it through the vendor's official download page; do not install drivers from third-party sites.

Frequently Asked Questions

Why does Excel say it cannot refresh data when the source is online?

Usually because the sign-in has expired or the query is using stored credentials that are no longer valid. Clear the permissions for that source and sign in again.

Can I refresh data in Excel for the web?

Some connections can refresh in the browser, but many external sources require the desktop app. If the refresh button is greyed out or fails only in the browser, open the file in Excel desktop.

What does a privacy-level error mean?

Excel is blocking a query that combines data from sources with different privacy levels. Set matching levels or, only if you trust the sources, ignore privacy levels for that workbook.

Will refreshing break my formulas or pivot tables?

Refreshing updates the data, not the formulas. Pivot tables based on the query will update when the query refreshes, but if columns were renamed or removed, formulas that reference them may return errors.

How do I stop a query from refreshing automatically when I open the workbook?

Go to Data > Queries & Connections, right-click the connection, choose Properties, and uncheck Refresh data when opening the file.

Is it safe to click "Ignore Privacy Levels"?

Only if every source in the query is trusted and you understand the data flow. On shared or public sources, leave privacy levels on.