cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle exceptions in real time job

former_member188264
Participant
0 Kudos


How to handle exceptions in real time job? I have seen many posts on this, but at many places its recommended to modify real time job so that it works like a batch job and add Try- Catch block.

But I do not want to modify my original DF.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sagar,

To apply error handling on real time jobs, you need to create a Job as per below screenshot.

Step1 : The first dataflow should have a message source.

Step2 : Extract data from the first dataflow and load it in temporary file/ table.

Step3 : Use a try block and then put all your logic in as many dataflows as you want ( but donot use any more message source or target)

Step4 : After all your logic , end it with a catch block

Step 5 : Create the last dataflow which should have a message target.

Former Member
0 Kudos

Yeap, doing the same on my realtime using soap webservices. One followup question. Are you about to send back the errors to calling external app thru Message response/xml. Any ideas.

Thanks

Former Member
0 Kudos

Hello ANNESHA,

Could you tell me how to create "DF_Message_Source" and "DF_Message_Target" dataflow?

Thanks

Terry

Former Member
0 Kudos

DF_Message_Source and Df_Message target are normal dataflows with only one difference that DF_Message_Source dataflow  should have one message source and  Df_Message target should have one message target.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Sagar,

What type of exceptions you want to handle...?

In general we will use try catch in the Real time job.. like below

Regards

Subbarao M

Message was edited by: SUBBARAO MUCHERLA

former_member188264
Participant
0 Kudos

Hi Subbarao

This design will not work. It will give you below error when you validate the job-

"[Real-time Job:RTJOB]

Try2423 can't be the first step in real-time processing block. Must have XML or IDoc request. (BODI-1111233)"

Former Member
0 Kudos

Hello Sagar,

Then "What type of exceptions you want to handle...?"

can you show the screenshot of exceptions you got..?

former_member188264
Participant
0 Kudos

I need to handle Database access and connection error. Exceptions- 1002 and 1003

So I think we can not use any other object ,except Script, before RT dataflow.

Former Member
0 Kudos

Did you get any solution...?

former_member188264
Participant
0 Kudos

Not really..