RedirectTo() in content should fail if there is an error in the AMPscript in preview
Trailblazer Community

RedirectTo() in content should fail if there is an error in the AMPscript in preview

Marketing Cloud Email Studio

Last updated 2020-04-27 ·Reference W-7034018 ·Reported By 2 users

No Fix

Summary
When using RedirecTo() in content builder the contents is not evaluated until the email actually sends. It should evaluate the contents of the AMPscript to make sure it is valid during a preview.

This is not a bug but a product limitation of Marketing Cloud at this moment and we are considering the improvement the preview feature.

Repro
- Create an email with AMPSscript method RedirectTo() and some typo like this:
<a href="%%=RedirectTo(@URL)=%%=%%>Link</a>
*extra =%%

- Open Preview of the email and no error is shown.
- Send it, then, it fails.

Workaround
1) Please code AMPscript with care.
2) Use test sending feature before actual sending for end users.

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.