catching a exception in biztalk which is thrown by .NET Component

Home Page Forums BizTalk 2004 – BizTalk 2010 catching a exception in biztalk which is thrown by .NET Component

Viewing 1 reply thread
  • Author
    Posts
    • #21961

      Hi I have a question on how to catch a exception which is thrown by .NET component in Orchestration.

      My Scenerio is From Orchestration I am calling a .NET component or method with a parameter and this method inserts data into SQL tables. So my question is if the SQl server is down or the method couldnt insert data into SQL it has to throw an exception and that exception I need to catch in the biztalk orchestration and send it to the SMTP port.

      so How do I catch exception in orchestration which is thrown by .NET component.

      Please give detail information about how to implement exception handling for that method and how to catch that exception in orchestration.

      Thanks

    • #21963
      1. Add a Scope shape
      2. Add an exception handler by clicking the shape and choose “New exeption handler”
      3. In the new handler, choose the type of exception you want it to handle like SqlException or similar.
      4. Choose the name of the variable the exception should have.
      5. Send your SMTP message from the catch block.

      Add more handler if you want to catch other exceptions.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.