Oracle Solution for Error ora-36261

Solution for Oracle Error ORA-36261

ORA-36261: (XSAGPARTDEP00) Can not Aggregate PARTITION TEMPLATE %J because the path of aggregation would recursively enter partition %J.

What triggered the Error:

The partitioning scheme was such that while aggregating there exists a cell (m) such that both one of its descendants and one of its ancestors are both in the referenced partition, while (m) is in a different partition.

What should we do to fix it:

Change the partitioning scheme.