Oracle Message QSM-01017 - aggregate argument cannot be converted to canonical form

ERRORaggregate argument cannot be converted to canonical form
CAUSEArgument of each aggregrate in the query needs to be convertible into a canonical form for query rewrite.
ACTIONNone