Exception Handling

Home Page Forums BizTalk 2004 – BizTalk 2010 Exception Handling

Viewing 1 reply thread
  • Author
    Posts
    • #13174

      Hello guys,
      I have an orchestraction that processes and sends a message to a file location. What I want to do is that if the send fails, call a webservice to update a flag in database table. If the send is successful, I call another method exposed by the webservice to update another table.

      So, here is what I did. I put my \”send\” shape within a scope that has an exception block of type \”DeliveryFailureException\”. In this exception block, I call the webservice to update a flag. This works perfect except that the orchestration continues to process whatever comes after teh exception block.

      Shouldn’t it have stopped processing after executing whatever was in the exception block? Please advise….

      Thanks.

    • #13175

      This works just like try/catch. By declaring an exception handler(catch) you stop the exception from being propagated. And so subsequent code will be performed.

      You can have a decide shape after the ExceptionHandler using some flag and terminate gracefully or you can throw an exception as the last step within the ExceptionHandler block and suspend the orchestration.

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