Skip error handler
3 min
the skip error handler skips the error or the failed bundle from the flow and continues processing the remaining bundles the run continues with the next bundle the skip error handler prevents turning off the when there's an error and marks the run as a success even in case of errors when to use it use the skip error handler when incorrect data in your has no impact on your processes and occasional data loss is acceptable this handler is best suited for situations where keeping the running takes priority over processing every bundle for example amy gets new customer information from the customer sign up form, and adds this to her crm sometimes users submit this form twice by mistake causing duplicate entries and the crm rejects the enrty to prevent the scenario from stopping, amy adds an skip error handler to her crm bundle to skip the error for duplicate entries and moves on with the next steps for more information about error handling strategies check the overview of error handling docid\ sn7mce4qml q6wdtoocsy how the skip error handler works when a module encounters an error, the skip error handler drops the problematic bundle and moves on to the next one this prevents the error from disabling the or interrupting the process use the skip error handler this demo contains five modules json parse json provides test data in the form of an array of ten record ids iterator splits the array into individual bundles data store update a record updates the data in the data store data store update a record this module updates the data again this time the module works differently in the module mapping, there is a mapping that intentionally creates an error the mapping inserts a null value into the required key field, which always creates the bundlevalidationerror slack send a message sends a message to a private testing channel this is how the example looks when we run the example , we would get the bundlevalidationerror let's see how to handle this error using an skip error handler right click the data store module that failed and click add error handler from the list of error handlers, click skip click save you've successfully added the skip error handler to your what happens when you run the scenario after you add an skip error handler with the skip error handler, you can skip the bundle that causes an error from the flow and process the rest of the bundles in the in addition, will keep running your on schedule instead of disabling scheduling because of an error when we added the skip error handler to the update a record module, the skip error handler would skip the bundle from the flow the bundle doesn't enter the fifth ( send a message ) module the bundle from the third module passes through the your keeps running regardless of errors when an error occurs in the data store module, the skip error handler removes the bundle from the flow