Message Oracle ORA-36185 - (XSAGGR11) workspace object does not have any AGGCOUNT information.

ERROR(XSAGGR11) workspace object does not have any AGGCOUNT information.
CAUSEUser attempted an operation (such as the AVERAGE aggregation operator or the AGGCOUNT function) that requires a variable to have AGGCOUNT information on a variable that does not.
ACTIONDefine the variable using the WITH AGGCOUNT clause, or use the CHGDFN ADD AGGCOUNT command to enable AGGCOUNT for the variable.