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 / Condition keeps saying...
Power Automate
Unanswered

Condition keeps saying no body/value when there is Output

(0) ShareShare
ReportReport
Posted on by 6

I am building a flow to check if there is a specific department listed for all users.  I am searching all users then using a filter array to find the users with the desired department.  After, I am having an Apply to each action add them to a group based on the filter array.  When testing my flow, I keep getting this error: "InvalidTemplate. Unable to process template language expressions for action 'Apply_to_each' at line '0' and column '0': 'The template language expression 'outputs('Filter_array')['body/value']' cannot be evaluated because property 'body/value' doesn't exist, available properties are 'body'. Please see https://aka.ms/logicexpressions for usage details.'."

 

I am getting correct Outputs on my Filter Array so unsure why the Apply to each is not finding anything.

Categories:
I have the same question (0)
  • eliotcole Profile Picture
    4,363 Moderator on at

    Hi, @gburnite, could you try just selecting Filter array as a dynamic value for the Apply to each basis?

     

    Filters should not produce anything that has 'body/value' involved ... 🙂 ...

     

    If it is still doing it, then put the Apply to each in a Condition on the length() of the Filter array.

  • gburnite Profile Picture
    6 on at

    For the dynamic value, that is all it gives me to select for the array.

    gburnite_0-1704228516061.png

     

  • eliotcole Profile Picture
    4,363 Moderator on at

    So tap 'Body' ... ?

  • gburnite Profile Picture
    6 on at

    That's what I had before and was giving me the error.

  • gburnite Profile Picture
    6 on at

    gburnite_0-1704229680359.png

     

  • jarryd123123 Profile Picture
    22 on at

     I created an account to hopefully shed some light on this... i found i was running into the same issue as well. You select body, you save the flow, then it converts the body to a body/value and returns the error you are seeing. For whatever reason, after you save the value when selecting body from your array, it will default to body/value. 

    Before Save: 

    jarryd123123_0-1704475150666.png

    After Save:

    jarryd123123_1-1704475182144.png

    Error Received:

    jarryd123123_5-1704475751904.png

     

     

    Here is how i fixed it. I found that by hovering over a previous filter that is still working that the expression is simply body('<Name Of Array>').  So i went ahead and just went to the "From" field in my Select Parameter and entered in as an expression body('Filter_Array') 

    Hover view:

    jarryd123123_2-1704475234555.png

    Expression Written before save:

    jarryd123123_3-1704475386419.png

    expression written after save:

    jarryd123123_4-1704475464974.png

    Test Run:

    jarryd123123_6-1704475848214.png

     

     

    Post saving, it will now show the correct "body" and not "body/value" that it keeps trying to default to. 

    Hope this solves your issue. I cant answer as to the WHY this is happening, but this worked for me as a fix to the problem. 

     

     

     

     

  • ulanbator Profile Picture
    6 on at

    that solved my problem, many thanks!

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard