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 / Error while run the co...
Power Automate
Unanswered

Error while run the condition flow

(0) ShareShare
ReportReport
Posted on by 6

[The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@json(outputs('Get_response_details')?['body/r937608f3b213434d934b8f54adbd7cdd'])' is of type 'Null'. The result must be a valid array.]

Categories:
I have the same question (0)
  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    The error message is very clear. If you want to use apply to each you have to provide an array. If the array is empty that would be ok but the content you provided doesn’t exist. If this is a valid scenario you will have to check it before or youse coalesce during apply to each.

  • amirahy Profile Picture
    6 on at

    I am very new to this (at least a few hours ago), so I am not sure what should I update to the condition flow. Could you please assist me or do you have any tutorials for beginners? It really helps me to solve this issue. Thank you in advance.

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    First of all you will have to check if you provided the correct content. So should there be an array? The second thing is the expression “json”. Why do you use that? What are you trying to do? Can you share screenshots of the flow.

  • amirahy Profile Picture
    6 on at

    amirahy_0-1697085191842.pngamirahy_1-1697085215502.pngamirahy_2-1697085273054.png

    Here is my condition flow. I am looking for an email notification to be sent to the responder. I searched the existing template but failed to find it. So I decided to create one. The array and JSON () are used to get attachments in the MS Form. Hope this is clear. Appreciate your help.

  • amirahy Profile Picture
    6 on at

    FYI, I am just follow this great tutorial on YT actually
    https://www.youtube.com/watch?v=mYblnRqu6Z4

  • Matthy79 Profile Picture
    4,180 Super User 2024 Season 1 on at

    Did you upload files?

     

    Have you checked the flow run history. So when the flow runs you can see the history (where you copied the error message) and you can look at the action "Get response details". Do you find your attached files here?

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard