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

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 V
Helper V

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Users online (5,497)