The error means you're calling a procedure, view or function from your procedure, and then from that proc calling another, etc
32 levels deep. Or it could be recursive with the proc calling itself.
Either way, you're going to have to track down where that is coming from and change the code of your function so that the nesting level isn't anywhere close to that deep. There's no way to change the maximum nesting level.
For more information Read
This[
^]
hope it helps :)