Message Oracle ORA-41693 - invalid attribute or data type for an aggregate operator: string

ERRORinvalid attribute or data type for an aggregate operator: string
CAUSEAn attempt was made to apply an aggregate operator on an invalid attribute or an attribute with invalid or unsupported data type in the aggregate operator. Only NUMBER and DATE attributes are allowed in the aggregate operators.
ACTIONCorrect the input and try again.