Skip to main content
Level 2
Dec 5, 2024 10:43 AM UTC
Solved

Error while evaluating document

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.

Craig_Thonis
Craig_ThonisAccepted solution
Adobe Employee
Dec 5, 2024 2:38 PM UTC

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
Dec 5, 2024 2:38 PM UTC

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

Translate
ParthaSarathy
Community Advisor
Community Advisor
Dec 5, 2024 4:52 PM UTC

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.

Translate
~  ParthaSarathy S