Error Notifications

Every workflow step can have one or more notification rules that trigger emails when specific conditions are met. This is the primary way to monitor data pipeline health.

Notification Triggers

Each notification has a trigger condition:

Trigger When it fires Use case
On Error The step throws an error Pipeline failures
On False expression An evaluate expression returns false Assertion failures
On True expression An evaluate expression returns true Positive confirmations
On Success The step completes without error Completion confirmations

Basic Error Notification

Add to every step — alerts the team when a step fails:

Setting Value
Trigger On Error
Notify via Email
Title ERROR: My Pipeline Step
Body {{ $log_html }}

The {{ $log_html }} variable injects the formatted step execution log, giving recipients immediate context about what went wrong.

Assertion Failure Notification

On evaluate steps used for assertions, trigger on On False expression:

Setting Value
Trigger On False expression
Notify via Email
Title My Table: Assertion FAILED "uniqueness"
Body The following uniqueness assertion failed:\n\n{{ $assertion_sql }}

Including {{ $assertion_sql }} (or relevant parameters) in the body helps recipients debug without opening the UI.

Multiple Notifications Per Step

A single step can have multiple notification rules. Common pattern for assertions:

  1. On False expression — "Assertion failed" (data quality issue)
  2. On Error — "Assertion errored" (query/infrastructure issue)

First notification:

Setting Value
Trigger On False expression
Title My Table: Assertion FALSE "uniqueness"
Body {{ $log_html }}\n→ Primary key has duplicates

Second notification:

Setting Value
Trigger On Error
Title My Table: Assertion ERROR "uniqueness"
Body {{ $log_html }}\n→ There was an issue running the assertion query

Notification Title Patterns

Use consistent naming patterns for easy email filtering:

Pattern Example
ERROR: <table_name> ERROR: analytics.daily_revenue
<table> | Error "<step_name>" Daily Orders | Error "Create table"
<table> | False "Assertion: <type>" Daily Orders | False "Assertion: uniqueness"
! Report Error: "<report_name>" ! Report Error: "monthly_sales_summary"

Available Template Variables

Use these in notification titles and bodies:

Variable Description
{{ $log_html }} Full step execution log (HTML formatted)
{{ $response.* }} Values from the step's query response
{{ $assertion_sql }} The generated SQL (from parameter queries)
Any workflow param Referenced via {{ $param_name }}

Tips

  • Always add an error notification to every step — silent failures are the enemy of data quality
  • Use {{ $log_html }} as the default body — it provides the most useful debugging information
  • Add direct links to the workflow edit page in the body for quick access
  • Pair error notifications with assertions for comprehensive monitoring
  • Send to multiple recipients by including multiple user IDs in the notification config