Message Oracle ORA-36160 - (XSMXAGGR04) You cannot use string on scalar VARIABLE workspace object.

ERROR(XSMXAGGR04) You cannot use string on scalar VARIABLE workspace object.
CAUSEThe user tried to run the AGGREGATE or AGGCOUNT command or function on a scalar variable.
ACTIONSpecify a dimensioned variable instead