There are several possible causes for the following error message: One or more templates failed to merge or operation was cancelled:
- Related to a bad merge field or mismatching TableStart and TableEnd merge fields in a detail region.
- Data containing double quotes are being merged into a Microsoft Word IF Statement.
A good start is to remove paragraphs (or entire pages for larger templates) and repeat the merge until you find the issue. Then you can correct the detail region or IF Statement causing the problem.
If the issue is with a detail region:
You can receive this error message if the TableStart and TableEnd merge fields are not in the same row of the detail region. The correct usage of TableStart and TableEnd merge fields looks like:
If the issue is with an IF Statement: