<?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>%Filename% macro is not replaced with the disk filename</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx</link><description>I've seen this issue showing a couple of times on the BizTalk Newsgroups so I thought it's worth posting about this on my blog. The user expectation, which is probably correct from usability point of view, is that the %Filename% macro is replaced with</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: %Filename% macro is not replaced with the disk filename</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#661570</link><pubDate>Mon, 10 Jul 2006 20:55:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:661570</guid><dc:creator>Piers</dc:creator><description>It seems relatively easy to do this within an orchestration, but I am not so sure how to do this with a custom pipeline. Do you have a custom pipeline example that does this? Thanks.</description></item><item><title>re: custom pipeline</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#661718</link><pubDate>Tue, 11 Jul 2006 00:29:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:661718</guid><dc:creator>Adrian Hamza</dc:creator><description>I don't have a sample but I'm pretty sure you will find at least a few custom pipeline samples outthere if you search on the Internet.</description></item><item><title>re: %Filename% macro is not replaced with the disk filename</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#662430</link><pubDate>Tue, 11 Jul 2006 19:40:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:662430</guid><dc:creator>Piers</dc:creator><description>I admit that I am fairly new to BizTalk, but I did do a search for custom pipelines and found plenty of good examples. But, all the examples deal with one incoming message, IBaseMessage in the Execute method. For what we are trying to do, we need to get the incoming message (diskIncomingMsg), retrieve the filename of that message and replace the outgoing message (sharepointOutgoingMsg) filename.&lt;br&gt;&lt;br&gt;The way I see to do this with a custom component in a pipeline would be to do the following:&lt;br&gt;&lt;br&gt;- Use the IPersistPropertyBag.Save method in the receive pipeline to save the diskIncomingMsg filename.&lt;br&gt;&lt;br&gt;- Use the IPersistPropertyBag.Load to retrieve the diskIncomingMsg filename in the send pipeline&lt;br&gt;&lt;br&gt;Or, possibly I could promote a property in the custom component in the receive pipeline and save the diskIncomingMsg filename there to be retrieved in the send pipeline?</description></item><item><title> re: custom pipeline</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#662774</link><pubDate>Wed, 12 Jul 2006 01:45:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:662774</guid><dc:creator>Adrian Hamza</dc:creator><description>You have only one message diskIncomingMsg that is modified in the pipeline, you don't have nor do you need two messages. The WSS adapter uses the filename from the WSS.Filename context property. The only thing that you need to do in your receive pipeline, is to modify the diskIncomingMsg and copy the 'filename' value from the FILE.ReceivedFileName to the WSS.Filename context property. When the message exits the pipeline, the filename value will be present in both context properties. You will use IPersistPropertyBag.Load to load the filename value from the FILE.ReceivedFileName context property and then you will use IPersistPropertyBag.Save to save that value in the WSS.Filename property.</description></item><item><title>re: %Filename% macro is not replaced with the disk filename</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#740139</link><pubDate>Tue, 05 Sep 2006 01:11:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:740139</guid><dc:creator>svek</dc:creator><description>How do you use WSS.Filename from a pipeline component?&lt;br&gt;&lt;br&gt;Don't you have to you use the&lt;br&gt;Context.Write(_PropertyName, _PropertyNamespace,. sPropertyValue) method?&lt;br&gt;&lt;br&gt;I haven't been able to find what namespace the WSS-adapter uses. Has anyone else?</description></item><item><title>re: Namespace used by WSS adapter</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#741370</link><pubDate>Tue, 05 Sep 2006 20:41:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:741370</guid><dc:creator>Adrian Hamza</dc:creator><description>You can use BizTalk MMC to discover the namespace and all other details for adapters property schemas and more.&lt;br&gt;&lt;br&gt;Under BizTalk Group -&amp;gt; Applications -&amp;gt; BizTalk System -&amp;gt; Schemas, you will find the WSS.bts_WindowsSharePointServices_properties XSD schema that defines the WSS adapter namespace and properties.&lt;br&gt;&lt;br&gt;The property schema namespace for WSS adapter is '&lt;a rel="nofollow" target="_new" href="http://schemas.microsoft.com/BizTalk/2006/WindowsSharePointServices-properties"&gt;http://schemas.microsoft.com/BizTalk/2006/WindowsSharePointServices-properties&lt;/a&gt;'&lt;br&gt;</description></item><item><title>re: %Filename% macro is not replaced with the disk filename</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#1257502</link><pubDate>Mon, 11 Dec 2006 11:30:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1257502</guid><dc:creator>Onur BIYIK</dc:creator><description>&lt;p&gt;I have created a simple orchestration to pass filename to wss adapter. &lt;/p&gt;
&lt;p&gt;I works ok for most file names. I know, not all NTFS file names are valid for sharepoint. But there are some files which i can upload manually but wss adapter appearently not. &lt;/p&gt;
&lt;p&gt;&amp;quot;ShowTv.RingtoneDistributor.DebitProxy[13-15].rar&amp;quot; is not a valid value for the 'Filename' property. Windows SharePoint Services file names can not contain more than one '.' character.&lt;/p&gt;
&lt;p&gt;Is this a bug in wss adapter? How can i convert file names to be sharepoint compatible?&lt;/p&gt;</description></item><item><title>re: %Filename% macro is not replaced with the disk filename</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#1269038</link><pubDate>Wed, 13 Dec 2006 02:11:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1269038</guid><dc:creator>Adrian Hamza</dc:creator><description>&lt;p&gt;It's a known limitation that's documented here &lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/aa558724.aspx"&gt;http://msdn2.microsoft.com/en-us/library/aa558724.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt; The design time file name will be expanded at runtime into Windows SharePoint Services file names. This Windows SharePoint Services file name has some additional limitations, which are described as follows: &lt;/p&gt;
&lt;p&gt;Valid Windows file names can contain any Unicode characters with the exception of the following: / \ : * ? &amp;lt; &amp;gt; | &amp;quot; # { } % &amp;amp; ~ or tab characters and multiple periods.&lt;/p&gt;
&lt;p&gt;The file name cannot be longer than 256 characters and the entire URL must be less than or equal to 256 characters.&lt;/p&gt;
&lt;p&gt;If the expanded Windows SharePoint Services file name contains invalid characters, or if the expanded file name or URL is too long, an error will be logged in the application event log and the message will be suspended. The error and the message state will also be visible in Health and Activity Tracking (HAT).&lt;/p&gt;
</description></item><item><title>re: %Filename% macro is not replaced with the disk filename</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#8365807</link><pubDate>Mon, 07 Apr 2008 19:31:24 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8365807</guid><dc:creator>Asif Azad</dc:creator><description>&lt;p&gt;I have the same problem with the Macro %FileName%. &lt;/p&gt;
&lt;p&gt;But the links &lt;/p&gt;
&lt;p&gt;( &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/library/en-us/BTS06Operations/html/1ff50fb8-7ba0-47b8-9476-d57413989346.asp?frame=true"&gt;http://msdn.microsoft.com/library/en-us/BTS06Operations/html/1ff50fb8-7ba0-47b8-9476-d57413989346.asp?frame=true&lt;/a&gt; )&lt;/p&gt;
&lt;p&gt;you gave have been replaced ( or not available ). So please can you give me alternative links ..??&lt;/p&gt;
&lt;p&gt;Thanks…&lt;/p&gt;
&lt;p&gt;Asif Azad&lt;/p&gt;</description></item><item><title>re: %Filename% macro is not replaced with the disk filename</title><link>http://blogs.msdn.com/ahamza/archive/2006/06/30/652551.aspx#8365916</link><pubDate>Mon, 07 Apr 2008 20:10:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8365916</guid><dc:creator>Adrian Hamza</dc:creator><description>&lt;p&gt;Try these links:&lt;/p&gt;
&lt;p&gt;WSS ADAPTER&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/aa558724.aspx"&gt;http://msdn2.microsoft.com/en-us/library/aa558724.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/aa547920.aspx"&gt;http://msdn2.microsoft.com/en-us/library/aa547920.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;ALL ADAPTERS&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://msdn2.microsoft.com/en-us/library/aa578103.aspx"&gt;http://msdn2.microsoft.com/en-us/library/aa578103.aspx&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>