<?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>Jennifer Lindsay : error</title><link>https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/error/default.aspx</link><description>Tags: error</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>xPaths With Double Forward Slashes Can Prevent Browser Publishing</title><link>https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/2014/07/02/xpath-double-slash-validation-issue.aspx</link><pubDate>Wed, 02 Jul 2014 22:23:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:98244</guid><dc:creator>JenniferLindsay</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">https://www.infopathdev.com:443/blogs/jennifer_lindsay/rsscomments.aspx?PostID=98244</wfw:commentRss><comments>https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/2014/07/02/xpath-double-slash-validation-issue.aspx#comments</comments><description>&lt;p&gt;If you use InfoPath long enough, you will eventually run into a browser&amp;nbsp;publishing error message something like this: &amp;quot;&lt;strong&gt;The form template has been published to the server but it can only be opened in InfoPath Filler&lt;/strong&gt;.&amp;quot;&lt;/p&gt;&lt;p&gt;Often the message will tell you to examine Design Checker and resolve any errors that appear there, but if there aren&amp;#39;t any errors then this message can feel quite frustrating.&amp;nbsp; Your next step in troubleshooting should be examining the SharePoint logs, but that&amp;#39;s not possible if you have a cloud-based installation, such as Office 365, and there&amp;#39;s no guarantee the logs will contain useful information.&amp;nbsp; Another tool that can help with troubleshooting is &lt;a href="http://www.telerik.com/fiddler" target="_blank"&gt;Fiddler&lt;/a&gt;, a simple desktop application that allows you to examine the web traffic that is sent back &amp;amp; forth&amp;nbsp;between InfoPath and your SharePoint server during the publishing process---but again, no guarantees that that traffic will contain the answer.&lt;/p&gt;&lt;p&gt;If you&amp;#39;ve tried all these steps and still don&amp;#39;t know what&amp;#39;s going wrong, then usually (a) there is a configuration issue with your SharePoint server, or (b) InfoPath has failed to catch an error in your form&amp;nbsp;template. A few weeks ago, I discovered one of these types of errors after a long painstaking search. I&amp;#39;m posting this blog to give you a heads up, in case you&amp;#39;ve got a similar undetected error in your own template.&lt;/p&gt;&lt;p&gt;For some reason, InfoPath will verify xPaths that contain double forward slashes, like the following:&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;xdXDocument:GetDOM(&amp;quot;Status&amp;quot;)/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW&lt;span style="background:yellow;mso-highlight:yellow;"&gt;//&lt;/span&gt;d:ID&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;In other words, if you have a double slash inside an xPath expression in one of your rules, then InfoPath won&amp;#39;t detect it and will treat the xPath as valid.&lt;/p&gt;&lt;p&gt;If you then try to browser publish a form containing such an expression, IPFS---InfoPath Forms Service, the server-side web service that converts templates to browser forms---will throw an error and only publish in filler mode without telling you why.&amp;nbsp; What&amp;#39;s more, the associated SharePoint logs won’t point to this xPath as a source of the error, leaving you to find this only by trial &amp;amp; error debugging. Isn&amp;#39;t that wonderful?&lt;/p&gt;&lt;p&gt;Now, before you throw up your hands and say you don&amp;#39;t have the time to manually examine every single rule in your complex form template, there&amp;#39;s an easy&amp;nbsp;way to do this: export the source files (File -&amp;gt; Publish -&amp;gt; Export Source Files) then find the file called manifest.xsf and open it in a text editor,&amp;nbsp;such as Notepad.&amp;nbsp; Then simply search for &amp;quot;//my&amp;quot; and, if you have&amp;nbsp;any data connections in your form, also search for&amp;nbsp;&amp;quot;//d&amp;quot;&amp;nbsp;- this will locate only double forward slashes in the xPath expressions in your template.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So, next time you get a browser publish error alert and InfoPath&amp;#39;s Design Checker doesn&amp;#39;t show any errors, check your xPaths and see if any of them contain double forward slashes.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Happy Form Designing!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;~Jen &lt;/p&gt;&lt;img src="https://www.infopathdev.com:443/aggbug.aspx?PostID=98244" width="1" height="1"&gt;</description><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/xpath/default.aspx">xpath</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/forward/default.aspx">forward</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/error/default.aspx">error</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/infopath/default.aspx">infopath</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/browser/default.aspx">browser</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/slash/default.aspx">slash</category><category domain="https://www.infopathdev.com:443/blogs/jennifer_lindsay/archive/tags/publish/default.aspx">publish</category></item></channel></rss>