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?
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'.
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.
Flow work fine, as below:
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
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional