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!