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 / Invalid Template Error...
Power Automate
Answered

Invalid Template Error- Condition field

(0) ShareShare
ReportReport
Posted on by 24

Hello all,

 

I am encountering a problem with my flow that is only running halfway through but gets stuck at the "Condition" field with the following error message: 

 

InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '1' and column '3381': 'The template language expression 'equals(body('Start_an_approval')?['response'], 'Approve')' cannot be evaluated because property 'response' cannot be selected. Array elements can only be selected using an integer index. Please see https://aka.ms/logicexpressions for usage details.'

amml_1-1636060075255.jpeg

 

The condition formula is: 

@equals(body('Start_an_approval')?['response'], 'Approve')

amml_2-1636060192136.jpegamml_3-1636060209455.jpeg

 

The flow was running smoothly previously but when I edited it to align with additions I had made in the List for added functionality the error message popped up. This is what the "Start an approval" field directly before the "Condition" field looks like:

 

amml_0-1636060043148.png

The flow only runs halfway until the approvals, which are successfully sent to Teams and email, but subsequent actions don't run. 

amml_4-1636060695910.png

 

I have tried the commonly recommended 'Save As' fix, as well as exporting and re-importing the flow but to no avail. Any help on this (how to get the flow to run to completion) will be greatly appreciated. 

Categories:
  • Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at

    Change the Condition so that it is checking the Outcome of the approval:

    2021-11-04_22-05-10.png

     

    Ellis

     


    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • amm-l Profile Picture
    24 on at

    Thanks for the suggestion Ellis. When I try changing the condition to 'Outcome' the option doesn't appear in the Dynamic content dropdown selection.

    amml_0-1636479653983.png

     

    No option from the "Start an approval" action appears. This is what shows up: 

     

    amml_1-1636479763645.png

     

  • Ellis Karim Profile Picture
    12,379 Super User 2026 Season 2 on at

    The Outcome can only be used after the Wait for an approval action:

    2021-11-09_20-54-04.png

     

    For your flow can you make use of the Start and wait for an approval action?

    2021-11-09_20-56-36.png

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • Verified answer
    amm-l Profile Picture
    24 on at

    The solution that worked in this case is to embed the rest of the actions into the "Apply to each" action, so that the flow looks like this: 

    amml_0-1638479119636.png

    as opposed to the template version where the condition is placed as a separate action, thus resulting in the error message.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 315 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 267

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard