Infinite Recursion

The Content Manager and the Template Engine monitor the recursive use of layouts. In this context, "recursion" means that a layout includes itself:

<!-- Layout file "myTemplate" -->
<npsobj insertvalue="template" name="myTemplate" />
<!-- ... -->

In such a construction, if no exit condition exists for this process or the exit condition is never satisfied, the recursion is infinite, meaning that the process of exporting the file concerned never ends. To ensure that this case never occurs, the Content Manager and the Template Engine terminate a recursion during the export and the preview if the number of inclusions exceeds the value specified in the maxRecursionLevel system configuration entry. Then, an error message is output.

In the case of an infinite recursion, check for example whether the main content of a file calls a layout that in turn inserts the main content of the file into the output file.