parse error unexpected token invalid token merge field error placeholder error curly braces column name wrong syntax error

Why am I seeing "ParseError: unexpected token"?

Learn how to resolve the "ParseError: unexpected token" in SecureMailMerge caused by invalid merge fields or incorrect placeholder syntax in Outlook.

What This Error Means

One of your personalization tokens (the {ColumnName} placeholders) is invalid. This usually means there’s a typo or formatting issue.

How to Fix It

Check your token syntax

Every personalization token needs:

  • Two curly braces on each side: {{FirstName}} not {FirstName}
  • Exact column name spelling, must match your spreadsheet exactly, including capitalization

Common mistakes

WrongCorrect
{FirstName}{{FirstName}}
{{firstname}}{{FirstName}} (if your column is “FirstName”)
{{ FirstName }}{{FirstName}} (no spaces inside braces)
{{First Name}}{{FirstName}} (no spaces in column names)

How to check your column names

  1. Open your spreadsheet
  2. Look at the first row, these are your column names
  3. Make sure each token in your email matches a column name exactly

Ready to improve your mail merge?

SecureMailMerge for Outlook

Runs inside Outlook, with no external app needed.

Windows Mac Web New Outlook
Try Free in Outlook

Free version, no credit card required.
Purchase license to remove promotional footer.