Skip to Content

how to ignore some exceptions in sap cpi

Hi Team,
Am working on a requirement where i need to implement an condition in exception where i need to ignore two specific condition of exceptions in the iflow and pass it as successful.
two conditions of exceptions are :"javax.servlet.ServletException: Error during write of the response: , cause: java.io.IOException: Connection reset by peer" and "javax.servlet.ServletException: Error during write of the response: , cause: java.io.IOException: Broken value".

For now am using exceptional subprocess for collecting all the exceptions.Do let me know how to handle it please

Regards,

Sandhya

exception.png (22.4 kB)
Add comment
10|10000 characters needed characters exceeded

5 Answers

  • Posted on Jul 29 at 10:26 AM

    Hi Sandhya ravi,

    Not sure if I understood your scenario correctly. Request you to provide more details about iflow.

    Based on your input if your channel goes in error then only way would be is to catch in exception sub-process which means you cant ignore and continue from that point.

    Having said that you definitely can call another local integration process to perform certain operations from exception sub process as well . In exception sub process you can have end message instead of error end if you don't want your message to be in failed status.

    Hope that helps !

    thanks and regards,

    Praveen T

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Praveen Thimma Reddy,

      Thanks for replying !

      Sorry if you didn't understand the issue clearly. Here the issue is we are upserting the data to ODATA adapter where for some of them it is successful and some we are receiving the exception in which i need to ignore two exceptions which are highlighted in the issue earlier and pass it as successful. So how we can handle this case.

      Regards,
      Sandhya

  • Posted on Jul 30 at 01:02 PM

    Hi Team,

    Can you please help me in this.

    Regards,
    Sandhya

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 30 at 05:38 PM

    Hello Sandhya,

    Please elaborate more on "pass it as successful" is it something you want to set overall message status in SAP CPI monitoring to COMPLETED?

    Regards,

    Sriprasad Shivaram Bhat

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sriprasad Shivaram Bhat ,

      Thanks for the reply !

      I mean to say that when ever I get this exceptions I need to ignore the exception and pass as completed. Exceptions are : javax.servlet.ServletException: Error during write of the response: , cause: java.io.IOException: Connection reset by peer" and "javax.servlet.ServletException: Error during write of the response: , cause: java.io.IOException: Broken value.

      Thanks in advance !

      Regards,

      Sandhya

  • Posted on Aug 03 at 01:43 PM

    Hi Sandhya ravi,

    The issue is whenever you get an error on channel. In my opinion only way to handle is to handle it through exception sub process.

    But once control comes to exception subprocess you can't continue from the place where the error occurred.

    Having said that what you could do is based on the error message you can call another local integration process.

    Alternatively would suggest to identify the cause of the error from the application side. If you can increase the timeout parameter and if that helps !

    thanks and regards,

    Praveen T

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 04 at 04:19 AM

    Hi Sandhya ravi,

    In that case you could use Message end event to mark it completed.

    and for other cases you could call another local integration call where you could end with Error end.

    thanks and regards,

    Praveen T

    Add comment
    10|10000 characters needed characters exceeded