Oracle Solution for Error ora-36166

Solution for Oracle Error ORA-36166

ORA-36166: (XSMXAGGR08) workspace object

is not a VARIABLE.

What triggered the Error:

An attempt was made to perform an AGGREGATE or other action on an object which is not a variable.

What should we do to fix it:

Specify a variable instead.