<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Check for duplicates in Repeating section</title><link>https://www.infopathdev.com:443/forums/thread/108455.aspx</link><pubDate>Fri, 04 Nov 2016 09:30:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108455</guid><dc:creator>venkatsriram</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108455.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=108455</wfw:commentRss><description>Great. Thanks it worked.</description></item><item><title>Re: Check for duplicates in Repeating section</title><link>https://www.infopathdev.com:443/forums/thread/108308.aspx</link><pubDate>Fri, 21 Oct 2016 22:59:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108308</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108308.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=108308</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;See if the attached sample helps - save it locally, right click and select design, then preview. The validation rule is on field 4.&lt;/p&gt;</description></item><item><title>Check for duplicates in Repeating section</title><link>https://www.infopathdev.com:443/forums/thread/108253.aspx</link><pubDate>Mon, 17 Oct 2016 10:40:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:108253</guid><dc:creator>venkatsriram</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/108253.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=108253</wfw:commentRss><description>All,

I am new to infopath and making tiny steps. The forum is pretty useful for developers like me.

We have trouble validating a control with-in Repeating section. The validation is from from the respective textbox.

Have tried with the following xpath formula but could not, it throws me an error. 

&lt;br /&gt;&lt;br /&gt;
&lt;b&gt;count(tblinvoice[InvoiceNo != &amp;quot;&amp;quot;]) &amp;gt; 1 and (. = preceding-sibling::tblinvoice[@InvoiceNo] or . = following-sibling::tblinvoice[@InvoiceNo])&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;&amp;quot;tblinvoice/InvoiceNo&amp;quot; does not point to a valid location path of a field or group.&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;But the following code is not giving any error at the sametime it is not validating the data as well.&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;

&lt;b&gt;count(tblInvoice[@InvoiceNo != &amp;quot;&amp;quot;]) &amp;gt; 1 and (. = descendant-or-self::node()/preceding-sibling::tblInvoice[@InvoiceNo] or . = descendant-or-self::node()/following-sibling::tblInvoice[@InvoiceNo])&lt;/b&gt;
&lt;br /&gt;&lt;br /&gt;

Request your guidance and help.
&lt;br /&gt;&lt;br /&gt;
Thanks &amp;amp; Regards,
Venkat</description></item></channel></rss>