ORA-36380
(AGGRECURSE) AGGREGATE was called recursively, which is not allowed.
Cause
A model, NATRIGGER, or other object called the AGGREGATE function or command while another AGGREGATE function or command was already in progress.
Action
Modify your objects so that they do not need to have two AGGREGATE commands or functions executing at once.