Default values, rules or code may be running in an Infinite loop - InfoPath Dev
in

InfoPath Dev

Default values, rules or code may be running in an Infinite loop

Last post 03-07-2012 04:48 AM by venkatzeus. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-06-2012 09:41 PM

    Default values, rules or code may be running in an Infinite loop

     Hi,

    I am using InfoPath 2010. In the browser enabled form, i have a repeating table and have some rules set.

    When the number of rows inserted is more than 13, i am getting the below error:

    "Default values, rules or code may be running in an Infinite loop. To prevent this, ensure that the default value, rule action or event handler does not update the data which causes the same rule action or event handler to execute".

    In the 14 root log, i am getting the below:
    03/07/2012 12:50:52.15     w3wp.exe (0x277C)
                              0x2C98    InfoPath Forms Services           Runtime - Business Logic          82lj    Critical    Calculations exceeded the maximum stack depth.
     

    Further analysis on the form:

    I have a column, which has the default value set like this: count(preceding-sibling::*) + 1

    This column is causing the issue. I removed the calculation on the column and the form loaded properly. However, this calculation is required.

    How to change this calculation?

     

    How to fix this error?

    Thank you


  • 03-07-2012 04:11 AM In reply to

    Re: Default values, rules or code may be running in an Infinite loop

    Can you use a rule instead of a default value? The rule can have a condition (such as "if the field is blank") and this condition can be tweaker such that the rule does not run infinitely, only executing once.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 03-07-2012 04:48 AM In reply to

    Re: Default values, rules or code may be running in an Infinite loop

     Hi,

    The column is used to find the right row index before setting a value from a lookup to the appropriate row.  I am not sure, how to tweak it to achieve the same functionality. Any help on this.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.