Skip to main content

Troubleshooting

This guide helps you resolve common issues with notification templates.

Template Validation Errors

These errors appear when saving a template that contains invalid syntax or exceeds size limits.

Syntax Error: Invalid Handlebars Syntax

Error Message: “Invalid Handlebars syntax” or “Unexpected token” Common Causes:
  1. Unbalanced brackets
    • Every {{#if}} needs a closing {{/if}}
    • Every {{#each}} needs a closing {{/each}}
  2. Incorrect helper syntax
    • Verify helper names are spelled correctly.
    • Check that parentheses are balanced.
  3. Missing quotes in string attributes
    • String values must be quoted.
Solution:
  • Use the Validate button in the template editor before saving.
  • Check brackets are balanced: each opening has a closing pair.
  • Verify helper names match exactly (case-sensitive).
  • Add quotes around string values in helper attributes.
Important: Double-quote all string values in Handlebars attributes: status='Failed' is incorrect, use status="Failed" instead.

Max Length Error: Template Exceeds 65,536 Characters

Error Message: “Template body exceeds maximum length” Common Causes:
  • Template is too comprehensive.
  • Too many examples or detailed change descriptions.
  • Large data structures being displayed without filtering.
Solutions:
  1. Simplify the template
    • Remove unnecessary formatting.
    • Remove comments.
    • Use shorter variable names where possible.
  2. Use the limit helper In the examples below, changes comes from {{#with (groupEventChanges event.changeDescription) as |changes|}}.
  3. Show summaries instead of details
  4. Remove conditional sections for optional data
  5. Split into multiple templates
    • Create separate templates for detailed vs. summary views.
    • Use different templates for different entity types.

Field Name Not Recognized

Error Message: Template doesn’t render field, shows empty string Common Causes:
  • Incorrect property path.
  • Property doesn’t exist for this entity type.
  • Typo in property name.
Solution:
  1. Verify property names
  2. Use conditionals for optional fields
  3. Check for property availability by entity type

Notifications Not Rendering Correctly

These issues occur when a template is saved successfully but produces garbled or missing output in delivered notifications.

Notifications Look Garbled or Misformatted

Symptoms:
  • Text appears without line breaks.
  • HTML tags visible in notification.
  • Formatting looks different on different channels.
Common Causes:
  • HTML is malformed.
  • Characters aren’t escaped properly.
  • Channel-specific formatting issues.
Solutions:
  1. Validate HTML
    • Ensure all HTML tags are properly closed.
    • Use standard HTML tags (not XHTML self-closing unless valid).
  2. Validate the template
    • Click Validate in the template editor to check the syntax.
  3. Send test notifications
    • Test to your actual Slack/email/Teams channels.
    • Verify formatting in each platform.
  4. Check special characters
    • Characters like <, >, & need escaping in HTML.
    • Use &lt;, &gt;, &amp; instead.

Template Selected But Not Showing

Symptoms:
  • Notifications are sent but template isn’t being used.
  • Using default formatting instead of custom template.
Causes:
  • Template not selected in subscription.
  • Subscription is inactive.
  • Event type doesn’t match what subscription is listening for.
Solutions:
  1. Verify template is selected
    • Go to Settings > Notifications > Subscriptions.
    • Edit the subscription.
    • Confirm the Notification Template dropdown has your template selected and is not blank.
  2. Check subscription is active
    • Enable/activate the subscription.
    • Verify it’s not disabled.
  3. Verify event types match
    • Subscription must be listening to entity updates that match your template.
    • Example: Template for tables won’t be used for dashboard updates.

Missing Data in Notifications

These issues occur when a template renders successfully but displays blank values or empty sections.

Template Shows Empty Values

Symptoms:
  • Owner: appears with no value.
  • Sections are blank even though field should exist.
  • Links or data don’t appear.
Common Causes:
  • Data doesn’t exist for this entity instance.
  • Property name is different than expected.
  • Data is nested differently.
Solutions:
  1. Use conditionals to handle missing data
  2. Check property availability
  3. Verify nested properties exist
Note: If a field is missing, the template renders an empty string. Always use conditional logic to prevent empty sections.

Change Data Not Displaying Correctly

Symptoms:
  • Updated fields showing as empty.
  • Can’t see what changed in the notification.
Causes:
  • Not using groupEventChanges helper.
  • Trying to access raw change description.
Solution: Always use groupEventChanges to organize change data:
These issues occur when notification links return 404 errors or navigate to the wrong entity. Symptoms:
  • Clicking link in notification shows 404 error.
  • Link goes to wrong entity.
Causes:
  • Incorrect entity type in URL.
  • baseUrl is not configured.
  • Entity IDs have changed.
Solutions:
  1. Use buildEntityUrl helper
  2. Verify baseUrl is set
    • The system should automatically set baseUrl.
    • Check if your Collate URL is configured correctly.
  3. Test links
    • Send test notifications.
    • Click links and verify they work.

Helper Issues

These issues occur when a helper is called incorrectly or produces unexpected output.

Helper Not Found or Returns Wrong Result

Symptoms:
  • “Helper not found” error.
  • Helper name is red/underlined in editor.
  • Results are unexpected.
Common Issues:
  1. Misspelled helper name
  2. Wrong number of arguments
  3. Arguments in wrong order
Solution:
  • Check Custom Helpers Reference
  • Verify exact helper name and argument order.
  • Click Test Template in the alert form to test.

Best Debugging Practices

Follow these practices to diagnose template issues quickly and avoid common mistakes.

1. Validate Frequently

In the template editor, click Validate to catch syntax errors early. Validation doesn’t check whether a placeholder exists.

2. Send Test Notifications

In the alert form, click Test Template to:
  • Send to real email/Slack/Teams.
  • Verify how it actually appears to users.
  • Test with your actual notification setup.

3. Start Simple

When building templates:
  • Start with basic template.
  • Add features one at a time.
  • Test each addition.

4. Ask for Help

Provide:
  • The template code.
  • What error or unexpected behavior occurs.
  • What data you expected to see.
  • Screenshots of the validation or test results.