Fix Excel External Table Refresh Failed Due to Different File Paths
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.

- 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.
Ensure you know the exact local file path of the synchronized SharePoint folder on the computer that is currently experiencing the refresh error.
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.
Navigate to the 'Data' tab on the Excel ribbon and click on 'Queries & Connections' to open the connections pane.
Locate the specific data connection that is failing, right-click on it, and select 'Properties'.
Switch to the 'Definition' tab. Find the 'Connection string' or file path field at the bottom of the window.
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.

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. Download and Install: Get the free version of WPS Office from the official website and follow the simple installation prompts.
- 2. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing .xlsx files directly without any formatting loss.
- 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.

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.




