Re: Best Approach for Error Handling in Enfocus Switch Workflows?
Posted: Fri Sep 06, 2024 12:12 pm
Complex flows I tend to split into smaller more manageable flows and put them all in a group
Depending on the app used or configuration many times you can use the traffic light for success/fail and the failed jobs you can set up and mail send and put the Fail Element and Fail Message in the body of the email so you know what and where it failed, or you can route to process differently based on the error. For jobs that fail and end up in the problem jobs folder you can put a connection out of problem jobs to a mail send with the error messages like I mentioned above.
With that said, I typically will build in retries for jobs that would fail to problem jobs folder.
I connect Problem jobs to folder and that connects to two elements, a mail send and back to the flow to retry the job based on the fail message. Using the connections I set up 'include these jobs' I use a combination of count and fail element to loop the file from Problem Jobs back to the flow to retry, if it fails again I use the count to push the file to the mail send vs retrying it again since I know it is an actual failure.
Hope that helps.
Depending on the app used or configuration many times you can use the traffic light for success/fail and the failed jobs you can set up and mail send and put the Fail Element and Fail Message in the body of the email so you know what and where it failed, or you can route to process differently based on the error. For jobs that fail and end up in the problem jobs folder you can put a connection out of problem jobs to a mail send with the error messages like I mentioned above.
With that said, I typically will build in retries for jobs that would fail to problem jobs folder.
I connect Problem jobs to folder and that connects to two elements, a mail send and back to the flow to retry the job based on the fail message. Using the connections I set up 'include these jobs' I use a combination of count and fail element to loop the file from Problem Jobs back to the flow to retry, if it fails again I use the count to push the file to the mail send vs retrying it again since I know it is an actual failure.
Hope that helps.