Oracle Message DRG-10865 - invalid datatype in user scoring expression

ERRORinvalid datatype in user scoring expression
CAUSEThe scoring expression specified in DEFINESCORE or NORMALIZATION_EXPR in the query template either contains components with unsupported datatypes or does not return numerical values.
ACTIONRewrite the scoring expression.