Skip to content

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 a 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>'Two values with no operator between them.Add an operator like =, >, or and.
Expected an operand but got '<x>'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.

← Property tax helpers · Contents · Worked example →