Excel Error Codes

Fix Excel Repaired Worksheet Properties Errors

Phi Hung VoPhi Hung Vo Oct 29, 2026 868 views

Question details

The user is attempting to diagnose a file repair prompt in Excel that states 'Repaired records: Worksheet properties from /xl/worksheets/sheet1.xml part,' which occurs despite the file functioning normally in other software.

How to Diagnose and Fix Excel Repaired Worksheet Properties Errors
Product
Microsoft Excel
Device & OS
not provided
Scenario
Opening a generated or modified XLSX workbook that contains customized XML elements.
Observed behavior
Excel displays a repair dialog upon opening and removes the worksheet properties. The issue is traced to an excessively long or invalid codeName attribute in the file's XML structure.
Before you start

Always create a backup copy of your original XLSX file before extracting and modifying its internal XML structural files.

Solution 1Recommended

Manually Edit the Worksheet XML CodeName

Extract the XLSX archive and manually shorten the codeName attribute in the worksheet XML to bypass Excel's strict validation limits.

Excel uses a strict character limit for the worksheet codeName attribute (often utilized for VBA object naming). If the codeName exceeds approximately 22 characters or contains non-printable characters, Excel will flag the file as corrupted and strip the worksheet properties upon opening.

1
Change File Extension

Locate your problematic .xlsx file in File Explorer and rename the extension from .xlsx to .zip. If you cannot see file extensions, enable 'File name extensions' under the View tab.

2
Extract the Archive

Right-click the newly renamed .zip file and select 'Extract All...' to unpack the internal XML contents into a new folder.

3
Locate the Worksheet XML

Navigate to the extracted folder, open the 'xl' folder, and then open the 'worksheets' folder. Locate the file named 'sheet1.xml' (or the specific sheet identified in your repair log).

4
Edit the CodeName Attribute

Open the XML file using a basic text editor like Notepad. Search for the '<sheetPr' element. Look for the 'codeName=' attribute inside this tag and shorten its value to under 22 characters containing only standard ASCII letters.

5
Repackage the XLSX File

Save your changes to the XML file. Select all the extracted files and folders, right-click, and choose 'Compress to ZIP file'. Finally, rename the new ZIP archive's extension back to .xlsx.

Manually Edit the Worksheet XML CodeName
Verification: After renaming the file back to .xlsx, double-click it to open in Excel. The file should now load immediately without displaying the 'Repaired records' dialog.
Free Microsoft Office alternative

Seamlessly Open and Edit Spreadsheets with WPS Office

Struggling with Excel's strict XML validation rules and frustrating repair loops? WPS Office offers a highly compatible and resilient alternative that easily handles files with minor XML anomalies, allowing you to open, view, and edit complex XLSX files effortlessly without unexpected data loss.

  1. 1. Download and Install: Visit the official website to download WPS Office for free and complete the quick installation.
  2. 2. Open Your Spreadsheets: Launch WPS Spreadsheets and open your problematic XLSX files directly, bypassing strict XML repair warnings.
  3. 3. Save and Export: Edit your data as usual. When you save, WPS automatically optimizes structural integrity while maintaining broad format compatibility.
Fully compatible with Microsoft Office formats, ensuring seamless handling of XLSX, XLS, and CSV files.High tolerance for minor XML and formatting anomalies, bypassing continuous repair loops.Free, lightweight, and features a familiar tabbed interface for a zero-learning-curve transition.
microsoft office alternative - wps office

Frequently Asked Questions

What causes the 'Repaired records: Worksheet properties' error in Excel?

This error is typically triggered when Excel attempts to parse the internal XML of an XLSX file and encounters a 'codeName' attribute within the '<sheetPr>' element that is invalid, contains non-ASCII characters, or exceeds Excel's strictly enforced character limit.

Is there a character limit for the codeName attribute in Excel?

Yes. While standard user-facing sheet names allow up to 31 characters, the backend codeName attribute—which is heavily tied to VBA object identification—frequently triggers XML repair errors if it exceeds 22 characters.

How can I view the details of an Excel repair log?

When Excel repairs a corrupted file, it opens a summary dialog window. Clicking the hyperlink provided in this dialog will open an XML-based log file in your web browser, detailing exactly which paths (like '/xl/worksheets/sheet1.xml') were discarded or repaired.

Why does my XLSX file open perfectly in other programs but fail in MS Excel?

Different spreadsheet applications utilize distinct XML parsing engines. Microsoft Excel employs exceptionally strict validation rules for OpenXML documents—especially regarding properties that interact with VBA—whereas alternative suites are often designed to be more tolerant of minor structural variances.