imported template, error: String index out of range: 15020 near ? | Community
Skip to main content
Community Advisor
November 7, 2015
Question

imported template, error: String index out of range: 15020 near ?

  • November 7, 2015
  • 2 replies
  • 1789 views

Eek - was hammering out an email template that was supposed to go out tomorrow (Sunday) - now I'm up against a wall becuase I'm getting an error when trying to approve or test send ... anyone get this before?  (the original template was downloaded from Litmus)

I'm getting the following error when attempting to send a sample email. An error occurred when procesing the email Rendered_Email_Velocity_Error_Area_?! String index out of range: 15020 near ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Grégoire_Miche2
Level 10
November 7, 2015

Hi JD,

Are you using a Velocity scrip token in your email ?

If so, try to remove it and reapprove and let us know whether the error remains.

-Greg

Josh_Hill13
Level 10
November 7, 2015

+1 on Greg.

You should never just drop an email template in there w/o reviewing the code. But the real issue is the Velocity Script that's being run on the Program level. Sounds like something's wrong there or it conflicted with the template code.

Also, providing the unique link to your template is 1) not a good idea and 2) doesn't help since we cannot see it. Best to post the code itself here or on github if you want feedback.

JDNelson1Community AdvisorAuthor
Community Advisor
November 7, 2015

Thanks Josh - didn't notice that I had left the link in there - didn't mean to. Can you expand more on the 'velocity script that's being run at the program level' reference?

Grégoire_Miche2
Level 10
November 8, 2015

Hi JD,

It means that there is a Velocity Scrip token in the program (either defined at program level or inherited from a folder) that raises that error when it runs.

-Greg