You have specified an intrinsic function that returns a numeric value in a position where a numeric value is not allowed.
Make the intrinsic function nonnumeric.