Skip to main content
Solved

Can't send a test email

  • November 18, 2023
  • 6 replies
  • 627 views

Forum|alt.badge.img+1

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?

Best answer by bluesnapper

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

6 replies

bluesnapper
Partner
Forum|alt.badge.img+45
  • Champion & Partner
  • 784 replies
  • Answer
  • November 20, 2023

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


Spark Bridge Digital LLC
Partner - Platinum
Forum|alt.badge.img+33

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!


Forum|alt.badge.img+2
  • Contributor I
  • 2 replies
  • January 27, 2025

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? 

 


  • Contributor I
  • 1 reply
  • March 12, 2025

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.

 

 


bluesnapper
Partner
Forum|alt.badge.img+45
  • Champion & Partner
  • 784 replies
  • March 13, 2025

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 


bluesnapper
Partner
Forum|alt.badge.img+45
  • Champion & Partner
  • 784 replies
  • March 21, 2025

Hi ​@megdise 

Did you get your issue resolved?

Regards

Andy