Dynamics 365 Word template limitations
Where the out-of-the-box Word template actually stops — repeating tables, conditionals, XML mapping, related records, the 100-record cap per relationship — and why none of it is a setting you can flip.
The Word template feature in Dynamics 365 is genuinely useful, and for a one-page document built from one record it is the right tool: it is free, it ships in the box, and a business user can build one without a developer. This piece is about the point where that stops being true.
Most of what people search for here — “if condition not working”, “repeating table not working”, “only showing 100 rows” — is not a bug and not a setting hidden behind a support ticket. It is the feature working exactly as Microsoft documents it. The frustration comes from expecting a reporting engine and getting a mail-merge. The failures below are each checked against Microsoft Learn, and each one names what you can actually do about it.
Why does the XML mapping break, and can you update it?
Because the XML mapping is a snapshot, not a live link. When you download a Dynamics 365 Word template, the entity and the relationships you ticked are baked into its XML schema. A missing field or relationship cannot be added afterwards; you download a fresh template with the right relationships selected and rebuild the layout.
A Dynamics Word template is built in Word itself. You enable the Developer tab, open the
XML Mapping Pane, pick the schema that starts with
urn:microsoft-crm/document-template/, then right-click a field and
Insert Content Control. That schema is the whole template. There is no live connection to
Dataverse — it is a snapshot of the entity and the relationships you ticked when you downloaded
the file.
That is what sits behind an “XML mapping error”, an XML mapping that is “not working”, and every search for how to “update XML mapping”. Two things bite here. First, if a field or a related entity is missing from the pane, there is nothing to “update” — you have to go back, download a fresh template with the right relationship selected, and rebuild. The mapping is not something you edit after the fact. Second, Microsoft's own documentation carries a warning that inserting any content control other than Plain Text or Picture, or making a textual change to a control (including the capitalisation AutoCorrect applies for you), can freeze Word hard enough to need Task Manager. The documented mitigation is to turn AutoCorrect off before you start. That is the state of the authoring surface.
Why are related records missing from a Word template?
Because only the relationships you selected in the download dialog exist in the template. Tick the 1:N, N:1 or N:N relationship before you download, or the related contacts, lines or activities never appear in the XML Mapping Pane. Even when they do, you cannot choose which related records come back or sort them.
This is what sits behind searches for “related records not showing” and “multiple records not showing”. The 1:N, N:1 or N:N relationships you tick on the download dialog, before you ever open Word, decide what exists in the XML schema. Miss one, and the contacts, lines or activities you expected simply are not in the pane, and there is no way to add them without downloading a new template.
Even when the relationship is present, you get no control over which records come back or in what order. Microsoft documents that lists “might not appear in the same order” as the app shows them, because records come out in the order they were created. There is no sort, and — see the next two sections — no filter and no ceiling you can raise. For a summary block that is fine. For an invoice whose lines must be grouped and ordered, it is a wall.
Can a Dynamics 365 Word template use if-conditions?
No. A Word template content control is a plain binding to one field: it prints the value if there is one and nothing if there is not. There is no documented syntax for conditional sections, hide-when-empty or “if the status is Won, show this paragraph”, so a conditional document needs a separate template or a different tool.
That is why searches for a Dynamics Word template “if condition example”, or for an “if condition not working”, come up empty: the feature does not exist. A control bound to a blank field prints nothing; a control bound to a value prints the value; that is the entire logic model.
This is the limitation people hit hardest, because real documents are conditional: a clause that appears only for one contract type, a payment block that changes with currency, a signature line that depends on value. Native Word templates cannot express any of it. The usual workaround — maintaining a separate template per variation — multiplies the maintenance rather than solving the problem.
Why does a Word template show only 100 rows?
Because Microsoft caps it. To keep documents downloading quickly, a Dynamics 365 Word template returns up to 100 related records for each relationship; an account template listing contacts returns at most 100 of them. The cap applies per relationship, no setting lifts it, and nothing in the document tells the reader that rows were dropped.
This one is documented, so it is worth stating precisely rather than as folklore. Microsoft's guidance is that, to keep documents downloading quickly, a template returns up to 100 related records for each relationship. Their own example: export an account template that lists contacts, and the document returns at most 100 of that account's contacts.
If a document is “only showing 100 rows”, this is the reason. It is not a cap you can lift with a setting, and it is per relationship, not per document. If your record has more than a hundred related rows — line items, transactions, timesheet entries — the document is silently short and nothing tells the reader that rows were dropped. A silent truncation on a document you send to a client is a different class of problem from a slow one, and it is the reason volume documents outgrow this feature first.
How do you format a date in a Dynamics 365 Word template?
You cannot, inside the template. Microsoft supports only Plain Text and Picture content controls in these templates, so a date arrives as the raw exported value and a number arrives unrounded and without separators. Formatting the control in Word changes the font, not the value; the value has to be shaped before it reaches the template.
There is no documented way to “format a date field”, or any other value, inside the template: you cannot ask for 31 December 2026, or two decimal places, or a thousands separator.
For anything customer-facing this matters more than it sounds. Dates and currency are exactly the fields a reader scrutinises, and “format the date” is not a job the native template was built to do. If the presentation of a value matters, it has to be shaped before it reaches the template, which native Word templates give you no hook to do.
How does a repeating table work in a Word template?
Put the repeating fields in one table row, select the row, then right-click the relationship in the XML Mapping Pane and choose Repeating; on generation the row multiplies down the table. It handles a simple list. It cannot express group headers, subtotals or nested tables, and it inherits the 100-record cap and creation-order sorting.
Repeating is supported, and it is the feature most templates are really built around, so it is worth being exact about what it does. In Microsoft's steps, you put the fields for the repeating rows into a single table row, select that row, then in the XML Mapping Pane right-click the relationship and choose Repeating. On generation the row multiplies down the table.
The limits are structural. A repeating region is one table row bound to one relationship, so a layout that needs a header row per group, a subtotal line, or a table nested inside a repeating block is not something the mechanism expresses. Combine that with no sort, no filter and the 100-row behaviour above, and the repeating table handles the simple list it was designed for and falls over on anything with structure inside it. When people say the repeating table “isn't working”, this shape mismatch is usually what they have run into.
Which content controls does a Dynamics 365 Word template support?
Two: Plain Text and Picture. Microsoft warns that inserting any other content control type, or making a textual change to a control after placing it, including AutoCorrect’s automatic capitalisation, can freeze Word badly enough to need Task Manager. A control gives you a value or a picture in place, with no formatting and no logic.
The content control is the unit the whole feature is built from, and its constraints are the
feature's constraints. Even the picture path has an edge:
many
entities have no EntityImage field out of the box, so putting a record's image into a
template first means creating an image field on the entity and populating it.
That is a deliberately small surface. It is enough for a letter and not enough for a document that has to make decisions about its own content.
Why doesn’t rich text render in a Word template?
Because the only text control available is Plain Text, so HTML stored in a rich-text field is not rendered as formatting. Worse, Microsoft documents that <, > and the non-breaking-space entity are unsupported in document export and the text between them is removed, so a rich-text field can lose content, not just formatting.
If you searched for “rich text not working”, the second half of that answer matters more than the first. The export behaviour is documented by Microsoft: the document exports successfully, but the fields and text between the unsupported characters are removed. Since rich text is stored as HTML full of angle brackets, exporting a rich-text field can silently drop content, not merely strip its formatting.
If your notes, descriptions or terms live in a rich-text field, this is not a styling nuisance; it is a data-loss risk on the finished document. The native template has no supported path for rendering rich text as rich text.
Can you filter related records in a Word template?
No. Records from the relationships you selected at download time come back whole, in creation order, up to 100 per relationship. You cannot ask a repeating region for only the open lines, only this year’s activities or only the primary contact; the usual workaround moves the filtering into a view or rollup in the data model.
Anyone looking for how to “filter a related entity” in a Word template will not find a setting, because the template consumes whatever the relationship returns.
In practice teams reach for a workaround: build a database view or a rollup that pre-filters the rows, then point the template at that. It can work, but you have now moved the real logic out of the template and into the data model, and you are maintaining both. That is the tell that the document has outgrown the tool — the interesting part of the work is no longer happening in the template at all.
Can you move a Dataverse Word template between environments?
No. Microsoft states that a document template only works in the environment where it was downloaded, and that environment-to-environment migration of Word and Excel templates isn’t supported. A template built and tested in a sandbox cannot be promoted to production like a solution component; it is recreated per environment, outside your ALM.
That environment binding is the usual reason a Dataverse Word template that worked in test is “not working” after the move, and it is worth knowing before you “create” one anywhere other than the environment that will use it.
And the authoring itself is particular: templates are created in specific desktop Word versions, macro-enabled documents aren't supported, and right-to-left languages have known formatting problems in the output. None of this makes Word templates bad. It makes them a document tool with a document tool's boundaries, and knowing the boundaries is the point.
What to do
Match the tool to the document rather than fighting the tool.
- Stay on native Word templates if the document is simple: one record, a short list that fits well inside a hundred rows, no conditional sections, no formatting you cannot pre-shape in the data. This is the majority of internal documents, and for them the built-in feature is free, supported and correct. Do not buy anything.
- Populate and convert with Power Automate if the volume is tiny and the layout is fixed. The Word Online (Business) connector’s Populate a Microsoft Word template and Convert Word Document to PDF actions give you a per-document flow — fine at low volume, but you own the flow, its per-run cost and its error handling, and it does not add conditional logic to the layout so much as move the branching into the flow.
- Move to a configuration-driven generator when repeating tables,
conditionals, related records or formatting are what actually break the layout — that is, when
the interesting work has left the template. SSS
DocGen generates documents from one Dataverse custom API,
sss_GenerateDocument, with templates authored as HTML and Handlebars and their data as FetchXML, all held as configuration in your own Dataverse. Handlebars gives you real conditionals and loops; FetchXML gives you filtering and sorting and no hundred-row behaviour; formatting is yours to express. It runs in the customer's own tenant with no Power BI Embedded, and it is priced in public at €1,200, €2,400 or €4,800 per tenant per year, exclusive of VAT.
The test is not how the document looks today. It is whether the document has to make decisions — show this clause but not that one, group and total these lines, drop the rows that do not apply. A native Word template cannot make decisions. Once your document has to, you have left what the feature was built for, and the honest move is to change tools rather than to keep a wall of near-identical templates alive.
SSS DocGen
When the Word template cannot make the document
SSS DocGen is for the point this article describes: conditionals, filtered related records, and layouts the 100-row Word template cannot express. Templates are HTML and Handlebars with FetchXML data, held as rows in your own Dataverse and rendered in your own Azure subscription. €1,200, €2,400 or €4,800 per tenant per year; dev and test environments are included. Simple one-record letters should stay on the free Word template.
Sources
Microsoft documentation and pricing pages this article relies on (checked 24 September 2026):
- Use Word templates to create standardized documents, Microsoft Learn
- Troubleshooting Word templates, Microsoft Learn
- Word Online (Business) connector reference, Microsoft Learn