cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PPecch
Frequent Visitor

Invalid Template - Conditional update a row

Hi!

 

So I am trying to set up an approval process for requests when if either Approve or Rejected, an Excel file should update with the proper status and also send a communication to the team member that their request has either been approved or rejected.

However I am running into this error:

 

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 '7389' cannot reference action 'Update_a_row'. Action 'Update_a_row' must either be in 'runAfter' path or within a scope action on the 'runAfter' path of action 'Send_an_email_(V2)_2', or be a Trigger.'.'.

 

Can you help me resolve this? Here are some screenshots of my process:

 

PPecch_0-1643844468709.png

 

PPecch_1-1643844531501.png

 

PPecch_2-1643844557437.png

 

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Svenny
Advocate IV
Advocate IV

Hello, @PPecch 

 

Make sure that the dynamic content inside the action "Send_an_email_(V2)_2" is referencing the action above it - "Update_a_row_2" - and not the action "Update_a_row". This can happen if you copy and paste actions.

 

This should resolve the error message you are experiencing.

View solution in original post

2 REPLIES 2
Svenny
Advocate IV
Advocate IV

Hello, @PPecch 

 

Make sure that the dynamic content inside the action "Send_an_email_(V2)_2" is referencing the action above it - "Update_a_row_2" - and not the action "Update_a_row". This can happen if you copy and paste actions.

 

This should resolve the error message you are experiencing.

PPecch
Frequent Visitor

Thank you!

 

So basically I deleted my "If No" conditions and recreated them all over again this time avoiding copy pasting information, and now the error went away.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,845)