<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: REST query fails for end users</title><link>https://www.infopathdev.com:443/forums/thread/117168.aspx</link><pubDate>Fri, 01 Sep 2017 20:08:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117168</guid><dc:creator>GMUDuckman</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117168.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=117168</wfw:commentRss><description>What error is is outputting? My guess is that Filer isn&amp;#39;t passing along any authentication - can you setup the form up in a sharepoint infopath library and see if the form works properly if you open it in the browser?</description></item><item><title>Re: REST query fails for end users</title><link>https://www.infopathdev.com:443/forums/thread/117086.aspx</link><pubDate>Thu, 24 Aug 2017 21:28:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:117086</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/117086.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=117086</wfw:commentRss><description>&lt;p&gt;Sorry for the delay.&lt;/p&gt;

&lt;p&gt;&amp;nbsp;I&amp;#39;ve replaced the &amp;quot;personal&amp;quot; Code Signing certificate with a real one, still no luck.&lt;/p&gt;

&lt;p&gt;Here&amp;#39;s my code. Am I using it correctly?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font color="#006633"&gt;cliLib = cliNo.Substring(0, 2) + &amp;quot;000&amp;quot;;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#006633"&gt;//get the REST connection&lt;br /&gt;FileQueryConnection fq = (FileQueryConnection)this.DataConnections[&amp;quot;REST ClientLib&amp;quot;];&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#006633"&gt;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;//change the url to point to the client folder&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&amp;nbsp;fq.FileLocation = this.ServerInfo.SharePointServerRootUrl.ToString() + &amp;quot;clients/c/docs/_vti_bin/listdata.svc/C_&amp;quot; + cliLib + &amp;quot;?$filter=Title eq &amp;#39;&amp;quot; + cliNo + &amp;quot;&amp;#39;&amp;quot;;&lt;br /&gt;&amp;nbsp;fq.Execute();&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;catch (Exception ex)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;LogActivity(ActionStr.ERROR, ex.Message);&lt;br /&gt;}&lt;/font&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: REST query fails for end users</title><link>https://www.infopathdev.com:443/forums/thread/116939.aspx</link><pubDate>Mon, 07 Aug 2017 16:20:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116939</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116939.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=116939</wfw:commentRss><description>You can extend the timeout in code for your data connection, yes - but I&amp;#39;m not sure why it would timeout for others and not for you? Did you try Fiddler?</description></item><item><title>Re: REST query fails for end users</title><link>https://www.infopathdev.com:443/forums/thread/116924.aspx</link><pubDate>Sat, 05 Aug 2017 00:13:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116924</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116924.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=116924</wfw:commentRss><description>&lt;p&gt;Hi Hilary, &lt;/p&gt;&lt;p&gt;Correct, this is a Filler form. I did create a separate test form and it worked fine. The error that comes back only presents the URL (which is the correct one), saying that it can&amp;#39;t return the results. There is no proper error handling&amp;nbsp;for this unfortunately.&amp;nbsp;Is there any way to extend the timeout on this?&amp;nbsp;&lt;/p&gt;&lt;p&gt;BTW, just to give you a bit more info...&lt;br /&gt;The REST query&amp;nbsp;targets folder in&amp;nbsp;one of 12 possible SharePoint Document Libraries (hence not using a SharePoint List query because the URL is not modifiable at runtime).&lt;/p&gt;&lt;p&gt;The user types the Client Number (which is the same as the target folder) and a rule picks this up, edits the REST URL and executes. Then in principle, another field is updated with the found folder name&amp;nbsp;but this never happens because the query fails.&lt;/p&gt;&lt;p&gt;I&amp;#39;m starting to think&amp;nbsp;that I&amp;#39;d be better off exporting the PDF to a separate &amp;quot;fixed&amp;quot; library and building a new workflow to move it to the end target. At least it would be transparent to the end user.&lt;/p&gt;&lt;p&gt;Thoughts?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: REST query fails for end users</title><link>https://www.infopathdev.com:443/forums/thread/116922.aspx</link><pubDate>Fri, 04 Aug 2017 23:15:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116922</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116922.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=116922</wfw:commentRss><description>So - they aren&amp;#39;t using a browser form, but IP filler? If you just create a simple test for with the same REST query (no code) do they have the same issue? Do they get an actual error message on why the query fails? Oh, if this is in Filler, you may want to try running Fiddler when they try the form, so you can get a look at what&amp;#39;s happening.</description></item><item><title>REST query fails for end users</title><link>https://www.infopathdev.com:443/forums/thread/116902.aspx</link><pubDate>Thu, 03 Aug 2017 16:58:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116902</guid><dc:creator>Josee Sevigny</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116902.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=116902</wfw:commentRss><description>&lt;p&gt;Hi, &lt;/p&gt;&lt;p&gt;&amp;nbsp;I built a REST data connection&amp;nbsp;to validate the presence of a target folder prior to exporting to PDF. &lt;/p&gt;&lt;p&gt;The query works for me in and out of InfoPath. &lt;br /&gt;The query works for end users outside of InfoPath.&lt;br /&gt;The query FAILS for end users while in InfoPath.&amp;nbsp;&lt;/p&gt;&lt;p&gt;I verified that the query&amp;nbsp;uses the correct path and filter.&lt;br /&gt;I verified that the end user has permissions to the target folder.&lt;/p&gt;&lt;p&gt;And&amp;nbsp;obviously, because the following is to export to PDF, the form is Full Trust with&amp;nbsp;a code signing certificate.&amp;nbsp;&lt;/p&gt;&lt;p&gt;What am&amp;nbsp;I missing?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>