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

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

(0) ShareShare
ReportReport
Posted on by 54

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
    54 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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard