Max calling depth of 20 was exceeded

We have some Nav templates which go up the tree and look either for a populated field or slot in nav items or their landing pages, then stopping and displaying them when found.

Great until the error message “Max calling depth of 20 was exceeded” happens.

Is it possible to override this value of 20? If we went to 30 that would probably suffice. I’ve tried a couple of things, like calling the template afresh and passing the current node but then it detects a possible assembly loop.

I’ve temporarily made the recursive lookup stop at a certain number and then jump back to the root and stop.

Andrew, did you find an answer to this?

I have to ask… you have a navon that is more than 20 levels deep? what is your folder structure like?

I never replied to this…

Essentially because we’re looping both into the navon and the landing page it doubles up the lookups happening on each node. In any case I believe this is resolved with updated 7.2 macros…