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? | Community
Skip to main content
April 27, 2023
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?

  • April 27, 2023
  • 2 replies
  • 2868 views

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ő

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

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

2 replies

Shubham_Goyal__
Shubham_Goyal__Accepted solution
Level 6
April 27, 2023

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

April 27, 2023

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!

ParthaSarathy
Community Advisor
Community Advisor
April 27, 2023

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

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

 

~  ParthaSarathy S~  Click here to join ADOBE CAMPAIGN USER GROUP for Quarterly In-person | Hybrid | Virtual Meetups