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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.