<?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: Retrieve from Sharepoint not working</title><link>https://www.infopathdev.com:443/forums/thread/42116.aspx</link><pubDate>Wed, 27 May 2009 06:36:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42116</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42116.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=42116</wfw:commentRss><description>&lt;p&gt;Hi GreenAnt,&lt;/p&gt;
&lt;p&gt;Are you sure you are checking the default view in the SharePoint list? &lt;/p&gt;
&lt;p&gt;Anyway, this is not a good way to increment the value because it depends on the default view which doesn&amp;#39;t necessarily have all items in it and it doesn&amp;#39;t protect against two simultaneous submitters getting the same value. You should submit the form and then query to get the ID and add it to the form and submit again. That&amp;#39;s a bit of a hack (since you have a dual submit), but it&amp;#39;s an easy way to do what you want without this issue.&lt;/p&gt;
&lt;p&gt;Best of luck!&lt;/p&gt;</description></item><item><title>Retrieve from Sharepoint not working</title><link>https://www.infopathdev.com:443/forums/thread/42045.aspx</link><pubDate>Tue, 26 May 2009 02:43:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42045</guid><dc:creator>greenant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42045.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=42045</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;br /&gt;&lt;br /&gt;I have a data connection set up that queries a Sharepoint form library and returns the ID field.&lt;br /&gt;&lt;br /&gt;In Infopath, I have set up a field to contain &lt;b&gt;max(@ID) +1&lt;/b&gt;&lt;br /&gt;This worked fine until I reached ID &lt;b&gt;190, &lt;/b&gt;now this is the only ID that the data connection returns.&lt;br /&gt;&lt;br /&gt;The form uses this field as the file name.&lt;br /&gt;&lt;br /&gt;This means all new forms created have a filename of &lt;b&gt;191.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I have checked the list, and there are definitely 191 entries. The latest ID was 191.&lt;br /&gt;I then tried uploading a document to take the place of 192.&lt;br /&gt;It is in the list, but Infopath still says &lt;b&gt;Max(@ID) +1 &lt;/b&gt;results in 191.&lt;br /&gt;&lt;br /&gt;Any ideas why the data connection is failing?&lt;br /&gt;&lt;br /&gt;Oh, I have created a different form, just for the purpose of testing the data connection, and the new form also picks up 190 as the highest ID in the list.&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>