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 / Errors Message for Inv...
Power Automate
Unanswered

Errors Message for InvalidTemplate and other errors

(0) ShareShare
ReportReport
Posted on by 442

What I did something wrong with this? Error Message:

Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Send_an_email_(V2)_2' at line '1 and column '4080' is invalid. Action 'Apply_to_each_2' must be a parent 'foreach' scope of action 'Send_an_email_(V2)_2' to be referenced by 'repeatItems' or 'items' functions.'

Screenshot 2023-11-10 153542.png 

Categories:
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    You must have copy pasted the actions.

    Get rid of the dynamic fields from the Send an email (V2) action and re add them.

     

     

  • dylandavis09 Profile Picture
    442 on at

    I did try it and still error message.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Have you sanitized all your actions? Examine the error message, as it will provide guidance on which action requires updating.

     

  • dylandavis09 Profile Picture
    442 on at

    @SudeepGhatakNZ, finally, its worked. But, it's the problem I got three emails each Not Started, In Processing, and Completed. I want to planning, if one of the values matches in SharePoint, it will trigger a specific flow; I don't want all of them to trigger flows

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @dylandavis09 

    I think you are trying to build something like this?

    SudeepGhatakNZ_0-1699834403729.png

     

  • dylandavis09 Profile Picture
    442 on at

    I found another way to solve it. All is good. Thank you. 🙂

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard