Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

What does error message "Error while compiling script 'content htmlContent' line 117: targetData is not defined. SCR-160012 Javascript: error while evaluating script 'content htmlContent'" mean?

Avatar

Level 1

Dear All,

 

I am unable to send delivery with personalization block. The error message says "Error while compiling script 'content htmlContent' line 117: targetData is not defined. SCR-160012 Javascript: error while evaluating script 'content htmlContent'"

 

Please help!

 

Thank you and best,

Enikő

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

hi @enikopittlik ,

 

This error means you have defined some personalization block in your delivery content with <%=targetData.XXX%> however the value for this targetData is not being passed from your targeting workflow.

So, you need to check the source of your delivery content find all the personalization blocks you have defined with <%=targetData.XXXX%> and then if the values are added to addiontal Data of your targeting wkf.

 

Br,

Shubham

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

hi @enikopittlik ,

 

This error means you have defined some personalization block in your delivery content with <%=targetData.XXX%> however the value for this targetData is not being passed from your targeting workflow.

So, you need to check the source of your delivery content find all the personalization blocks you have defined with <%=targetData.XXXX%> and then if the values are added to addiontal Data of your targeting wkf.

 

Br,

Shubham

Avatar

Level 1

Thank you very much, it works!  I wanted to test the e-mail without data, just to check the links, but it does not seem to work that way anymore. Thank you again, have a nice evening!

Avatar

Community Advisor

Hi @enikopittlik ,

There might be some targetData defined in email/sms body, but that target data is not present in incoming transition (temp table) data.

To troubleshoot, search for the keyword 'targetData' in Email/sms body, note it down, and check whether you're able to see it in below

ParthaSarathy_0-1682587581210.png

If you're unable to find here, add those fields as additional data in query/enrichment.

ParthaSarathy_0-1682587788723.png