locked
Biztalk server excepton handling RRS feed

  • Question

  • How to create exception handling  Blocks in biztalk application?

    How to connect sql adapter to sap addapter in purhege order sys in biztalk?

    How to handle exceptions in orchestration?

    Tuesday, August 10, 2010 6:58 AM

Answers

  • Hi,

    You need to use scope shape in Orchestration to handle exceptions in Orchestration.

    The steps for setting up a transaction and exception handling are:
    1.Create a scope.
    2.Identify the kind of transaction you need.
    3.Determine what will need to be compensated.
    4.Identify potential errors.
    5.Add appropriate exception handlers and compensation code.

    Have a look into http://www.codeproject.com/KB/biztalk/ExceptionDemo.aspx for sample.

    Regards,

    Abhijit

     


    Please "Mark as Answer" if Post has Answered the Question
    • Proposed as answer by AmitBTS Thursday, August 12, 2010 5:18 AM
    • Marked as answer by Andrew_ZhuModerator Tuesday, August 17, 2010 8:19 AM
    Tuesday, August 10, 2010 7:21 AM
  • To handle exceptions in an orchestration you enclose the bit you want to 'handle' in a scope shape and then right click on the scope shape and select "New Exception Handler".

    This will add an exception handler to the scope in which you select the exception type, give the exception variable a name and add whatever logic you need in the handler.

    You can add multiple handlers to handle different exception types, just as you would in any .net project.

     

    I'm not sure how you first question differs from the last, and definitely don't understand the second.

     

    Hope that helps

     

    Yossi


    Yossi Dahan http://www.sabratech.co.uk/blogs/yossidahan [To help others please mark replies as answers if you found them helpful]
    • Proposed as answer by AmitBTS Thursday, August 12, 2010 5:18 AM
    • Marked as answer by Andrew_ZhuModerator Tuesday, August 17, 2010 8:19 AM
    Tuesday, August 10, 2010 7:22 AM
    Moderator
  • Hi,

    For more information on handling exceptions see "Using BizTalk Server Exception Handling". This article is aimed at BizTalk 2010 but also applies to previous versions (2004, 2006, 2009).

    Kent Weare has a great webcast about the SAP Adapter. This webcast might be helpful to you.

     


    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    Tuesday, August 10, 2010 7:21 AM
    Moderator

All replies

  • Hi,

    You need to use scope shape in Orchestration to handle exceptions in Orchestration.

    The steps for setting up a transaction and exception handling are:
    1.Create a scope.
    2.Identify the kind of transaction you need.
    3.Determine what will need to be compensated.
    4.Identify potential errors.
    5.Add appropriate exception handlers and compensation code.

    Have a look into http://www.codeproject.com/KB/biztalk/ExceptionDemo.aspx for sample.

    Regards,

    Abhijit

     


    Please "Mark as Answer" if Post has Answered the Question
    • Proposed as answer by AmitBTS Thursday, August 12, 2010 5:18 AM
    • Marked as answer by Andrew_ZhuModerator Tuesday, August 17, 2010 8:19 AM
    Tuesday, August 10, 2010 7:21 AM
  • Hi,

    For more information on handling exceptions see "Using BizTalk Server Exception Handling". This article is aimed at BizTalk 2010 but also applies to previous versions (2004, 2006, 2009).

    Kent Weare has a great webcast about the SAP Adapter. This webcast might be helpful to you.

     


    HTH,

    Randal van Splunteren - MVP, MCTS BizTalk Server
    http://biztalkmessages.vansplunteren.net

    Please mark as answered if this answers your question.

    Check out the PowerShell provider for BizTalk: http://psbiztalk.codeplex.com
    Tuesday, August 10, 2010 7:21 AM
    Moderator
  • To handle exceptions in an orchestration you enclose the bit you want to 'handle' in a scope shape and then right click on the scope shape and select "New Exception Handler".

    This will add an exception handler to the scope in which you select the exception type, give the exception variable a name and add whatever logic you need in the handler.

    You can add multiple handlers to handle different exception types, just as you would in any .net project.

     

    I'm not sure how you first question differs from the last, and definitely don't understand the second.

     

    Hope that helps

     

    Yossi


    Yossi Dahan http://www.sabratech.co.uk/blogs/yossidahan [To help others please mark replies as answers if you found them helpful]
    • Proposed as answer by AmitBTS Thursday, August 12, 2010 5:18 AM
    • Marked as answer by Andrew_ZhuModerator Tuesday, August 17, 2010 8:19 AM
    Tuesday, August 10, 2010 7:22 AM
    Moderator