Hi,
does anyone know what are the exact conditions in which an Apply to each action is marked as failed? I can't seem to figure out the pattern, sometimes I have iterations in the loop that fail but the action itself is marked as successful, other times it is considered failed. I thought it's based on the last iteration, but now I have a loop where the last iteration is successful (the last attempted action is successful), but the Apply to each action itself is still marked as failed.
I wasn't to able to find this information anywhere in the documentation and it's quite important for error handling and setting 'run after' rules correctly.
Any ideas?
Hi @CleanAndClear ,
With apply to each the loop will fail if any action within it fails, but it will still complete all iterations. So even if the first item fails, all the rest will complete before the apply to each fails.
The only way to stop this is to have exception catch the action within the loop (See Business Exceptions in this blog Exception Handling in Power Automate - DEV Community)
>----------------------------------------------------------------------------------------------------------------------------------------------
If this helped solve your question please mark it as the solution.
I also do a weekly Power Platform blog at https://dev.to/wyattdave
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492