RaiseError
Pass an error message if an error occurs.
Ordinal | Type | Description |
---|---|---|
1 | String | Required. The error message to pass. |
2 | Boolean | Required. 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. |
3 | String | Required. A user-defined error code. Use this property to provide a short description of the error. |
4 | Number | Required. 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.