web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to integrate va...
Power Automate
Unanswered

Unable to integrate variable name in the HTML email template due to invalid expression error!

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have HTML email tempalte which works as expected when I do not add any dynamic variable in the body, however the moment I add dynamic variable ( e.x. UserName as indicated in the following screen) in the HTML email template, it throws following error:

Unable to integrate variable in email template.png

 

How can I resolve it?

 

Thanks,

 

Categories:
I have the same question (0)
  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Hey Mate,

     

    @dave8 

     

    I would rather construct the whole HTML and pass the output of Compose action, to Send an Email

     

    CFernandes_1-1602498190788.png

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • Dave Wi Profile Picture
    on at

    Hi @CFernandes 

     

    I face the same error even in "Compose" action, I suspect there is something wrong in HTML!

     

    Thanks,

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @dave8 

     

    If you try a simple HTML(with reference to my screenshot), then do you get the same problem?

     

  • Dave Wi Profile Picture
    on at

    simple HTML even in email body works as well as in compose, in my HTML, I have noticed that when I remove particular img tag, then it works, but if I add that, I get following error message while saving the flow:

     

    The power flow's logic app flow template was invalid. The template language expression literal limit exceeded: maximum '131072' and actual '309602'
     
    This happens only with particular image, in the same image tag, if I add another image source, then it works!
     
    any clue?
     
    Thanks,
     
  • Dave Wi Profile Picture
    on at

    Found out the culprit!

     

    I am using base64 image source which is a leangthy code that is based on the image size it seems, as I minimized the image size and decoded that into base64, the same code with the expression worked out for me!

     

    Thank you for your suggestions and attention!

     

    Regards,

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    Wohoo. I am glad that you have resolved the problem 😊

  • mpfeng Profile Picture
    38 on at

    Thanks! I reduced the image size of the .png, then the new URI is also smaller and this time I didn't get the error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard