File Corruption & Recovery

Repair an Excel Workbook with Corrupted Queries or External Links

Maira MehtabMaira Mehtab Nov 22, 2026 868 views

Question details

Recover an Excel workbook that opens with a repair message and loses queries, external links, or external data ranges.

Repair an Excel Workbook with Corrupted Queries or External Links
Product
Microsoft Excel and SharePoint
Device & OS
not provided
Scenario
A workbook stored in SharePoint contains queries or connections to external data sources.
Observed behavior
Excel reports that it repaired the workbook and removed query information, external links, or external data ranges.
Before you start

Download the workbook from SharePoint and identify the affected queries or external data sources, if possible. Use the Excel desktop app for Open and Repair, and review the recovery message for the items Excel removed.

Solution 1Recommended

Use Excel Open and Repair on the downloaded workbook

Use Excel's built-in repair feature to attempt to recover the workbook before rebuilding it.

1
Download the workbook

In the SharePoint document library, select the workbook and choose Download.

2
Open the file picker

In the Excel desktop app, select File > Open > Browse and locate the downloaded workbook.

3
Run Open and Repair

Select the file, click the arrow next to Open, and choose Open and Repair. Select Repair when prompted.

4
Check the recovered content

Review the repair message, then open Data > Queries & Connections and check the workbook links to see what survived. Save the repaired workbook under a new name.

5
Extract data if repair fails

Repeat File > Open > Browse > Open and Repair, then choose Extract Data if Excel cannot repair the workbook. Check the extracted values and formulas.

Use Excel Open and Repair on the downloaded workbook
Some connections may not be recovered: Open and Repair or Extract Data may recover worksheet content without restoring damaged queries or external links. Recreate any missing connections after checking the result.
Free Microsoft Office alternative

Work with Excel Files in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface for opening and editing Excel files. Its format compatibility makes it easy to move everyday workbook tasks to WPS, although it does not repair Excel-specific queries or connections.

Open and edit compatible Excel XLSX and XLS filesReview and work with recovered worksheet contentUse a familiar spreadsheet interface for everyday tasksMove compatible Office documents between applications
microsoft office alternative - wps office

Frequently Asked Questions

Where is Open and Repair in Excel?

In the Excel desktop app, select File > Open > Browse, select the workbook, and click the arrow next to Open. Choose Open and Repair, then select Repair.

Can Excel restore queries that were removed during repair?

Not always. Check Data > Queries & Connections after repair. If a query is missing, use Data > Get Data to reconnect to the source and recreate it.

How can I find an earlier SharePoint version?

In the SharePoint document library, open the workbook's More options menu and select Version history. Open or download an earlier version and check whether its queries and links work before restoring it.

Why does the problem affect only one workbook?

The affected workbook's query structure, connection, or external data source may be involved. Compare its connections under Data > Queries & Connections with those in workbooks that open normally.

What should I do if earlier versions also lose their queries?

Create a blank workbook, copy unaffected cell ranges into it, and use Data > Get Data to rebuild the required queries. Test the connections with Data > Refresh All.