medium impactSTUDYAMPscript

RaiseError Can Skip the Send but Still Show Up in Tracking Metrics

Tracking/report counts include recipients for which RaiseError prevented the email from being sent.

Context Pack →Open Workspace →
Trust & provenanceSTUDY
Evidence tierSTUDYOfficial sources1Other sources0Last verifiedNot recorded

Evidence tier describes my hands-on relationship with the content. Official sources describe platform contracts/documentation. Production observations should not automatically be treated as official limits.

Why it bites

Salesforce documents that messages are built/preprocessed before sending, and tracking/reporting metrics can include emails not sent because RaiseError() was called.

What to check
  1. Was RaiseError used for genuine error handling or as segmentation logic?
  2. Are business metrics treating tracking rows as proof of actual send?
Make it cheaper next time
  1. Use audience queries/exclusion lists for segmentation.
  2. Reserve RaiseError for exceptional conditions and document its reporting effect.
ampscriptraiseerrortrackingsegmentation
Sources / verification