SYMPTOM

If you encounter the following error message when compiling a process :

Error "Fatal error! Too many nested apply-templates calls."

SOLUTION  

... then try to increase the Java Stack Size in your stambia.ini file :

-Xss256k => -Xss512k

Explanation

Java has a limited stack, and when compiling complex processes, this limit can be reached and Java cannot continue. This parameter increases the stack size.