Data Import & Export

Fix Excel External Table Refresh Failed Due to Different File Paths

John WilsonJohn Wilson Oct 10, 2026 869 views

Question details

Users encounter a DataSource error when attempting to refresh an Excel workbook containing external tables that are synchronized via SharePoint across multiple computers.

Fix Excel External Table Refresh Failed Due to Different File Paths
Product
Excel
Device & OS
Windows
Scenario
Refreshing external data connections in a shared Excel workbook synced through local SharePoint folders.
Observed behavior
The external table refreshes successfully on the original author's computer but throws a DataSource error on another computer because the local Windows file paths (C:\Users\[Username]\...) differ between user profiles.
Before you start

Ensure you know the exact local file path of the synchronized SharePoint folder on the computer that is currently experiencing the refresh error.

Solution 1Recommended

Update Connection Properties to the Correct Local File Path

Modify the connection string definition in Excel to point to the current user's specific local SharePoint directory.

When Excel files are synced via SharePoint to local drives, the absolute path typically includes the specific Windows username. If another user opens the file, Excel still attempts to query the original author's path, triggering a DataSource error.

1
Open Data Connections

Navigate to the 'Data' tab on the Excel ribbon and click on 'Queries & Connections' to open the connections pane.

2
Access Connection Properties

Locate the specific data connection that is failing, right-click on it, and select 'Properties'.

3
Edit the Definition

Switch to the 'Definition' tab. Find the 'Connection string' or file path field at the bottom of the window.

4
Update the File Path and Refresh

Replace the old username or file path with the correct local path for the current computer. Click 'OK', then click 'Refresh All' to update the table data.

Update Connection Properties to the Correct Local File Path
Disabled Connection Strings: If the connection string is disabled and cannot be edited in the Definition tab (often the case with Power Query), you will need to update the path by opening 'Get Data' > 'Power Query Editor' and changing the 'Source' step in the Applied Steps panel.
Free Microsoft Office alternative

Looking for a Hassle-Free Spreadsheet Experience?

External data connection errors frequently occur in Microsoft Excel due to strict local path syncing configurations. If you want an easier way to manage, share, and collaborate on your spreadsheets without complex local path errors, try WPS Office.

  1. 1. Download and Install: Get the free version of WPS Office from the official website and follow the simple installation prompts.
  2. 2. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing .xlsx files directly without any formatting loss.
  3. 3. Collaborate via WPS Cloud: Upload your workbook to WPS Cloud to share it with your team, ensuring everyone accesses the same real-time data source without local path mismatches.
Fully compatible with Microsoft Excel (.xlsx, .xls, .csv) formats.Free, lightweight, and easy to install on Windows, Mac, and Linux.Built-in cloud collaboration tools to eliminate local file path syncing conflicts.Familiar user interface requiring zero learning curve for Excel users.
microsoft office alternative - wps office

Frequently Asked Questions

Why do Excel external connections fail when shared with other users?

When external data queries rely on a local file path (such as a locally synced SharePoint folder), the path includes the original computer's specific Windows username. When opened on another computer, Excel tries to find that exact path, resulting in a DataSource error because the new user's directory name is different.

How can I avoid local file path errors in shared Excel workbooks entirely?

Instead of linking to a locally synced SharePoint folder, use the web URL of the SharePoint file in your data connection string. This ensures the data path is accessible to anyone with proper network permissions, regardless of their local machine's folder structure.

What should I do if the connection definition is disabled and cannot be edited?

If the connection string is grayed out under the Definition tab, it is likely managed by Power Query. Go to Data > Get Data > Power Query Editor, select your query, click the gear icon next to 'Source' in the Applied Steps panel, and browse to select the updated local file path.