SELECT AccountID, OYBAccountID, JobID, ListID, BatchID, SubscriberID, SubscriberKey, EventDate, IsUnique, Domain, BounceCategoryID, BounceCategory, BounceSubcategory, BounceType, CASE WHEN SMTPBounceReason LIKE '5.1.1 Undelivered Mail Returned to Sender%' THEN '5.1.1 Undelivered Mail Returned to Sender' ELSE Substring(Replace(Replace(SMTPBounceReason, Char(10), ''), Char(13), ''), 1, 4000) END AS SMTPBounceReason, SMTPMessage, SMTPCode, TriggererSendDefinitionObjectID, TriggeredSendCustomerKey FROM _bounce WITH (nolock) WHERE SMTPBounceReason LIKE '%' + Char(13) + '%' OR SMTPBounceReason LIKE '%' + Char(10) + '%'Below is an example flow of how the Automation Structure would look as described at the beginning of this article:
Do note that this does not solve for all problematic situations that may arise with SMTP Bounce Reason data but is a common piece of data that causes problems. Further customization may be needed sanitize this output as the characters that are being searched for above are by no means comprehensive.
000380266

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.