Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
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!

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Error when building a workflow - Flow save failed with code 'InvalidTemplate'

    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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >