Document Editing Problems

How to Fix Duplicate Letters in a Word Mail Merge

Adam DavisAdam Davis Oct 23, 2026 871 views

Question details

The user needs to prevent duplicate letters from generating during a conditional mail merge that uses INCLUDETEXT fields.

How to Fix Duplicate Letters in a Conditional Word Mail Merge
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 you start

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.

Solution 1Recommended

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.

1
Reveal Field Codes

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.

2
Locate and Simplify the Target Field

Find the conditional field linking your documents. Restructure and simplify it to exactly match this syntax: {QUOTE{INCLUDETEXT "your_file_path\\{MERGEFIELD Letter}.docx"}}.

3
Verify Document Names

Ensure that the '{MERGEFIELD Letter}' value pulled from your CSV exactly matches the filenames of the referenced external documents.

4
Preview and Merge

Press 'Alt + F9' again to hide the field codes. Click 'Preview Results' to verify the duplication is resolved before completing the merge.

Simplify INCLUDETEXT and QUOTE Field Codes
Field Formatting Tip: Using the QUOTE field forces the referenced content to be fully embedded into the mail-merge output, cutting off active links to the source file that might trigger duplications.
Seamless Mail Merge

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. 1. Open Mail Merge: Launch WPS Writer, navigate to the 'References' tab, and click the 'Mail Merge' button to activate the tool.
  2. 2. Link Data Source: Click 'Open Data Source', locate your CSV file, and load your contact or variable data into the document.
  3. 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. 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.
Fully compatible with Microsoft Word .docx formats and advanced field codesUser-friendly Mail Merge wizard that simplifies data mappingSeamless support for CSV, Excel, and Text data sourcesLightweight, fast, and completely free to download
microsoft office alternative - wps office

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.