Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Personalization block error sending email

Avatar

Avatar
Validate 1
Level 2
priyal_b
Level 2

Likes

14 likes

Total Posts

47 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
priyal_b
Level 2

Likes

14 likes

Total Posts

47 posts

Correct Reply

3 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
priyal_b
Level 2

11-05-2018

Folks,

I see this issue, while I ise a personalization block as part of URL component in email delivery:

Error while compiling script 'content htmlContent' line 72: syntax error (line='}\ ' token='}\ '). SCR-160032 JavaScript: error while compiling script 'content htmlContent'. JST-310007 Unable to compile script (content htmlContent).

-------

The short/basic  version of personalization block is:

<%if (recipient.country.label == "Australia"||"United Kingdom"){%><%=recipient.country.iana%><%}

else{%>uk<%}%>

Within the delivery I am trying to use it part of URL..

https://www.xyz.com/<%@ include view='trpPB' %>/en/home.html

The compilation error doesnt appear while doing preview in Preview tab of delivery but rather after delivery has executed, and it goes in retry pending until,validity ends.

Any thoughts?

TIA!

Replies

Avatar

Avatar
Validate 1
Level 2
LeonieSwart
Level 2

Likes

12 likes

Total Posts

30 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
LeonieSwart
Level 2

Likes

12 likes

Total Posts

30 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
LeonieSwart
Level 2

18-07-2018

Hi!

This probably won't fix your issue. But I think there's an issue with your IF statement.

It should be: <%if (recipient.country.label == "Australia" || recipient.country.label == "United Kingdom"){%>