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 / Flow falling over at A...
Power Automate
Answered

Flow falling over at Apply to Each action and 'Time Out' action not firing

(0) ShareShare
ReportReport
Posted on by 56

Morning



I've inherited a  Approval Flow which runs fine, except if it time outs. It should send out an email informing the user that it's failed due to time out - the approvers haven't actioned - and update a SharePoint list.

However when it gets to the Apply to Each action below it fails with this error: 

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


This is the variable:

sutekhtheflow_0-1692258621712.png

 

 

 

 

sutekhtheflow_0-1692258133321.png

 

These are the error details:

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

Any idea? All help appreciated 



Categories:
I have the same question (0)
  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @sutekhtheflow,

    The point is that the response of approval is null.

    You should add a 'Condition' after the approval action and check if the 'Responses' outcome is equal to null, if it's null, you can't use the 'Responses' anywhere in the flow. You can use it only if the action didn't time out.

    vmingkzmsft_3-1692260568219.png

     

     

    Best Regards,
    Kyrie

     

     

  • sutekhtheflow Profile Picture
    56 on at

    Thanks @v-mingkz-msft  understood. I'll give that a go

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard