Oracle Solution for Error ora-36276

Solution for Oracle Error ORA-36276

ORA-36276: (XSCGMDLAGG06) The current operator does not need a weight variable.

What triggered the Error:

A weight variable was specified in a context that does not support it.

What should we do to fix it:

Remove the weight variable.