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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / The template validatio...
Power Automate
Answered

The template validation failed: 'The action(s) 'FormatTable' referenced by 'inputs' in action 'Compose_2' are not defined in the template.'.

(0) ShareShare
ReportReport
Posted on by 576

I have a flow where i am taking a SharePoint list item, creating an html table, and then emailing it. When i try to save the flow, i get the error message "The template validation failed: 'The action(s) 'FormatTable' referenced by 'inputs' in action 'Compose_2' are not defined in the template.'."  My compose step is a replace with the formula replace(outputs('FormatTable'),'<td>','<td style="padding:20px">'). It appears that i'm  referring to FormatTable incorrectly. Can anyone advise?

Categories:
  • LeeHarris Profile Picture
    1,026 on at

    Hi @ahhollan 

    You will sometimes see this issue if you rename an action after referencing it in an expression. Please check the name of the action where you are formatting the HTML table. Are you able to post a screenshot of your Flow actions?

     

     

  • ahhollan Profile Picture
    576 on at

    10-21-2019 12-45-48 PM.png

     

  • Verified answer
    LeeHarris Profile Picture
    1,026 on at

    Hi @ahhollan 

    It looks like you either need to change to expression to be 

    replace(outputs('Create_HTML_Table'),'<td>','<td style="padding:20px">')

    or

    replace(outputs('Compose'),'<td>','<td style="padding:20px">')

    depending on where the output variable is coming from.

    You could also just delete the text outputs('FormatTable') from the expression and re add the Dynamic property if you don't want to manually type the changes. See if that resolves your issue.

     

  • evanbryan Profile Picture
    9 on at

    OH MY GOD thank you. I knew I've come across this before but you've helped me so much with this. 

  • kymramos Profile Picture
    43 on at

    Thank you for pointing this out! I followed your advice and it fixed 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 389

#2
11manish Profile Picture

11manish 345 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard