Message Oracle ORA-36166 - (XSMXAGGR08) workspace object is not a VARIABLE.

ERROR(XSMXAGGR08) workspace object is not a VARIABLE.
CAUSEAn attempt was made to perform an AGGREGATE or other action on an object which is not a variable.
ACTIONSpecify a variable instead.