<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Receive Data Connection only gets data from active form.</title><link>https://www.infopathdev.com:443/forums/thread/40905.aspx</link><pubDate>Thu, 23 Apr 2009 09:35:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40905</guid><dc:creator>r3soant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40905.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=40905</wfw:commentRss><description>&lt;p&gt;I recreated the data connection several times to no avail.&lt;/p&gt;&lt;p&gt;I have now gone back to the initial idea of just using the ID field.&amp;nbsp; However, I am now experiencing issues with this.&lt;/p&gt;&lt;p&gt;I publish the form, clear the form cache in Infopath of the published template, open the form, fill it in, submit it and it all works fine.&lt;/p&gt;&lt;p&gt;Then when I try to open another one to fill in I get the following error.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;
The query cannot be run for the following DataObject: GetID

&lt;/p&gt;&lt;p class="MsoNormal"&gt;InfoPath cannot run the specified query.&lt;/p&gt;&lt;p&gt;

&lt;span style="font-size:11pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;InfoPath
either cannot connect to the data source, the service has timed out, or the
server has an invalid certificate.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;If I clear the cache again it works, until the next time I open the form.&lt;/p&gt;&lt;p&gt;I have tried on different machines but to no avail, the same thing occurs.&lt;/p&gt;&lt;p&gt;A search on google has not turned up any answers.&lt;/p&gt;&lt;p&gt;Any help would be very appreciated.&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Receive Data Connection only gets data from active form.</title><link>https://www.infopathdev.com:443/forums/thread/40873.aspx</link><pubDate>Wed, 22 Apr 2009 20:26:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40873</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=40873</wfw:commentRss><description>&lt;p&gt;Hi --&lt;/p&gt;
&lt;p&gt;The Id field from a list or library in SharePoint is only used once, so, yes, if you have an item with an id of &amp;#39;1&amp;#39;, that will be the only &amp;#39;1&amp;#39; you&amp;#39;ll ever have...&lt;/p&gt;
&lt;p&gt;It does seem odd that your data connection is only getting data for the active form! That is very unSharePoint like -- usually it gives you way more data than you really want. Have you tried recreating the data connection, just walking through it again to make sure you&amp;#39;ve got it right? &lt;/p&gt;</description></item><item><title>Receive Data Connection only gets data from active form.</title><link>https://www.infopathdev.com:443/forums/thread/40754.aspx</link><pubDate>Mon, 20 Apr 2009 16:13:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:40754</guid><dc:creator>r3soant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/40754.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=40754</wfw:commentRss><description>&lt;p&gt;Hi.&amp;nbsp; I hope someone on here can help me with this issue.&lt;/p&gt;&lt;p&gt;We have a Infopath 2007 procurement form in a MOSS 2007 library.&amp;nbsp; I need the form to generate a unique Quote Number every time a form is submitted for the first time.&lt;/p&gt;&lt;p&gt;I have read a couple of articles that said using the automatically generated ID field and then adding 1 after using max(@ID) to find the highest number in the library.&lt;/p&gt;&lt;p&gt;I implemented this and it worked fine.&lt;/p&gt;&lt;p&gt;However, while I was testing it I noticed that if you deleted a form (or 10) and even after emptying the recycling bin the used ID&amp;#39;s are still remembered.&amp;nbsp; This is not really desirable for our purchasing department.&amp;nbsp; They would like the Quote Numbers to go up constantly and not jump by 10 or 20.&lt;/p&gt;&lt;p&gt;To resolve this I thought I would create another field and use that instead of the ID field.&amp;nbsp; My data connection queries it but it only seems capable of querying the field from the active form, not the whole library.&lt;/p&gt;&lt;p&gt;I checked my data connection settings and &amp;quot;Include data for the active form only&amp;quot; is not checked. &lt;/p&gt;&lt;p&gt;Does any&amp;nbsp; have any ideas why the max() function is only looking at the actvie form?&amp;nbsp; If I turn off the check to see if the form has been submitted before (which stops the Quote ID number from changing after the initial submit), then every time I re-submit it the number increments perfectly, but it is only seeing the active form.&lt;/p&gt;&lt;p&gt;Oh, when it&amp;#39;s not working I get NaN in the field.&amp;nbsp; Even though there are other forms in the library with 2 or 3 for the field value. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks in advance. &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>