Message Oracle ORA-41698 - invalid use of string attribute in aggregate predicate

ERRORinvalid use of string attribute in aggregate predicate
CAUSEAn attempt was made to use an attribute where a literal is expected in the aggregate predicate in the rule condition.
ACTIONCorrect the input and try again.