Elasticsearch machine learning datafeed configuration error

Thanks for your reply.
Here's the answer to your questions.

  1. What version of the stack do you have?
    -> I'm using v 7.17.3
  2. Which of the anomaly detection job wizatd I am using?
    -> I used advanced job as well. Also I was able to see values for my runtime field.

So I don't think there's anything wrong with my runtime field script, but still the error occurs on job validation process.
I'm using 'rare' as my anomaly detection job detector. Can this be the reason for this error?