Promoting context properties

Home Page Forums BizTalk 2004 – BizTalk 2010 Promoting context properties

Viewing 1 reply thread
  • Author
    Posts
    • #16312

      I have an orchestration that subscibe to all messages having ErrorReport.ErrorType="FailedMessage". This orchestration manage all the errors of my orchestrations.

      One of my orchestration doesn't have a receive port (it have direct binding to the message box), so I coud't check the option "enable routing for failed messages". So my solution was (do you have a better one?) that if I catch an exception in this orchestration, I create an error message and set the  ErrorReport.ErrorType to "FailedMessage" and send it directly to message box for routing.

       But I get an routing error. It seems that the ErrorReport.ErrorType context property is not promoted so the routing fails.

       Did someone know what I could do here? Is it possible to promote this property and how?

      Thanks for your help.

    • #16329

      You need to use a Correlation Set to promote the properties when you send a message out of the Orchestration using Direct Binding.  It seems a little odd, but it is the only way to accomplish what you want. 

       

      Just define a correlation set with your property in it and initialize it on the Send Port.  You will not have anyone following the correlation set. 

       

      Charles Young talks more about it here: http://geekswithblogs.net/cyoung/articles/17364.aspx or http://geekswithblogs.net/cyoung/articles/19546.aspx

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