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 / 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,188 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,188 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,188 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 272 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 147 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 146 Super User 2026 Season 2

Last 30 days Overall leaderboard