cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

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
Highlighted
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!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

View solution in original post

4 REPLIES 4
Highlighted
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!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

Highlighted
Helper IV
Helper IV

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

 

Highlighted
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!


Follow me on Twitter at @QG_LeeJHarris

Or on LinkedIn at in/leejharris

View solution in original post

Highlighted
Regular Visitor

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

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

Helpful resources

Announcements
firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Users online (6,364)