Subscribe to Errors and get Promoted properties

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Subscribe to Errors and get Promoted properties

Viewing 1 reply thread
  • Author
    Posts
    • #24610

      It seems that Stephen has done a few examples in this area,  but I wasn’t able to find what I need.

      What I want to do is catch errors by subscribing to them.  I can do this with a send port subscription.

      Now I want to subscribe with an orchestration, get the error, extract the details and email the operator with the details of the error, and a pointer to the error file on the file system.

      I want this to be a generic solution to any message without building an error curcuit for each message type.

      So I am bringing in as System.Xml.  Problem is that without an actual message schema, I can’t get at the properties.

      I would like to use “XLANGMessage.GetPropertyValue()” method, but I can’t cast the input to the XLANGMessage type, and not sure if the property bag would be preserved. 

      Does anyone have any ideas at helping me solve this?

       

       

    • #24615

      Check out this library on Codeplex: http://biztalkdiagnostics.codeplex.com/

      You can add a trace listener to email errors, or reuse the code in your orchestration. It completely shreds an XLANGMessage, including properties, parts and part properties.

      • #24692

        Thanks. Isn’t that a lot of overhead to do what I want?

        I am already getting the error message coming in via subscription, and it has what I want in its context. 

        Can I somehow get the data from the context, instead of investing an elaborate subsystem?

         

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