SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Why Malformed Emails in Segment Cause Downstream Errors

Question

Why does a malformed email address, such as one containing a double full stop at the end, appear in a Segment event payload and the user profile in Engage, and subsequently cause errors in downstream tools like Braze?

 

Product

Twilio Segment

 

Environment

Segment Console

 

Answer

Malformed email addresses in event payloads can occur if invisible Unicode control characters or extra punctuation are introduced when copying and pasting email addresses from sources like word processors, email clients, or web pages. 

Segment does not modify or sanitize event property values, so any formatting issues present in the original payload will be stored and forwarded to Engage spaces and downstream destinations. This can result in errors if the destination system enforces stricter email validation.

 

Additional Information 

  • To prevent such issues, ensure that email addresses are validated and sanitized before sending them to Segment.
  • Be cautious when copying data from sources that may introduce hidden characters, especially when working with internationalized text or right-to-left languages.

 

Have more questions? Submit a request
Powered by Zendesk