cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ahhollan
Level: Powered On

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

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

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

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.

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

3 REPLIES 3
Super User
Super User

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

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?

 

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


ahhollan
Level: Powered On

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

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

 

Super User
Super User

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

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.

 


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


View solution in original post

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,596)