Please enable JavaScript to view this site.

 

Navigation: Appendices > Messages > Run-Time Messages > Token Syntax

Too many levels of token recursion !

Scroll Prev Up Next More

This message occurs when nested token evaluation reaches the script’s Max. Recursion diary generation options limit, whose default is 50.

 

➢Recursion occurs when converting one token requires Q++Studio to evaluate another token before the original conversion can finish. Duration tokens and mini-calendar tokens can require such nested evaluation. A circular reference can keep adding nesting levels until the limit is reached.

 

This message differs from the message too many levels of iteration, which concerns the number of conversion steps rather than the depth of nested calls.

 

•The message about too many levels of iteration could be generated by a token which is replaced by 1001 simple tokens, such as [d] whose replacement is simple. It is a message about the number of tokens generated by the token causing the message.

•The present message could be issued by a token which is replaced by a single token, but a single token that is then replaced by another single token, itself replaced by yet another single token, for more than 50 times. This is a message about the complexity or the number of times a token needs to be processed to get its result.

 

You can use the maximum recursion setting to change the default value of 50, but it should almost never be necessary, as recursion of the token conversion function is much rarer than token conversion iteration, and this message is almost always the sign of an infinite loop in your script.

 


Topic 173360, last updated on 19-Nov-2026