Best Approach for Error Handling in Enfocus Switch Workflows?

Post Reply
rhd_ole
Member
Posts: 149
Joined: Mon Jan 24, 2022 5:36 pm

Re: Best Approach for Error Handling in Enfocus Switch Workflows?

Post by rhd_ole »

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.
Color Science & Workflow Automation
reginagian
Newbie
Posts: 1
Joined: Tue Oct 15, 2024 9:13 am

Re: Best Approach for Error Handling in Enfocus Switch Workflows?

Post by reginagian »

Great explanation. This helps me a lot. Thanks
User avatar
tdeschampsBluewest
Member
Posts: 134
Joined: Tue Jun 01, 2021 11:57 am

Re: Best Approach for Error Handling in Enfocus Switch Workflows?

Post by tdeschampsBluewest »

rhd_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.
Just be careful about endless loop, if the fail element is the mail :D (it happened to me before...)
Do you like the Enfocus Apps developed by Bluewest?
Feel free to leave a comment on the Appstore!
User avatar
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?

Post by magnussandstrom »

tdeschampsBluewest wrote: Thu Oct 17, 2024 8:52 am
rhd_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.
Just be careful about endless loop, if the fail element is the mail :D (it happened to me before...)
I'm glad this surely have never have happened to me... ;) :mrgreen:
Post Reply