<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Namespace prefix for promoted properties</title><link>https://www.infopathdev.com:443/forums/thread/70069.aspx</link><pubDate>Tue, 06 Sep 2011 20:10:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70069</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70069.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=70069</wfw:commentRss><description>&lt;p&gt;Hello eliasen,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; We have seen this issue before.&amp;nbsp; It is indeed the case that for whatever reason, SharePoint will not process promoted properties if the namespace prefix doesn&amp;#39;t match up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; I think it&amp;#39;s very possible that option 1 wouldn&amp;#39;t work even if you tried it.&amp;nbsp; It may not simply be a matter of the XPath used in the promoted property definition, but I couldn&amp;#39;t say that for sure.&amp;nbsp; What I can say is that your concern about the manifest getting updated and modified is an entirely possible situation, and something to be avoided.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp; For that reason, I think 2 is the better option, even if it has its drawbacks.&amp;nbsp; Could you elaborate on the tracking you&amp;#39;re referring to?&amp;nbsp; It should be pretty easy to come up with an XSLT to swap out the namespace prefixes for my:, and it should be easy enough to write reliable code to run an XSLT.&lt;/p&gt;</description></item><item><title>Namespace prefix for promoted properties</title><link>https://www.infopathdev.com:443/forums/thread/69760.aspx</link><pubDate>Mon, 29 Aug 2011 09:18:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69760</guid><dc:creator>eliasen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69760.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=69760</wfw:commentRss><description>&lt;p&gt;Hi all&lt;/p&gt;
&lt;p&gt;I have created an InfoPath template and during the publishing process I have promoted a property to a SharePoint column. This all works fine, and for each form that is saved in the document library for this template, the promoted property works fine.&lt;/p&gt;
&lt;p&gt;Now someone else has the need to create forms in the document library using code - it&amp;#39;s a web service that receives an XML document (that conforms to the XSD of the template) and saves it to the document library. The issue now is, that instead of the &amp;quot;my&amp;quot; namespace prefix, the program that calls the web service generates &amp;quot;ns0&amp;quot;. Now, the XML is still valid given the XSD and Forms Server will display the form just fine. BUT, it appears that the definition of the promoted property is namespace prefix dependent (Don&amp;#39;t you just hate systems that rely on a specific namespace prefix?). So the property isn&amp;#39;t promoted at all.&lt;/p&gt;
&lt;p&gt;Is there anything I can do about that? I would really hate to have to tell the caller of the web service that he needs to change the prefix of the XML he is sending for a couple of reasons:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;It really shouldn&amp;#39;t be necessary - the prefix shold not mean anything&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;The one calling the web service is using BizTalk and for him to change the prefix isn&amp;#39;t that easy - it requires manual editing of generated files and can be overwritten later on&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;Myself, I have two suggestions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;In the manifest, where the promoted property is described, change the XPath expression for the property. This, however, can be overwritten later on, when the manifest file is updated&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In the web service, change the prefix to &amp;quot;my&amp;quot; and save. This, however, means that what we save isn&amp;#39;t what was sent to us so tracking is hard, and it introduces some code that may contain errors.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;&amp;nbsp;Any other ideas?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks!&lt;/p&gt;</description></item></channel></rss>