<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx</link><description>Abstract : I’ve been dealing with context properties, and I’ve discovered a couple of very useful tricks for promoting and routing. some definitions: As you’ll probably know, there are two types of properties in the context of a message: properties based</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#523728</link><pubDate>Fri, 03 Feb 2006 05:11:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:523728</guid><dc:creator>Amit Chawla</dc:creator><description>Would send ports subscribe to properties promoted in such a way? &lt;br/&gt;&lt;br/&gt;I have a similar situation, but want the message to be subscribed by the send port NOT another orchestration. &lt;br/&gt;&lt;br/&gt;Any Ideas? &lt;br/&gt;chawla@iprimus.com.au &lt;br/&gt;</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#526055</link><pubDate>Tue, 07 Feb 2006 01:07:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:526055</guid><dc:creator>Cristian Sobral</dc:creator><description>I've tried this today and works for both, orchestartions and send ports.</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#561718</link><pubDate>Mon, 27 Mar 2006 10:06:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:561718</guid><dc:creator>John</dc:creator><description>Cool stuff David!&lt;br&gt;&lt;br&gt;How I can defined the CorrelationSet inside the loop. I need in each iteration to create a new one, Any ideas?&lt;br&gt; &lt;br&gt;&lt;br&gt;</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#568061</link><pubDate>Tue, 04 Apr 2006 15:25:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:568061</guid><dc:creator>Jukka Laaksonen</dc:creator><description>I had the same problem.&lt;br&gt;I solved it calling an other orchestration inside the loop. The called orchestration can initialize the correlation set.&lt;br&gt;</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#572628</link><pubDate>Mon, 10 Apr 2006 20:36:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:572628</guid><dc:creator>rick</dc:creator><description>unless i'm missing something, the problem with this method is that if you have two different orchs where you want to init a corr set based on the same property...you will get an error on build, corr may be initialized only once, which makes sense. &amp;nbsp;&lt;br&gt;&lt;br&gt;is there some way around this, without doing a custom pipe? &amp;nbsp;thx.</description></item><item><title>It doesn't seem work with BTS2006</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#614203</link><pubDate>Fri, 02 Jun 2006 16:19:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:614203</guid><dc:creator>Chris Han</dc:creator><description>David,&lt;br&gt;I tried this method with BTS2006 beta2 I created a dummy correlation set only with one context property -InterchangeID. It doesn't get promoted. It works if I promote it in the pipeline.&lt;br&gt;&lt;br&gt;Any clue?</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#825480</link><pubDate>Sat, 14 Oct 2006 19:40:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:825480</guid><dc:creator>Suneet</dc:creator><description>&lt;p&gt;Great trick... thats what I was looking for exactly... Thanks.&lt;/p&gt;
</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#930794</link><pubDate>Thu, 02 Nov 2006 15:55:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:930794</guid><dc:creator>Raj</dc:creator><description>&lt;p&gt;I have created a custom adapter in VB .Net for receiving file. In the orchestration later I want to send a file with the same name as received. How can I do that?&lt;/p&gt;
</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#1938410</link><pubDate>Fri, 23 Mar 2007 20:07:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1938410</guid><dc:creator>Prasanna Krishnan</dc:creator><description>&lt;p&gt;Just one little thing, if you have multiple fields in your correlationset then you need to initialize all the variables, it took me half a day to figure out why it was failing&lt;/p&gt;
&lt;p&gt;Anyway thanks for the simple trip, saved me creating custom pipeline&lt;/p&gt;
</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#3597977</link><pubDate>Fri, 29 Jun 2007 08:48:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3597977</guid><dc:creator>Ben Szymkow</dc:creator><description>&lt;p&gt;Thanks. The correlation promotion trick worked well for me. I was needing to route based on FILE.ReceivedFileName which does seemingly not get promoted by default.&lt;/p&gt;
&lt;p&gt;I created a dummy Correlation Set/Type and set the send port to initialize it and the process worked swimmingly.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Ben Szymkow&lt;/p&gt;
</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#4031159</link><pubDate>Tue, 24 Jul 2007 19:46:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4031159</guid><dc:creator>BizUser</dc:creator><description>&lt;p&gt;I'm getting the error when doing the following.&lt;/p&gt;
&lt;p&gt;Error is in very last of this message.&lt;/p&gt;
&lt;p&gt;I added a new element in PropertySchema and set the PropertySchemaBase to MessageContextPropertyBase.&lt;/p&gt;
&lt;p&gt;Then I created a dummy CorrelationSet and select the element which I created in PropertySchema as a CorrelationProperty (only one element in the CorrelationSet)&lt;/p&gt;
&lt;p&gt;Then In my first receive shape in odx, I'm initializing the newly created correlation set. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;what I'm trying to do is retrieve the first part of the File.ReceiveFileName and assing its value to the property.&lt;/p&gt;
&lt;p&gt;ReceivedFilePrefix = MessageRequestFromTPA(FILE.ReceivedFileName);&lt;/p&gt;
&lt;p&gt;ReceivedFilePrefix.Substring(0,ReceivedFilePrefix.IndexOf(&amp;quot;_&amp;quot;));&lt;/p&gt;
&lt;p&gt;Then in the very end, I'm sending a message to a Direct Port (MessageBox) &lt;/p&gt;
&lt;p&gt;MessageResponse(solutionname.PropertySchema.ReceivedFilePrefix) = ReceivedFilePrfix.&lt;/p&gt;
&lt;p&gt;In the SendPort in MMC I filter the newly created property. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;solution Built fine and deployed.&lt;/p&gt;
&lt;p&gt;but I'm getting an error as soon as it hit the first receive shap in odx where I'm initializting the correlation set:&lt;/p&gt;
&lt;p&gt;ERROR:&lt;/p&gt;
&lt;p&gt;Inner exception: Failed to initialize the correlation property name: ReceivedFilePrefix namespace: &lt;a rel="nofollow" target="_new" href="http://ProjectName.PropertySchema.PropertySchema"&gt;http://ProjectName.PropertySchema.PropertySchema&lt;/a&gt; from message: MessageRequestFromTPA.&lt;/p&gt;
</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#4521424</link><pubDate>Thu, 23 Aug 2007 10:00:34 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:4521424</guid><dc:creator>Ashwani</dc:creator><description>&lt;p&gt;Great post. Helped my cause a great deal.&lt;/p&gt;
</description></item><item><title>Reference materials for MCTS BizTalk Server 2006 (Exam 70-235) &amp;laquo; Sathish Krishnan&amp;#8217;s Weblog</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#7611609</link><pubDate>Mon, 11 Feb 2008 17:06:15 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7611609</guid><dc:creator>Reference materials for MCTS BizTalk Server 2006 (Exam 70-235) « Sathish Krishnan’s Weblog</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://sathishkumarkrishnan.wordpress.com/2008/02/10/reference-materials-for-mcts-biztalk-server-2006-exam-70-235/"&gt;http://sathishkumarkrishnan.wordpress.com/2008/02/10/reference-materials-for-mcts-biztalk-server-2006-exam-70-235/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#8341803</link><pubDate>Fri, 28 Mar 2008 17:30:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8341803</guid><dc:creator>Bembeng Arifin</dc:creator><description>&lt;p&gt;Hi Dave,&lt;/p&gt;
&lt;p&gt;Thanks for the post, you just saved me ;) &lt;/p&gt;
&lt;p&gt;Finally after wasting a day for this, but always glad to find a solution in the end ;)&lt;/p&gt;
</description></item><item><title>re: Easy Promotion of Context Properties</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#8593538</link><pubDate>Thu, 12 Jun 2008 22:22:59 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8593538</guid><dc:creator>Romie </dc:creator><description>&lt;p&gt;I couldn't get this to work in 06 either. I'm using BTS06 R2. Guess I'll try the pipeline method!&lt;/p&gt;
</description></item><item><title>Property Promotion inside Orchestration</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#8761811</link><pubDate>Mon, 21 Jul 2008 18:43:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8761811</guid><dc:creator>Saravana Kumar</dc:creator><description>&lt;p&gt;Property Promotion inside Orchestration&lt;/p&gt;
</description></item><item><title>Property Promotion inside Orchestration</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#8788980</link><pubDate>Tue, 29 Jul 2008 17:42:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8788980</guid><dc:creator>Saravana Kumar</dc:creator><description>&lt;p&gt;Property Promotion inside Orchestration&lt;/p&gt;
</description></item><item><title>Problem using PromotedProperties and CorrelationSets | keyongtech</title><link>http://blogs.msdn.com/dhtoran/archive/2005/07/07/436395.aspx#9364915</link><pubDate>Thu, 22 Jan 2009 11:37:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9364915</guid><dc:creator>Problem using PromotedProperties and CorrelationSets | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/330969-problem-using-promotedproperties-and-correlationsets"&gt;http://www.keyongtech.com/330969-problem-using-promotedproperties-and-correlationsets&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>