Oracle Solution for Error ora-36174

Solution for Oracle Error ORA-36174

ORA-36174: (XSMXAGGR23) workspace object

must be either a VARIABLE, a RELATION or a FORMULA.

What triggered the Error:

The user specified something that was not a variable, a relation or a formula as a weight for AGGREGATE

What should we do to fix it:

Specify a valid variable, relation or formula instead