Message Oracle ORA-36765 - (XSAGGCNTMOVE03) A string aggregation variable cannot have a string AGGCOUNT.

ERROR(XSAGGCNTMOVE03) A string aggregation variable cannot have a string AGGCOUNT.
CAUSEThe specified AGGCOUNT variable did not have the same permanence as the aggregation variable.
ACTIONSelect an AGGCOUNT variable with the same TEMPORARY or PERMANENT attribute as the aggregation variable.