When Excel says it is unable to refresh, the cause is almost always one of four things: a broken or moved data source, lost credentials, a blocked network path, or a corrupted connection file. The fastest working sequence is to click Data > Queries & Connections, open the query's properties, and use Test Connection to confirm whether Excel can still reach the source at all; then re-enter credentials, check the file path or server name, and only after that rebuild the query. Most refresh failures clear at the credential or path step, before you need to touch the query itself.
What You'll Need
- Excel for Windows or Mac with the workbook that is failing to refresh, saved to a local or OneDrive folder you can write to.
- The original data source details: file path, SharePoint or OneDrive URL, database server and database name, or web address.
- Valid sign-in credentials for that source, and permission to read it.
- Network access to the source (office network or VPN, if the source is internal).
- Optional: a copy of the workbook to test changes safely. Keep the original until the refresh works.
Step-by-Step
- Read the exact error text first. Hover over the error in the refresh status area or open Data > Queries & Connections and look at the message next to the failing query. Note whether it mentions credentials, a file not found, a network or timeout error, or a formula or type error. The wording tells you which of the steps below applies. Menu labels vary slightly by Excel version, platform and region.
- Confirm the source still exists. For a file-based source, open the folder and check the file has not been renamed, moved or deleted. For a SharePoint or OneDrive source, open the URL in a browser and sign in. For a database, confirm the server name and database name with whoever owns it. If the path changed, update it in the query rather than recreating everything.
- Test the connection. In Data > Queries & Connections, right-click the query and open Properties, then use the connection or definition tab's Test Connection option where it is offered. A pass means the problem is in the query steps or credentials; a fail means the source or network is unreachable.
- Re-enter credentials. In the same Properties dialog, open the credentials or authentication section and sign in again. Choose the correct authentication method for the source (Windows/Organizational account for internal SharePoint, database authentication for SQL sources, anonymous or API key only where the source genuinely allows it). If your password changed recently, this is the most common single fix.
- Check the privacy level and permission settings. If the query combines sources, Excel may block refresh when privacy levels conflict. In Data > Get Data > Query Options, review the privacy section and set levels that match your organization's policy rather than ignoring them. If you are not sure, ask your administrator; do not set everything to Ignore Privacy Levels on a shared workbook.
- Refresh one query at a time. Use Data > Refresh All only after single queries work. Right-click one query and choose Refresh. This isolates which query is failing instead of hiding the error inside a batch.
- Check background refresh and file locks. In the query's Properties, look at the refresh options. If the source file is open by someone else, or the workbook itself is open in another session, refresh can fail with a lock error. Close the other copy, or ask the other person to close the source file.
- Update Excel and the Power Query components. Install the latest updates through your normal update channel, then reopen the workbook. Older builds can fail on newer authentication methods.
- Rebuild only as a last resort. If the query definition itself is corrupted, create a new query from the same source with the same steps, then point your formulas, PivotTables and charts at the new table. Keep the old query until the new one refreshes cleanly.
Common Mistakes
- Clicking Refresh All repeatedly without reading the error; the same failure just repeats.
- Deleting and recreating the query before checking credentials and paths, which loses custom steps and column names.
- Using a mapped network drive letter for a source. Drive letters differ between computers; use the full UNC path (\\server\share\file.xlsx) instead.
- Saving the workbook to a location the refresh process cannot write to, such as a read-only folder or a synced folder that is paused.
- Ignoring privacy levels on combined queries, then assuming the data is wrong when Excel is actually refusing to combine it.
- Refreshing a workbook that is open in another Excel session or checked out by someone else in SharePoint.
Tips
- Give each query a descriptive name in the Queries & Connections pane so error messages point to something meaningful.
- Keep a short note in the workbook of each source's path, server and authentication type; it makes future failures much faster to diagnose.
- Test a refresh after any change to a source file's name, location or column headers, before you share the workbook.
- If the workbook is shared, refresh it yourself before sending, so recipients are not the first to hit the error.
- For web sources, check that the page still returns the same table structure; a redesigned page can break a query even when the connection is fine.
Troubleshooting
If Test Connection fails, work outward from the machine: confirm you are on the right network or VPN, open the source URL or server in a browser or file explorer, and check with the source owner that it is online and your account still has access. If the source is reachable but Excel still refuses, sign out of your Microsoft account in Excel and sign back in, then reopen the workbook.
If refresh works for you but fails for a colleague, the difference is usually credentials or permissions on the source, not the workbook. Compare the authentication method each of you uses.
If the error mentions a formula, type or column, the connection is fine and the data changed shape. Open the query in the Power Query Editor and step through the applied steps to find the step that errors, then adjust it to the new column names or types.
If refresh is extremely slow or times out, reduce the columns and rows pulled in the query, and check whether the source itself is slow for other users. Do not raise timeouts as a first move; fix the volume first.
Before any step that deletes a query, clears credentials for all workbooks, or resets an Office profile, note what is lost: custom query steps, saved credentials and personal settings. Keep a copy of the workbook.
Frequently Asked Questions
Why does Excel say it cannot refresh when the source file is clearly there?
Usually the path Excel stored is different from the path you are looking at, for example a mapped drive letter versus the full network path, or a moved OneDrive folder. Check the exact path in the query's properties.
Does refresh fail if the source workbook is open?
It can. Some sources lock while open, and the workbook being refreshed may also be locked by another session. Close other copies and try again.
Can I refresh without signing in again every time?
Yes, if you save credentials in the connection settings and your organization's policy allows it. Otherwise Excel will prompt each session.
Why does Refresh All work but a single query fails?
That points to a dependency or privacy-level issue between queries, or to one query's credentials being stale. Refresh queries one at a time to find the culprit.
Will rebuilding the query fix a corrupted connection?
Often yes, but try credentials, paths and updates first. Rebuilding means redoing custom steps and repointing any formulas or PivotTables that used the old table.
Is it safe to set privacy levels to ignore?
Only if your organization permits it. Ignoring privacy levels can expose data across sources, so confirm with your administrator first.