What you’ll see
A message describing a problem in the template. For example:
Malformed conditional merge field: IF|Account.Industry|EQ (missing comparison value)
Please check the syntax of the table group field: TableGroup:X
Please give each aggregate function in the query an alias.
Tables inside other tables are not supported in PowerPoint templates.
Could not open the file. Please make sure it is a Word document (.docx)
Why it happens
Something in the template or its setup can't be processed: a merge field written incorrectly, an unsupported layout, or a template file that is missing or in the wrong format. The message names the exact problem.
How to fix it
- Open the template and find the field or section named in the message. For how merge fields, tables and switches are written, see Template syntax basics.
- Correct it. Common problems:
- Conditional (IF) fields: every part of the condition is present, including the value to compare against. See Show or hide content with IF conditions and Handle special characters in IF conditions.
- Table group fields: the field name and separators are written exactly as documented in TableGroup.
- Queries with aggregate functions (COUNT, SUM, …): give each one an alias, for example
SUM(Amount) total. See Pull data into a template with a SOQL query. - PowerPoint templates: don't put a table inside another table. Use separate tables, or a Word template (Nested queries and nested tables).
- File type: the template is a real .docx, .xlsx or .pptx file, not a renamed or older .doc file. See Add a template.
- Save the template and generate the document again.
Who can fix it
- You (or whoever maintains the template): corrects the field or section named in the message.
- A Salesforce admin: corrects the solution's queries if the message is about a query.
- Docs Made Easy support: if the template matches the documented syntax and the message still appears.
What to send support
- the Error code and Reference from the message (copy the whole message if you can)
- the exact message text
- the template name and the solution name or ID, and the template file if you can share it
- the query text, if the message is about a query
- your Salesforce Org ID (How to share your Org ID)
- the time it happened, with your time zone