Decide Shape Weirdness

Home Page Forums BizTalk 2004 – BizTalk 2010 Decide Shape Weirdness

Viewing 1 reply thread
  • Author
    Posts
    • #25171

      Greetings to All!

      In a Decide Shape I have a message that gets routed to one of 4 ports by the value of a promoted property called “Name”.  The “Else” is the 4th contingent and is basically my error exit.  If “Name” value is not one of the 3 If comparisons we have a bad value and it goes to the error (Else) port.

      All works and all is good.  Until…..

      I promoted a second property in the message called “DocumentID”.  I needed the value to put in the subject line of an email.  That worked fine until I saw that suddenly my decide shape went bad.  Though there was NO CODE in it to look at the “DocumentID” field, it started going through the else every time.  In short, the decide shape seems to see the promoted property and says “Oh – this must be Else” and drops a copy to the error handler.  I now get TWO ports activated for every run!  One port gets the message for the “name” field correctly and the “ELSE” field fires every time also.

      I reverted to an earlier version without the “DocumentID” field being promoted and everything fixed itself – except of course I don’t have the value for my email field.  Oddly – doing a “Remove” from the “Show Promotions” dialog box did not remove all references in the schemas to the promoted field.  That is why I had to go to the earlier version.  After that the Else worked correctly.

      Does this sound like anything that folks have seen?

      Much thanks if anyone knows the fix.

      – Ziggy –

    • #25173

      Hi Ziggy,

       

         I assume that you promoted both fields as Promoted Properties. Have you tried promoting them as Distinguished Fields, since you seem to be just using them in the orchestration?

       

         I’m not sure if you can use Distinguished Fields in your scenario, but give it a try and see if that works. Btw, Distinguished Fields are more light-weight then Promoted Properties.

       

         Daniel.

       

      • #25176

        Hi Daniel

        I tried that and much to my surprise it worked!  I think that originally I had made the DocumentID a promoted property.  It was not showing up in the intellisense (expression in an assignment shape) and then I ALSO did distinquished.  So it was both.  At that point the value was available for my email subject field but I also got the weird double messages. 

        This time it is ONLY distinquished and that is working correctly.  I get one email and the subject line is correct.

        I am learning not to do the “Quick Promotion” but rather open the promo dialog box and choose the type of promotion I want.

        Thanks much-much!!!!

        – Ziggy –

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