Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Context.profile is undefined - Real-time events

Avatar

Level 1

Hi,

I set up a number of transactional events (real-time type) without any links defined in either Collections or Enrichment section. An exemplary html templates have been added into them and for the first couple round of tests all of endpoints have triggered emails as expected. After I made some slight changes in html code (i.e. wrapped icons up with links) the messages stopped to be sent and as an error I can see:

Error while compiling script 'DM4824[htmldefaultContent]' line 48: context.profile is undefined.

The question is why such error is thrown when there is no link to profile in html templates at all.

Republishing event or messages changes nothing.

 

Any thoughts?

 

Thanks,

Dominik

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Dominik,

Please check if this issue is with default branding or with any specific branding you are using .

Also, try to see if you switch off tracking, are you able to send email successfully. 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee

Hi Dominik,

Please check if this issue is with default branding or with any specific branding you are using .

Also, try to see if you switch off tracking, are you able to send email successfully. 

 

Avatar

Level 1

Thanks, indeed the issue was caused by default branding. After the change to another one the problem has gone.