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 / The template validatio...
Power Automate
Unanswered

The template validation failed: 'The inputs of template action 'Send_an_email_notification_(V3)_2' at line '1 and column '3455' is invalid

(0) ShareShare
ReportReport
Posted on by 8

Hi

I have the following failure message:

 

Error saving the flow. Code: InvalidTemplate, Meldung: "The template validation failed: 'The inputs of template action 'Send_an_email_notification_(V3)_2' at line '1 and column '3455' is invalid. Action 'Apply_to_each' must be a parent 'foreach' scope of action 'Send_an_email_notification_(V3)_2' to be referenced by 'repeatItems' or 'items' functions.'.".

 

I have copy-pasted the flow of a colleague and changed it to my Lists file, but somehow it's not working for me. Can you help?

 

Capture.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thank you,
Vanessa

Categories:
I have the same question (0)
  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @VanessaDriver 

     

    Your problem is with the second Apply to each (named Auf alleanwenden) nested within Apply to each.
    The object Current item traversed by Auf alleanwenden caused an error.
    Apply to each traverses the array instead of the object. You can try to delete Auf alleanwenden and put the action of sending mail in the first Apply to each.

     

    Best Regards,

    Levi

  • VanessaDriver Profile Picture
    8 on at

    Hi @v-liwei-msft 
    Thank you for your comment. I just changed it accordingly but still have an error - different one though.

     

    Code: InvalidTemplate, Meldung: "The template validation failed: 'The repetition action(s) 'Apply_to_each' referenced by 'inputs' in action 'E-Mail-Benachrichtigung_senden_(V3)' are not defined in the template.'.".

     

    PowerAutomate.JPG

  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @VanessaDriver 

     

    What type of column is Responsible (text column, single-select person column, multi-select person column)?
    The filter query in Get items -7 days is incorrectly written, please put the dynamic content in single quotation marks.

     

    Best Regards,

    Levi

  • VanessaDriver Profile Picture
    8 on at

    @v-liwei-msft 
    It's a multi-select person column. 

     

    Oh haven't seen the typo - corrected it. Thanks! Still receive the same error though. 😞

  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @VanessaDriver 

     

    Please try:

    vliweimsft_0-1675327792663.png

     

    Best Regards,

    Levi

  • VanessaDriver Profile Picture
    8 on at

    @v-liwei-msft 
    Thank you Levi
    Unfortunately, still the same error. 

    PowerAutomate.JPG

  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @VanessaDriver 

     

    I have made a test but did not reproduce your problem, please try to recreate a flow.

     

    Best Regards,

    Levi

  • VanessaDriver Profile Picture
    8 on at

    @v-liwei-msft 
    Hi Levi

    Unfortunately, I couldn't recreate the flow (not a PA user yet...). Today I have copied the shared flow again and got the following error:

    Code: Invalid Teamplte "The template validation failed: 'The inputs of template action 'Send_an_email_notification_(V3)_2' at line '1 and column '3534' is invalid. Action 'Auf_alle_anwenden' must be a parent 'foreach' scope of action 'Send_an_email_notification_(V3)_2' to be referenced by 'repeatItems' or 'items' functions.'.".

     

    I guess without having someone creating the flow for me, I won't be able to solve the issue. 😅

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 598

#2
Valantis Profile Picture

Valantis 477

#3
Vish WR Profile Picture

Vish WR 370

Last 30 days Overall leaderboard