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 / Don't understand this ...
Power Automate
Answered

Don't understand this error I am getting - Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Update_item_7' at line '1 and column '23277' is invalid. Action 'Apply_to_each_1' must be a parent 'foreach' scope of action 'Update_it

(0) ShareShare
ReportReport
Posted on by 17

Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Update_item_7' at line '1 and column '23277' is invalid. Action 'Apply_to_each_1' must be a parent 'foreach' scope of action 'Update_item_7' to be referenced by 'repeatItems' or 'items' functions.'.'.  

 

CAn someone decipher this for me?

Annotation 2024-03-06 101938.png
Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    Microsoft Employee on at

    Hi , @LHolt002 

    According to your error code , you need to check if your "Update Item 7 " uses the value loop in our "Apply to each 1".

    vyueyunmsft_0-1709774202621.png

    As you can see your "Update Item 7 " is under the "Apply to each 2" , If you want to use the value in the loop of "Apply to each 2". You need to move the "Update Item 7 " into the "Apply to each 2" .

    And also you need to check if you use the "items('Apply_to_each_2')" instead of "items('Apply_to_each_1')" in your expression.

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

     

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 785

#2
Valantis Profile Picture

Valantis 669

#3
Haque Profile Picture

Haque 563

Last 30 days Overall leaderboard