Error while evaluating document | Community
Skip to main content
Level 2
December 5, 2024
Solved

Error while evaluating document

  • December 5, 2024
  • 2 replies
  • 648 views

Hey everyone, i am getting this message while making a preview of a mail:

JST-310000 Error while compiling script 'content textContent' line 12: recipient is not defined.
SCR-160012 Javascript: error while evaluating script 'content textContent'.

 

We are using a target mapping to a custom map: Company key persons (crmcx:companyKeyPerson) 

which we also have in the flow, if we change the target mapping to recipient in the delivery if works.

 

My problem is, I can't seem to find where this call for the recipient is anywhere in the code / setup of the delivery. I used the edit source xml and removed all recipient.x and it still gives me the error.

 

I can't seem to find this "script" content textContent so i cant see whats on line 12.

Anyone know how to deal with this problems ? I can share more about the setup if need be.

 

Hope you wonderful people can help me out ! 

 

Kind regards 

Robert.

Best answer by Craig_Thonis

Hi Robert. Check out the thread below. This is a personalization issue so without reviewing the code specifically, it is going to be difficult to give more precise troubleshooting steps.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/what-does-error-message-quot-error-while-compiling-script/td-p/589873

 

Regards,

Craig

2 replies

Craig_Thonis
Adobe Employee
Craig_ThonisAdobe EmployeeAccepted solution
Adobe Employee
December 5, 2024

Hi Robert. Check out the thread below. This is a personalization issue so without reviewing the code specifically, it is going to be difficult to give more precise troubleshooting steps.

 

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/what-does-error-message-quot-error-while-compiling-script/td-p/589873

 

Regards,

Craig

ParthaSarathy
Community Advisor
Community Advisor
December 5, 2024

Hi @robertol1 ,

Check in the 'Text' content tab as well.

Make sure the upstream population of delivery has the same targeting schema as specified in target mapping. If so, try creating a new delivery and check whether you're facing the same error again in the workflow.

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