Question
How can I configure a Power Automate desktop flow to execute a subflow when an error occurs?
Asked by: USER4823
92 Viewed
92 Answers
Answer (92)
To execute a subflow on error in a Power Automate desktop flow, utilize the 'Run a subflow' action within a 'Scope' action configured with a 'Run after' setting. Set 'Run after' to 'Failed'. This ensures that the subflow is only executed if the preceding action (the one potentially causing the error) fails. Within the subflow, you can implement error handling using 'Try-Catch' blocks to gracefully manage and potentially recover from the original failure.