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.
Best Approach for Error Handling in Enfocus Switch Workflows?
Re: Best Approach for Error Handling in Enfocus Switch Workflows?
Color Science & Workflow Automation
-
- Newbie
- Posts: 1
- Joined: Tue Oct 15, 2024 9:13 am
Re: Best Approach for Error Handling in Enfocus Switch Workflows?
Great explanation. This helps me a lot. Thanks
- tdeschampsBluewest
- Member
- Posts: 134
- Joined: Tue Jun 01, 2021 11:57 am
Re: Best Approach for Error Handling in Enfocus Switch Workflows?
Just be careful about endless loop, if the fail element is the mailrhd_ole wrote: ↑Fri Sep 06, 2024 12:12 pm 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.

Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
Feel free to leave a comment on the Appstore!
- magnussandstrom
- Advanced member
- Posts: 512
- Joined: Thu Jul 30, 2020 6:34 pm
- Location: Sweden
- Contact:
Re: Best Approach for Error Handling in Enfocus Switch Workflows?
I'm glad this surely have never have happened to me...tdeschampsBluewest wrote: ↑Thu Oct 17, 2024 8:52 amJust be careful about endless loop, if the fail element is the mailrhd_ole wrote: ↑Fri Sep 06, 2024 12:12 pm 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.(it happened to me before...)

