The maximum stack usage allowed for a task was reached as a result of nested calls of database procedures, triggers or subqueries, or a very complicated value specification. Further nesting is not possible. The execution of the command was canceled.
Further limit the nesting depth of the calls with suitable queries in the database procedures and triggers.
Try to limit the nesting depth by dividing the SQL statement into several substatements.