web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard