RaiseError

Pass an error message if an error occurs.

OrdinalTypeDescription
1StringRequired. The error message to pass.
2BooleanRequired. Indicates whether error applies to current message recipient or entire send job. If the value is true, the error applies only to the current message recipient. If the value is false, the error applies to the entire send job.
3StringRequired. A user-defined error code. Use this property to provide a short description of the error.
4NumberRequired. A user-defined error number. Use this property to provide an error code for reference purposes.

This code example attempts to set the value of a variable based on the recipient's first name attribute. If the attribute isn't found, the code logs the error to a data extension and raises an exception.