In the Creating custom functions recipe in Chapter 3, Data Services Basics – Data Types, Scripting Language, and Functions, we created a custom function showing an example of the try-catch
block exception handling in the scripting language. Like in the case of if-then-else
and while
loop, Data Services has a variation of the try-catch
construction for the workflow/dataflow object level as well. You can put the sequence of the executable objects (workflows/dataflows) between Try
and Catch
objects and then catch potential errors in the Catch
object where you can put scripts, dataflows, or workflows that you want to run to handle the caught errors.
The steps to deploy and enable the exception handling block in your workflow structure are extremely easy and quick to implement.
All you have to do is place an object or sequence of objects from which you want to catch possible exceptions between two special objects, Try
and Catch
. Then, follow...