Skip to content

Templates

Template error messages

When a template has a problem, you’ll see a message explaining what’s wrong. Here are the most common ones.

MessageCauseFix
Missing closing curly braces near ...An opening {{ has no matching }}.Add the closing }}.
A single opening curly brace cannot designate a data marker ...Only one { where two are needed.Use {{ and }} in pairs.
A single closing curly brace is not allowed ...A stray }.Use }} to close.
MessageCauseFix
<name> is not definedThe data marker isn’t recognised.Check the spelling and pick it from the marker list.
The helper '<name>' does not existA helper name is misspelled.Check the helper name (e.g. #if, #foreach).
<name> is not an data marker or variable nameThe name breaks the naming rules.Use lowercase letters, numbers, dots, and underscores.
MessageCauseFix
No {{#endif}} close tag foundAn #if has no #endif.Add {{#endif}}.
No {{#endforeach}} close tag foundA #foreach has no #endforeach.Add {{#endforeach}}.
MessageCauseFix
'#foreach' statement is not defined correctly.The #foreach line is malformed.Check the marker and any sorting instruction.
'<name>' is not a list.You’re looping over something that isn’t a list.Use a list marker (e.g. matter.timerecords).
MessageCauseFix
Calculation cannot be empty#calc has nothing to calculate.Add an expression, e.g. {{#calc property.price / 10}}.
variable declaration must contain an '=' sign#var is missing =.Use {{#var $x = ...}}.
'<name>' is not a valid name for a variableThe variable name is invalid.Start with $ and follow the naming rules.
Decimal places must be a whole number of 0 or more#ceil / #floor was given a fractional or invalid decimal-places argument.Use a whole number, e.g. {{#ceil $x = property.price / 100 2}}, or omit it for 0.
MessageCauseFix
Expected an operator but got <x> at position ...Two values with no operator between them.Add an operator like =, >, or and.
Expected an operand but got <x> at position ...An operator with nothing to act on.Check the expression is complete.
'<x>' is not a valid parameterA value in the condition isn’t valid.Use a marker, number, or quoted text.
MessageCauseFix
#calc is too long or nested too deeply (or #var, #ceil, #floor)One calculation has too many operators or brackets.Work it out in smaller #var steps.
The condition is too long or nested too deeplyOne condition joins too many parts with and / or, or nests too many brackets or nots.Split it into smaller conditions, such as nested #if blocks.
The template is nested too deeply to fill inLoops are nested inside one another too deeply, often with a long calculation or condition inside them.Split them into smaller parts.
The template's loops repeat too much content to fill inLoops nested inside one another, or over very long lists, repeat too much content.Take a loop out from inside another loop, or loop over a shorter list.
This template is too long to check: ...The template is over 100,000 characters.Split it into smaller templates.

Inside a #foreach, a message starts Inside {{#foreach ...}}:. The check runs a loop over one example row, so the loop messages may only appear when the template is filled in with a matter’s real lists, and the template then produces nothing. Word templates and staff email signatures have no length limit; the firm’s shared signature is limited to 20,000 characters.


← Property tax helpers · Contents · Worked example →