Skip to main content

I am getting an error message when I try to send a test email that says “Message displayed without tags or variables. Fix invalid template tags or variables  to preview the message with actual profiles and events.

I am not sure where the issue is. How would I locate and fix the issue?

Welcome to the community @Gracie 

You get this message when there's an invalid variable in your email. It'll be surrounded by curly brackets {} in the email content or it may be in the display logic if you're using that. Are you able to share the email content here and also what event you are previewing eg, checkout started, order placed etc

Regards

Andy


Hey Gracie!

Like Andy said, this is almost always due to a curly bracket being in the wrong place or even just being duplicated - like {{{event.product.title}} - because I have three brackets on the left, I’d get a variable error on my entire email. 

If this is a dynamic email, cross-check all of your variables to confirm!


Why I am facing this? If you think it is for the size, no. I have checked by other email that size is okay but failed to send test mail. Please suggest me how can I solve this? 

 


Hi ​@bluesnapper 

I’m experiencing the same issue, “Message displayed without tags or variables. Fix invalid template tags or variables  to preview the message with actual profiles and events.” while trying to preview an order confirmation template. I started with Klaviyo’s template for Order confirmation, but it appears they have updated the tagging system but not the template, so all the template tags need to be manually replaced. I’m new to this and not a coder so I’m a bit lost in the sauce here!

I’ve re-input all the tags between double curly brackets according to the updated documentation provided by their chatbot and still no luck. I’m going to start from scratch and rebuild one section at a time to try to isolate the issue, but I’d love feedback from someone to understand where the problem lies.

 

 


Hi ​@megdise 

A few questions:

  • What ecomm platform are you on? Shopify?
  • Did you add those variables? Usually Klaviyo’s order template uses the ecomm platform’s variables so the email would be sent from that platform and not from Klaviyo.

Regards

Andy 


Hi ​@megdise 

Did you get your issue resolved?

Regards

Andy