Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Approval flow failing after it has been approved

(0) ShareShare
ReportReport
Posted on by

I have a Flow which starts an approval when a SharePoint item is created. After this there is a condition within an Apply to each. The condition is Response is equal to approve. Then there are a number of different actions that occur depending if it is yes or no.

This flow has been working fine for the last month, with it succeeding several times whenever it has been approved.

Today, it has failed 3 times when approved. I am getting the error 'Action 'Apply to each' failed' and 'The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Start_an_approval')?['responses']' is of type 'Null'. The result must be a valid array.'

I have not changed this Flow so why would it suddenly fail?

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Approval flow failing after it has been approved

    Hi @v-bacao-msft

     

    Thanks for this. Updating it to 'Everyone from the assigned list' did resolve the issue on this Flow.

    It is odd though as previously it was working with 'Anyone from the assigned list'.

     

     

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Approval flow failing after it has been approved

    Hi @Anonymous,

     

    Could you share a screenshot of your Flow configuration?

    I have tested on my side, I think your approval type should be "Everyone from the assigned list", I have not encountered a similar problem here.

    61.PNG

    Flow work fine, as below:

    62.PNG

    You could try to recreate a similar Flow, focusing on the configuration of the Approval action to see if there is the same problem.

    It would be helpful if you could post more details and we would provide a proper workaround for you.

     

    Best Regards,

    Barry

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow