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

Oracle Error Message

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

Reason for the Error

User 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.

Solution

Define the variable using the WITH AGGCOUNT clause, or use the CHGDFN ADD AGGCOUNT command to enable AGGCOUNT for the variable.