Handling Expected Errors

So, we have a flow that pulls in an X12 204 and sends it to our TMS system, Eka. Eka has a function where when a 204 is imported it will calculate the distance between the points of the load and populate that in Eka for load managagement.

However, if the load's origin point and destination point are less than a mile apart, Eka can't calculate the distance and returns a load mileage error. Knowing that this is something that is going to happen, there's a second import step that will set the "miles" tag to 1. This import only occurs when the returned status code isn't "200".

The reason this is a problem is when I have the load mileage error, I still get a notification about it. Since the follow-up step is already handling it I don't want to get notified about it. The notifications clog up our support software.

Any ideas?

You can ignore the error with a postSubmit hook. Here is the documentation on it: https://docs.celigo.com/hc/en-us/articles/360045807112-Ignore-specific-errors-in-a-postSubmit-hook

The example is overly complicated so let me know if you need help. It would be good to see the error that you get when this does occur.