Message Oracle ORA-36266 - (XSCGMDLAGG00) Invalid context for the AGGREGATION function

ERROR(XSCGMDLAGG00) Invalid context for the AGGREGATION function
CAUSEThe AGGREGATION function was used outside of the MODEL context.
ACTIONUse AGGREGATION only in a model.