Message Oracle ORA-36165 - (XSAGGCNTPROP) Variable workspace object cannot have both an AGGCOUNT and the $COUNTVAR property.

ERROR(XSAGGCNTPROP) Variable workspace object cannot have both an AGGCOUNT and the $COUNTVAR property.
CAUSEAn attempt was made to add the $COUNTVAR property to a variable which already had an AGGCOUNT, or vice versa.
ACTIONDelete the already existing $COUNTVAR property or AGGCOUNT first.