cancel
Showing results for 
Search instead for 
Did you mean: 

how to manage exceptions in SAP Data Intelligence?

amish1980_95
Participant
0 Kudos
827

Hello Folks,

How should we handle the exceptions in SAP Data Intelligence?

I want to provide a custom error message and handle the exceptions in the graphs.

Thanks,

Indu Khurana.

Hi Indu,

can you please clarify which kind of scenario we are talking about? Do you want to create a custom script operator (Python, Node, Go) and handle exceptions in the script code?

Accepted Solutions (0)

Answers (2)

Answers (2)

There is no standard operator to catch and handle exceptions from anywhere in a graph. Generally, operators catch and handle exceptions within their code. These are then either logged or sent to an error output port. Sometimes you can also configure operators to terminate the graph on errors. For operators (including your own custom script operators) that have an error output port (of type message.error) your can collect their error outputs and connect them to a custom error handling operator which you would have to create for that purpose.

Best regards
Kai.

amish1980_95
Participant
0 Kudos

Hello Kai,

For the operators with message.error port, the graph dies and I am not able to capture the exception like I can do with error port 'outError'.

Can you advise on it?

Thanks,

Indu.

0 Kudos

Hi Indu,

which version of SAP Data Intelligence are you using? Can you be a bit more specific about how exactly you tried to use the error ports?

Best regards
Kai.

amish1980_95
Participant
0 Kudos

Hello kai-michael.roesner,

Thank you for responding.

I'm looking for an exception management framework which could be used in general for the graphs and where we could provide custom error messages.

Do we have any standard operator to handle exceptions?

Or do we need to create a custom operator to achieve this, if yes then I would appreciate if you could provide insights on this.

Thank you,

Indu Khurana.

0 Kudos

You mean a standard operator that would catch and handle exceptions from other operators in the graph? Where do you want to provide your custom error messages, in the logs or in a terminal UI? (And please answer in a comment, not in an answer... 🙂

amish1980_95
Participant
0 Kudos

Hello kai-michael.roesner,

Thanks for responding.

My apologies, I din't realise I wasn't commenting but adding to the answer.

Yes, a standard operator to catch and handle exceptions.

I want to provide custom message in terminal UI.

- Indu.

rajeshps
Participant
0 Kudos

amish1980_95

did you find any regards error handling, reprocessing and reporting in SAP DI?Can we retry, fetch source payload, send error notification to users and reprocess the source file ?