cancel
Showing results for 
Search instead for 
Did you mean: 

Looks like catch action block behaving in different way

ajit3204
Explorer
0 Kudos

Hi All,

Actually i have used catch action block in SAP MII for catching the exception but whenever exception comes the action block bellow the catch is not getting executed,

I am using SAP MII 14.0 SP5 Patch 5.

I am getting the exception at block"getTagAndWellFromExcelPCOQry_0" as "[ERROR] [getTagAndWellFrom_ExcelPCOQry_0]java.net.ConnectException: Connection refused: connect" so

According to my understanding after catch_1 Assignment_8 and Throw_0 should be executed and then after catch_0 Row_1 should be also executed.

I have attached the debugged transaction so you can see how is the execution flow.


Can you please let me know why its happening like this.


Regards,

Ajit Kumar



Accepted Solutions (0)

Answers (3)

Answers (3)

indiraboga3
Discoverer
0 Kudos

This message was moderated.

Former Member
0 Kudos

Hi Ajit,

The image of the debug run you have pasted does not shows that the error came in the 'getTagAndWellFromExcelPCOQry_0' action block.

When any error occurs in the action block that should come as red in the debug run.

And yes you understanding is correct.

catch_1 Assignment_8 and Throw_0 should be executed and then after catch_0 Row_1 should be also executed.

Regards,

Rohit Negi.

swaroop_anasane
Active Contributor
0 Kudos

Hi Ajit,

Check if ThrowOnLinkError and ThrowOnActionError is set to true in your transaction attributes.

Regards,

Swaroop