How to Fix Duplicate Letters in a Word Mail Merge
Question details
The user needs to prevent duplicate letters from generating during a conditional mail merge that uses INCLUDETEXT fields.

- Product
- Word
- Device & OS
- not provided
- Scenario
- Performing a conditional mail merge using a CSV data source, which unexpectedly outputs duplicate letters with differing layouts.
- Observed behavior
- The merge produces two copies of each letter (one with address fields, one starting with the salutation) even though the source CSV contains no duplicate records.
Before modifying field codes, make a backup copy of your main merge document, your CSV data source, and all referenced template files to prevent accidental data loss.
Simplify INCLUDETEXT and QUOTE Field Codes
Improperly structured field codes can cause duplication. Wrapping the INCLUDETEXT field in a QUOTE field ensures content embeds correctly without duplicating cross-references.
When using conditional mail merges to call external documents, the way you nest your field codes is crucial. The duplication may be caused by bookmarked or cross-referenced content being replicated unintentionally through the INCLUDETEXT field.
Open your main mail merge document and press 'Alt + F9' (or 'Fn + Alt + F9' on some laptops) to toggle the display of all field codes.
Find the conditional field linking your documents. Restructure and simplify it to exactly match this syntax: {QUOTE{INCLUDETEXT "your_file_path\\{MERGEFIELD Letter}.docx"}}.
Ensure that the '{MERGEFIELD Letter}' value pulled from your CSV exactly matches the filenames of the referenced external documents.
Press 'Alt + F9' again to hide the field codes. Click 'Preview Results' to verify the duplication is resolved before completing the merge.

Review Referenced Documents for Replicated Bookmarks
Hidden bookmarks within the external documents called by your main merge document might be causing the duplicated output.
Perform Complex Mail Merges Flawlessly with WPS Writer
WPS Writer provides a powerful, highly compatible Mail Merge toolkit that supports advanced field codes like INCLUDETEXT. With its intuitive preview and data source management, you can build conditional documents without worrying about unexpected formatting or duplicate outputs.
- 1. Open Mail Merge: Launch WPS Writer, navigate to the 'References' tab, and click the 'Mail Merge' button to activate the tool.
- 2. Link Data Source: Click 'Open Data Source', locate your CSV file, and load your contact or variable data into the document.
- 3. Insert Merge Fields: Use the 'Insert Merge Field' option to accurately place your data points, or press 'Ctrl + F9' to manually input conditional brackets.
- 4. Preview and Export: Click 'View Merged Data' to check for any errors or duplicates, then select 'Merge to New Document' to generate your finalized letters safely.

Frequently Asked Questions
What does an INCLUDETEXT field do in a Word mail merge?
An INCLUDETEXT field is an advanced function used to dynamically pull the entire contents of an external document into your current main merge document, allowing for highly modular and conditional letter generation.
Why is it important to wrap INCLUDETEXT in a QUOTE field?
Wrapping it in a QUOTE field forces the word processor to embed the fetched text directly as plain text in the final output document. Without it, the final document may maintain active links to the source files, which can cause erratic behavior or duplicates when the document updates.
How do I view or hide field codes in a document?
You can toggle between viewing the field code formulas (like {MERGEFIELD}) and their actual text results by pressing 'Alt + F9' on your keyboard. On some laptops, you may need to press 'Fn + Alt + F9'.
What if my CSV has no duplicates, but I still get duplicate pages?
If the source data is clean, the duplication is likely occurring within the document structure itself. This includes hidden duplicated field codes, accidental page breaks paired with repeated fields, or overlapping INCLUDETEXT references pulling the same file twice.




