<?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: Default values and calculation limit error</title><link>https://www.infopathdev.com:443/forums/thread/93814.aspx</link><pubDate>Tue, 22 Oct 2013 14:09:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93814</guid><dc:creator>Shrout1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93814.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=93814</wfw:commentRss><description>&lt;p&gt;The attached XML file can be used by going to &amp;quot;File&amp;gt;Form Options&amp;gt;Preview&amp;quot; and browsing to it. This file is very minimal and contains only the information needed to invoke the error.&lt;/p&gt;</description></item><item><title>Default values and calculation limit error</title><link>https://www.infopathdev.com:443/forums/thread/93813.aspx</link><pubDate>Tue, 22 Oct 2013 14:08:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:93813</guid><dc:creator>Shrout1</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/93813.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=93813</wfw:commentRss><description>&lt;p&gt;I have a form template that throws a &amp;quot;number of calculations for a single action exceeded the maximum limit&amp;quot; error while opening. The&amp;nbsp;error must be invoked&amp;nbsp;using a particular set of sample data which will be attached. I narrowed the problem down to the following node/field through trial and error and also by removing nodes from the underlying XML until the error ceased:&lt;/p&gt;
&lt;p&gt;/my:myFields/my:MasterSection/my:SPIF_Hider/my:SPIF_Info_Repeater_Group/my:SPIF_Info_Repeater/my:SPIF_Data/my:SPIF_Chargeable_Object_Number&lt;/p&gt;
&lt;p&gt;The default value for this field is as follows:&lt;/p&gt;
&lt;p&gt;//my:SPIF_Info_Repeater[1 = count(following-sibling::my:SPIF_Info_Repeater)]//my:SPIF_Chargeable_Object_Number[text()] | //my:Chargeable_Object_Number[text() and not(//my:SPIF_Info_Repeater[1 = count(following-sibling::my:SPIF_Info_Repeater)]//my:SPIF_Chargeable_Object_Number[text()])]&lt;/p&gt;
&lt;p&gt;The intended behavior is as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;If the preceding &amp;quot;SPIF_Chargeable_Object_Number&amp;quot; is blank, defer to the &amp;quot;Chargeable_Object_Number&amp;quot; in the non-repeating section of the form&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If the preceding &amp;quot;SPIF_Chargeable_Object_Number&amp;quot; is not blank, use it in the field as the default value&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;I believe that something is wrong with my XPath statment, but I don&amp;#39;t quite know enough to correct it. I have attached the form template to this post, I will attach the sample data for preview with the form in the next post.&lt;/p&gt;</description></item></channel></rss>