<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: preceding-sibling returns common error (field not valid)</title><link>https://www.infopathdev.com:443/forums/thread/105962.aspx</link><pubDate>Thu, 24 Mar 2016 14:35:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105962</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=105962</wfw:commentRss><description>Can I either see your form or see a screenshot of the schema? I&amp;#39;d think if the calc&amp;#39;d value is in a repeating table or section bound to my:SubTaskDeliverables the formula count(preceding-sibling::my:SubTaskDeliverables) + 1 would be correct.</description></item><item><title>Re: preceding-sibling returns common error (field not valid)</title><link>https://www.infopathdev.com:443/forums/thread/105954.aspx</link><pubDate>Thu, 24 Mar 2016 05:32:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105954</guid><dc:creator>d.bryant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105954.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=105954</wfw:commentRss><description>It&amp;#39;s in a calculated value.  I tried the former, and still got the same error unfortunately.  I have tried count(../preceding-sibling::*[1]/my:SubTaskDeliverables)+1  and that worked, however, it doesn&amp;#39;t actually count the sections lol.   so when you go to insert the repeating section, the calculated value returns 1 indefinitely.   Thanks for your comment!  I really appreciate it.</description></item><item><title>Re: preceding-sibling returns common error (field not valid)</title><link>https://www.infopathdev.com:443/forums/thread/105952.aspx</link><pubDate>Thu, 24 Mar 2016 00:02:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105952</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105952.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=105952</wfw:commentRss><description>&lt;p&gt;Is the formula in a calculated value? or is it a default value in a field? I think your XPath here needs to either be count(../preceding-sibling::my:SubTaskDeliverables) + 1 or count(preceding-sibling::my:SubTaskDeliverables) but I&amp;#39;d need to see your form to be sure.&lt;/p&gt;</description></item><item><title>preceding-sibling returns common error (field not valid)</title><link>https://www.infopathdev.com:443/forums/thread/105932.aspx</link><pubDate>Wed, 23 Mar 2016 12:35:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105932</guid><dc:creator>d.bryant</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105932.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=105932</wfw:commentRss><description>hey guys,
I&amp;#39;ve scoured the net a bunch of times regarding the sensitivity of the preceding-sibling  w/ InfoPath.  I am including screenshots for reference, however, essentially I have the same problem everyone else has proclaimed.  A repeating section needs to autonumber each time it is inserted.  The formula I was using is as follows:   count(../preceding-sibling::my:PDL/my:HQFR/my:HQ-SubTask/my:SubTaskDeliverables) +1   in a calculated field.   when I try to use this formula, I get an error that the field cannot be located.  however, if i do this formula:  count(preceding-sibling::*)+1 it works fine except that it starts at the number 5 instead of 1.   please note the images.... also note, the fields within the &amp;#39;SubTaskDeliverables&amp;#39; are reference fields if that makes any difference.   any help would be greatly appreciated; i am tearing my hair out.  also note, that i&amp;#39;ve copied the xpath and still get the same error.  even more curious, i have a similar calculated field with the same formula [for the HQFR section) which works perfectly.

&lt;img src="http://i.imgur.com/Q0fyfqE.png" alt="" /&gt;</description></item></channel></rss>