Controlling failures – try-catch objects

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.

How to do it…

The steps to deploy and enable the exception handling ...

Get SAP Data Services 4.x Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.