Error Handling and Design Question

Home Page Forums BizTalk 2004 – BizTalk 2010 Error Handling and Design Question

Viewing 2 reply threads
  • Author
    Posts
    • #16059

      Hi All,

       

      I'm using BTS-2006.

       

      1. In some of my BTS project i i should to log every error/exception to DB for this case i decided  to create Orchestration that

          handle this issue ErrorHandlerOrchestration. I want call to this ErrorHandlerOrchestration from other Orchestrations from Catch block

          or from other shapes, Also i want to pass to this ErrorHandlerOrchestration   a xmlMessage on which error occured and also exception itself

          i.e. object of type System.Exception.

          Is it possible and how???

       

       

      another question 

      2. I'm trying to  use new feature in BTS-2006 –> route failed messages:

          to feel how this works i created 2 Orchestrations

          in the first Orchestration that subscribed to message of type XmlDocument i created Receive Shape that has DIRECT bind,

          and in Filter —> ErrorReport.ErrorType = "FailedMessage"

         after receive shape followes send shape.

          In second Orchestration i there are on receive and one send shape, the receive shape subscribed to on of defined schemas.

         The problem is, when i put to xml files to folder then all files moved to Out folder defined by my, i.e.  the first Orchestration where

         optin "Enable routing for failed messages  "   is checked  always takes all files not mention either it's well formed or not.

       

      How to solve this problem??

       

      THANKS in Advance

    • #16109

      This should be possible.  I’d create a generic Xml Schema that contains all the elements you want to pass to the Error Orchestration.  Then, I’d populate and construct the message in the catch shape.  You’ll probably want a help .net class to do your work.  Have it take in your exception object and return you error message.

       

      Your 2nd problem, I think you have a problem with your subscription.  Not sure what.  I have a sample on my site that covers this – you might want to take a look at it to see if something is set wrong on your side.

    • #16118

      Regarding with your second question, you include one more filter ErrorReport.ReceivePortname="——————" and try it.

       

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