When Excel shows a "Data Source Not Found" error, it means a connection, query, or linked table is pointing to a file, database, or web address that Excel cannot reach. The fastest fix is to open the data connection properties and update the path or credentials, then refresh. If you are not sure which source is broken, use the Queries & Connections pane to inspect every connection in the workbook. This guide walks through the reliable fixes in order, from simplest to most thorough, so you can get your data flowing again without rebuilding the workbook.
What You'll Need
- The workbook that shows the error, opened in Excel for Windows or Mac (steps below note where they differ).
- The correct location of the source file or database, or the correct web address.
- Any sign-in credentials the source requires, and permission to read the file or database.
- Network access to the drive, server, or site hosting the data.
Step-by-Step
- Identify the broken connection. On the Data tab, click Queries & Connections to open the pane. Look for a query or connection with a warning icon or an error message. Right-click it and choose Properties to see the source path or address. Labels in the ribbon and dialog boxes can differ slightly by Excel version, platform, and region.
- Check the source exists at that exact path. Copy the path from the connection properties and paste it into File Explorer (Windows) or Finder (Mac). If the file was moved, renamed, or deleted, that is your cause. Restore the file to its original location or note the new path for the next step.
- Update the connection path. In the Queries & Connections pane, right-click the connection and choose Properties. On the Definition tab, edit the Connection string or File path to the correct location. Click OK, then right-click the connection and choose Refresh. For Power Query queries, open the query in the Power Query Editor, use the Source step settings to point to the new path, then click Close & Load.
- Re-enter credentials if prompted. If the source is a database, SharePoint list, or web service, Excel may need you to sign in again. When a refresh prompts for credentials, choose the correct authentication type (for example, Windows, Database, or Organizational account) and sign in. If you are not prompted but still get an error, open Data > Get Data > Data Source Settings, select the source, and choose Edit Permissions to clear and re-enter credentials.
- Confirm network and drive access. If the source is on a network share or server, open it directly in File Explorer or Finder first. If you cannot open it there, the problem is permissions or connectivity, not Excel. Map the drive again or ask the person who manages the share to grant read access.
- Repair broken links in formulas and pivot tables. If the error comes from a linked table or external reference rather than a query, go to Data > Edit Links (called Edit Links to Files in some versions). Select the link, click Change Source, and point it to the correct file. If the link is no longer needed, click Break Link. Breaking a link replaces formulas with their current values, so keep a backup copy first.
- Refresh everything and save. Click Refresh All on the Data tab. If the error clears, save the workbook so the corrected path is stored. If a query still fails, open it in the Power Query Editor and step through the Applied Steps to see exactly which step throws the error; the step name often reveals whether the problem is the path, a missing column, or a permission issue.
Common Mistakes
- Fixing only one connection. A workbook can hold several queries and links. Refresh All after each fix so you catch every broken source, not just the first one.
- Editing the wrong path field. Connection properties can show both a file path and a connection string. Change the field that actually points to the missing source; editing the other has no effect.
- Breaking links without a backup. Break Link is permanent for formulas. Save a copy of the workbook before you use it.
- Assuming it is an Excel bug. Most "Data Source Not Found" errors come from a moved file, a renamed sheet or table, an expired sign-in, or a lost network drive mapping.
- Ignoring case and spacing in web addresses. Web queries fail if the URL changed even slightly, including a trailing slash or a different subdomain.
Tips
- Keep source files in a stable shared location rather than on a desktop or in a downloads folder that gets cleaned up.
- Use table names instead of cell ranges in queries; tables survive inserted rows and renamed sheets better.
- Before sharing a workbook, run Refresh All on the recipient's network to catch path problems early.
- If you use Power Query, give each step a clear name so a future error points you straight to the cause.
- Document the source path in a cell or a hidden notes sheet so the next person can reconnect quickly.
Troubleshooting
If the steps above do not clear the error, work through these checks in order:
- Close and reopen Excel. A stale connection can persist until the app restarts. Save your work first.
- Check the source is not open exclusively elsewhere. Some files and databases lock while another user has them open for editing. Ask others to close the file, then refresh.
- Test with a new simple query. Use Data > Get Data to connect to the same source in a blank workbook. If that also fails, the problem is the source or your permissions, not the original workbook.
- Clear stored credentials. In Data Source Settings, edit permissions for the failing source and re-enter credentials. This is safe and does not delete data.
- Recreate the query as a last resort. If the query file itself is damaged, rebuild it from the same source. Keep the old workbook until the new query refreshes correctly.
- Check for add-in interference. Disable third-party add-ins temporarily (File > Options > Add-ins) and refresh again. Re-enable them one at a time to find the culprit.
Frequently Asked Questions
Why does Excel say data source not found when the file is clearly there?
Excel is usually looking at an old path, a mapped drive that changed letter, or a location your account cannot read. Open the connection properties and compare the stored path with the real one.
Can I fix this without rebuilding my pivot table?
Yes. Use Data > Edit Links to change the source file, or update the connection in Queries & Connections and refresh. Rebuilding is only needed if the query itself is corrupted.
Does this error affect Excel on Mac the same way?
The cause is the same, but menu names and dialog layouts differ. On Mac, look for the same commands under the Data tab and the connection properties; some external data features vary by version.
What happens if I break a link to a missing source?
Formulas that depended on the link are replaced with their last calculated values. The data stays, but it no longer updates. Save a backup before breaking links.
Will refreshing fix a renamed sheet or table?
No. Renaming a sheet or table breaks the query reference. Open the query in Power Query Editor and update the step that names the sheet or table, then refresh.
Can a firewall or VPN cause this error?
Yes. If the source is on a network or the web, a firewall, VPN, or proxy can block Excel. Test the same address in a browser on the same machine to confirm connectivity.