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 / The execution of templ...
Power Automate
Unanswered

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

(1) ShareShare
ReportReport
Posted on by 12

Hello, all!  Power Automate informs me that this is a "new issue" and I should ask the community for help!  I get the following error when I test a flow I've created:

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

The purpose of the flow is to send the Leave Approval from a Form I created to a pair of other people in my office.  I use "Switch" because different Approval Manager will to do different email approver. Here's what the flow looks like.  Does anyone have any tips on what I'm doing wrong?  Thanks so much!

Condition ; Approve /RejectedCondition ; Approve /RejectedFull FlowFull Flowswitch_.PNG



Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    on at

    Hi @ITDinnadi ,

     

    The error shows there is no response of Start_and_wait_for_an_approval_3. I think this is because the Switch enters Case2 or other cases instead of Case3, Start_and_wait_for_an_approval_3 didn't run and returns no responses.

     

    Do you want to send email according to outcome of approval in each Case? I think you should put the Condition inside each Case. For example, an email will be sent when Switch enters Case2. All actions in Case3 will not run, and your error will not appear.

     

     

    Best regards,

    Rimmon

  • ITDinnadi Profile Picture
    12 on at

    Hi @v-mengmli-msft 

    Thank you for your response. I followed your method of placing every condition in each case, and my flow succeeded. However, I'm encountering an issue where I am not receiving the approval email at all. I have tried using Case 2 and Case 3 with different email domains, but still no approval email is coming through.I would appreciate your advice on what I might be doing wrong here.
    approval.PNGsuccededsuccededcondition every case.PNG

    I would appreciate your advice on what I might be doing wrong here.

  • ITDinnadi Profile Picture
    12 on at

    Hi @v-mengmli-msft ,

    Is there any update ? Appreciate your advise . Thank you

  • ITDinnadi Profile Picture
    12 on at

    Issue solved. Thanks @v-mengmli-msft for assist me. 👍

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