DEV Community

Cover image for Exception Handling in Power Automate

Exception Handling in Power Automate

david wyatt on January 18, 2023

Exception handling is key to all automations, as no matter how hard we try there will always be unexpected behaviour The run after isn't the most ...
Collapse
 
prusakpl profile image
Piotr Rusak

Hi @wyattdave,
What is your recommendation for Exception handling when exception happens inside Do-Until loop (this is the only exception in Power Automate where Exceptions are not bubbling outside of the loop).

Collapse
 
wyattdave profile image
david wyatt

I think of these as generally business exceptions as the item being processed is generating the exception. In these cases I recommend handling each individually so that the flow can continue with the successful items. I would then log the failed items in a list/array and handle them separately.