Preview of real time template not showing up when checking with seed address | Community
Skip to main content
thibaultb473199
Level 4
December 13, 2021
Solved

Preview of real time template not showing up when checking with seed address

  • December 13, 2021
  • 1 reply
  • 1719 views

Hello everyone,

I face an issue with one of my real time template

I input the HTML and when done, I want to check with a seed address the preview to see how it looks like but when previewing, there isn't any display : see screenshot below.

Why is it doing that ? I also try with a simple test HTML, the preview won't show either. (main error is there, not happening with my other templates)

Any idea on how to fix that ? I think there is a reason why when I want to test this real time that I got an error that mention : event not covered.

I make sure that the event type is linked to the template and the template is successfully publish.

Thanks for your solutions.

Kind regards.

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 David_Loyd

Not sure about the preview, but the error logs clearly show the Event is not covered. Meaning the eventType you are sending to ACC does not match what is listed in the eventType enumeration. Perhaps double check those items and republish.

1 reply

David_Loyd
Adobe Employee
David_LoydAdobe EmployeeAccepted solution
Adobe Employee
December 14, 2021

Not sure about the preview, but the error logs clearly show the Event is not covered. Meaning the eventType you are sending to ACC does not match what is listed in the eventType enumeration. Perhaps double check those items and republish.

thibaultb473199
Level 4
December 14, 2021

Hello, thank you for your answer. Indeed the event was not covered but now, I face this kind of error (which relate to HTML content)

How can I fix this error ? my code include mctx but I don't know what I can do to resolve that (I try without that and the preview is not showing)
Thanks in advance.

David_Loyd
Adobe Employee
Adobe Employee
December 14, 2021

So looking at the code & the error again... mctx is undefined...

Which means there is no data being mapped to alert.ctx.. This seems backwards

in your code you have 

var mctx = alert.ctx; 

 

If you want to populate mctx with data you would need to pass something like this in your SOAP request. All variable data should be within your CTX (context variable)

 

Below would be the correct way.

 

 <ctx>  
    <alert>
someString </alert> </ctx>

Then map it this way.

var mctx = ctx.alert ;