Validation Error message when approving email

Description description

Issue Description
When attempting to approve an email or send a sample email you get the following error message:

Validation Error approving [ email name]

An error occurred when processing the email Rendered_Email_Velocity_Error_Area_?! < /div> < p>

String index out of range: xxx”

Resolution resolution

Issue Resolution
This typically happens when you have a Velocity script token in the text version of your email. Velocity script tokens are not supported in email text versions. You’ll need to manually replace this line with the appropriate link or use a my token. Instructions how to edit the text version and use my tokens can be found here:

https://experienceleague.adobe.com/docs/marketo/using/product-docs/email-marketing/general/creating-an-email/edit-the-text-version-of-an-email.html?lang=en

https://experienceleague.adobe.com/docs/marketo/using/product-docs/email-marketing/general/using-tokens/using-urls-in-my-tokens.html?lang=en
Who This Solution Applies To
Customers using Velocity script tokens

recommendation-more-help
experience-cloud-kcs-help-kbarticles