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 / 'InvalidTemplate' and...
Power Automate
Answered

'InvalidTemplate' and message 'The template validation failed

(0) ShareShare
ReportReport
Posted on by 119
Dear All,
 
I am getting a following error message when saving my flow:
Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The inputs of template action 'Condition_4' at line '1 and column '2417' cannot reference action 'Update_item'. Action 'Update_item' must either be in 'runAfter' path or within a scope action on the 'runAfter' path of action 'Condition_4', or be a Trigger.'.'.
 
The trigger of my flow is "When an item is created or modified", followed by action "Get changes for an item or a file (properties only)", followed by Switch on "Status Value" and then the condition you see on my screenshot below.
Condition: Has column changed: Status is equal to true
if yes ... Condition 4: Status Value is equal to "Awaiting 1st Approval (Accounting)"
if yes ... Send email with options
Condition 2: Selected option is equal to "Approve"
if yes ... Update item: Status should change to "Awaiting 2nd approval (Manager)"
 
 
 
In my flow checker I see the same repeats for each status change in my flow.
Could you please advise?
 
Thank you very much in advance.
 
 
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    Pavel_NaNoi Profile Picture
    1,074 on at
    The warnings can be safely ignored IF you're filtering your trigger to only trigger on a very specific status that the flow does not interact with, this is to prevent an infinite loop of re-triggering it self.
     
    As for the actual error, please check that the SharePoint status value is not from the Update Item action at the very bottom of the screenshot you've showed, as that makes no sense code-wise.

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 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard