Expand my Community achievements bar.

SOLVED

Error while evaluating document: JST-310000 error while compiling script, SCR-160032 Javascript, JST-310007 Unable to compile script

Avatar

Level 1

see this issue, when I try to import an email with dynamic content.

 

image001.png

 

This is from the code below:

 

<!--START OF BANNER WITH REP PERSONALIZATION -->
<% if ( targetData.additionalAttribute.RepEmail != '' ) { %>

<tr style="border-collapse:collapse">
<td class="es-m-p15b es-m-p15r es-m-p15l" align="left" bgcolor="#ffffff" style="padding:0;Margin:0;padding-bottom:25px;padding-left:35px;padding-right:35px;background-color:#FFFFFF">
<table cellpadding="0" cellspacing="0" width="100%" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">
<tr style="border-collapse:collapse">
<td align="left" style="padding:0;Margin:0;width:610px">
<table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0"><h2 style="Margin:0;line-height:23px;mso-line-height-rule:exactly;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;font-size:15px;font-style:normal;font-weight:normal;color:#636466">GETTING IN TOUCH</h2></td>
</tr>
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0"><h2 style="Margin:0;line-height:30px;mso-line-height-rule:exactly;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;font-size:20px;font-style:normal;font-weight:normal;color:#636466"><strong>Speak to your Sanofi Representative</strong></h2></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr style="border-collapse:collapse">
<td align="left" bgcolor="#ffffff" style="padding:0;Margin:0;padding-left:35px;padding-right:35px;background-color:#FFFFFF">
<!--[if mso]><table style="width:610px" cellpadding="0" cellspacing="0"><tr><td style="width:182px" valign="top"><![endif]-->
<table cellpadding="0" cellspacing="0" class="es-left" align="left" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:left">
<tr style="border-collapse:collapse">
<td class="es-m-p20b" align="left" style="padding:0;Margin:0;width:182px">
<table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0;font-size:0px"><img src="zaf_03252020_photoRep<%=targetData.additionalAttribute.RepPhotoName %>.jpg" alt style="display:block;border:0;outline:none;text-decoration:none;-ms-interpolation-mode:bicubic" width="150" height="150"></td>
</tr>
</table></td>
</tr>
</table>
<!--[if mso]></td><td style="width:10px"></td><td style="width:418px" valign="top"><![endif]-->
<table cellpadding="0" cellspacing="0" class="es-right" align="right" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;float:right">
<tr style="border-collapse:collapse">
<td align="left" style="padding:0;Margin:0;width:418px">
<table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0;padding-left:20px;padding-right:20px"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:20px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:30px;color:#636466"><%= targetData.additionalAttribute.RepFirstname %> <%= targetData.additionalAttribute.RepLastname %></p></td>
</tr>
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0;padding-top:10px;padding-left:20px;padding-right:20px"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:16px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:24px;color:#636466"><%= targetData.additionalAttribute.RepPhone %></p></td>
</tr>
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0"><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:14px;font-family:arial, 'helvetica neue', helvetica, sans-serif;line-height:21px;color:#333333"><br></p><p style="Margin:0;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-size:20px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;line-height:30px;color:#333333"><br></p></td>
</tr>
</table></td>
</tr>
</table>

<!--[if mso]></td></tr></table><![endif]--></td>
</tr>

<!--END OF BANNER WITH REP PERSONALIZATION -->

<!--START OF GENERIC BANNER -->
<% else { %>
<tr style="border-collapse:collapse">
<td class="es-m-p15r es-m-p15l" align="left" bgcolor="#ffffff" style="padding:0;Margin:0;padding-left:35px;padding-right:35px;padding-bottom:40px;background-color:#FFFFFF">
<table cellpadding="0" cellspacing="0" width="100%" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">
<tr style="border-collapse:collapse">
<td align="left" style="padding:0;Margin:0;width:610px">
<table cellpadding="0" cellspacing="0" width="100%" role="presentation" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px">
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0"><h2 style="Margin:0;line-height:23px;mso-line-height-rule:exactly;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;font-size:15px;font-style:normal;font-weight:normal;color:#636466">GETTING IN TOUCH</h2></td>
</tr>
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0;padding-bottom:20px"><h2 style="Margin:0;line-height:30px;mso-line-height-rule:exactly;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;font-size:20px;font-style:normal;font-weight:normal;color:#636466"><strong>Speak to the Sanofi Team for more information</strong></h2></td>
</tr>
<tr style="border-collapse:collapse">
<td align="center" style="padding:0;Margin:0"><span class="es-button-border" style="border-style:solid;border-color: #525ca3;background:#525ca3;border-width:0px;display:block;border-radius:5px;width:200px;"><a href="https://www.sanofi.co.za/en/contact-us" class="es-button" target="_blank" style="mso-style-priority:100 !important;text-decoration:none;-webkit-text-size-adjust:none;-ms-text-size-adjust:none;mso-line-height-rule:exactly;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;font-size:16px;color:#FFFFFF;border-style:solid;border-color:#525ca3;border-width:10px 20px 10px 20px;display:block;background:#525ca3;border-radius:5px;font-weight:bold;font-style:normal;line-height:19px;width:auto;text-align:center">Contact Us</a></span></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>

<% } %>
<!--END OF GENERIC BANNER -->

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

This rather looks like concerning Campaign Classic.

Though I can also help here:

<% else { %>

You are missing a } before the else keyword causing this compile error

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

This rather looks like concerning Campaign Classic.

Though I can also help here:

<% else { %>

You are missing a } before the else keyword causing this compile error