How to Fix Repeated Word Index Entries and Incorrect XE Fields
Question details
The user is encountering duplicated index entries in a long document, which are likely caused by corrupted or improperly nested XE (Index Entry) fields.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Generating and updating an index for a lengthy document, such as a genealogical record or manuscript.
- Observed behavior
- The generated index displays repeated word entries starting after a specific page or section, due to damaged fields, bookmarks, or copied entries.
Before modifying hidden formatting marks and index fields, make sure to create a backup copy of your long document to prevent accidental data loss.
Inspect and Remove Damaged XE Fields
Use hidden formatting marks to locate the corrupted index fields on the problematic pages, delete them, and manually recreate the index entries.
In Word documents, index entries are driven by hidden XE fields. When these fields become corrupted, nested, or accidentally duplicated via copy-pasting, the final index will generate repeated entries. Removing the damaged fields is the most direct fix.
Go to the 'Home' tab on the top ribbon and click the 'Show/Hide ¶' button in the Paragraph group to display hidden text and XE fields.
Scroll to the specific page or section where the indexing problem first appears. Look for the curly bracket formatting that denotes an index entry, which looks like { XE "Word" }.
Highlight the entire corrupted or duplicated XE field (including the curly brackets) and press the 'Delete' key on your keyboard.
Highlight the word again, go to the 'References' tab, and click 'Mark Entry' to recreate it properly. Finally, right-click your document's Index and select 'Update Field' to apply the changes.

Rebuild the Index in a New Document
If document corruption is isolated to a specific section and deleting XE fields doesn't work, moving unaffected content to a new document can resolve underlying XML errors.
Create and Manage Indexes Flawlessly in WPS Writer
WPS Writer provides a robust and user-friendly way to create, manage, and update document indexes, helping you avoid field corruption and duplication issues often found in long documents.
- 1. Open your document: Launch WPS Writer and open your long document.
- 2. Mark index entries: Navigate to the 'References' tab, select the text you want to index, and click 'Mark Entry'.
- 3. Insert the index: Go to the end of your document or wherever you want the index to appear, and click 'Insert Index' in the References tab.
- 4. Update seamlessly: Whenever you make changes, simply right-click the index and choose 'Update Field' to refresh your entries without duplicating them.

Frequently Asked Questions
What is an XE field in Word?
An XE (Index Entry) field is a hidden formatting mark used to flag specific text that should appear in the document's generated index. It typically looks like { XE "Text" } when hidden marks are revealed.
How do I make hidden XE fields visible?
You can view hidden XE fields by navigating to the Home tab and clicking the Show/Hide ¶ button (the paragraph symbol). This toggles the visibility of all hidden formatting marks in your document.
Why does my index show duplicate entries for the exact same word?
Duplicate entries often occur if the word was marked multiple times with slightly different capitalization, extra trailing spaces, or if the XE field was accidentally copied and pasted. Word treats variations in spacing or casing as entirely different entries.




