While everything is being automated, we will learn how effective you can handle the errors while you automate the process. Ideally when a failure happens in a Power Automate cloud flow, the default behavior is to stop processing. You might want to handle errors and roll back earlier steps in case of failure. Here are 3 basic first hand rules to consider implementing without second thought.
The way that errors are handled is by changing the run after settings in the steps in the flow, as shown in the following image.
When using the run after settings, you can have different actions for success and failure by using parallel branches.
If your flow needs to perform a series of actions on Dataverse data, and you must ensure that all steps work or none of them work, then you should use a changeset.
If you define a changeset, the operations will run in a single transaction. If any of the step’s error, the changes that were made by the prior steps will be rolled back.
- Using Scopes – Try, Catch, Finally
- Retry policies – Specify how a request should be handled incase failed.
- Verify the Power Automate Audit Logs from Microsoft Purview Compliance Portal
- Last but not the least – Check the API Limits for the different actions.