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 / Error when building a ...
Power Automate
Answered

Error when building a workflow - Flow save failed with code 'InvalidTemplate'

(0) ShareShare
ReportReport
Posted on by 29

Good day,

 

I am currently building a new workflow to send an approval request to managers when a new MS Form is submitted. 

 

When the there is an approval received, send an email to the relevant personnel including the person who submits the form and the approver (for record-keeping purposes) then update in the MS Excel spreadsheet with the relevant outcome, date and comments where the MS Form is recorded in. 

 

When the there is a rejection received, send an email to the relevant personnel including the person who submits the form (for re-submitting purposes) and the rejector (for record-keeping purposes) then update a row in the MS Excel spreadsheet with the relevant outcome, date and comments where the MS Form is recorded in. 

 

I have been receiving the following error message please refer to the screenshot:

 

I cannot see what went wrong with the 'send an email (v2) 2' under the 'if no' condition. Any help would be greatly appreciated!

Error 2.png
Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @HG123 

     

    It looks like you have copied "Send an email" action from "Yes" block & pasted in "No block" under "Apply to each 2" action. You need to update the expression used in "Send an email 2" action which are referenced to 'Apply to each' action or reconfigure the action by choosing the values from dynamic content window. If required, update the expressions to use action name as 'Apply_to_each_2' in place of 'Apply_to_each'. 

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard