<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>count(../preceding-sibling::my:[Node]) + 1 is throwing infinite loop error in browser</title><link>https://www.infopathdev.com:443/forums/thread/119879.aspx</link><pubDate>Sat, 22 Sep 2018 00:41:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119879</guid><dc:creator>Daniel_5584</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119879.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=119879</wfw:commentRss><description>&lt;p&gt;So this is a bit of a strange one and I cannot seem to figure it out; I should preface that I&amp;#39;m fairly new to InfoPath.&lt;/p&gt;&lt;p&gt;I have a form with a repeating table that is pulling data from a secondary source. In order to grab the appropriate data I have added a field called &amp;quot;counter&amp;quot; with the default value of: count(&lt;u&gt;../preceding-sibling::my:ProductInformation&lt;/u&gt;) + 1.&lt;/p&gt;&lt;p&gt;I want to have the values be static for the user. So I added 9 rows of the repeating table by default. I then use a rule to hide any values where counter is greater than the number of items in the secondary data source repeating table; which I have passed to the main data source in a field called &amp;quot;PTRowCount.&amp;quot; I then&amp;nbsp;default &amp;quot;PTRowCount&amp;quot; to 0 and&amp;nbsp;have a rule that changes this&amp;nbsp;value to that of the secondary data source table when&amp;nbsp;the data is&amp;nbsp;queried. This allows for all the rows to be hidden until a query occurs, and then only shows the rows with data in them.&amp;nbsp;&lt;/p&gt;&lt;p&gt;This works fine in the InfoPath form filler, but throws the infinite loop error when I try to open&amp;nbsp;the form in the browser.&lt;/p&gt;&lt;p&gt;I&amp;#39;ve noticed the following: &lt;/p&gt;&lt;ol&gt;&lt;li&gt;At six rows, the form will load without error. &lt;/li&gt;&lt;li&gt;More than six rows will trigger the infinite loop error&lt;/li&gt;&lt;li&gt;At nine rows the first row of the table will always show prior to querying the secondary data source&amp;nbsp;and be blank&lt;/li&gt;&lt;li&gt;At nine rows: If &amp;quot;PTRowCount&amp;quot; is defaulted to 10 then all rows will show, but the count for last row will be blank. (I bound a field in the repeating table to &amp;quot;counter.&amp;quot;)&lt;/li&gt;&lt;li&gt;If I remove the default value for counter, I no longer receive the error and everything works fine.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;That&amp;#39;s it. I cannot figure it out. I have another form that&amp;#39;s using the exact same syntax and pulls data in the same way from the same secondary data source and it always works in the browser. I have tried comparing the rules and actions for each form and they seem to match exactly. I cannot figure out why this form is behaving this way. Any help is greatly appreciated.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I have attached a copy of my form for reference.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Dan&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>