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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,372)