# Nondeterministic error for scripted fields

**URL:** <https://discuss.elastic.co/t/nondeterministic-error-for-scripted-fields/159006>\
**Category:** Elasticsearch\
**Created:** [December 1, 2018, 4:19pm UTC](https://discuss.elastic.co/t/nondeterministic-error-for-scripted-fields/159006 "2018-12-01T16:19:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![toughrogrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toughrogrammer/32/38160_2.png) [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)\
**Post date:** [December 1, 2018, 4:19pm UTC](https://discuss.elastic.co/t/nondeterministic-error-for-scripted-fields/159006/1 "2018-12-01T16:19:19Z")

</div>

Please watch my video: [https://www.useloom.com/share/78ab63ad1bc94250beab6a490d24fffc](https://www.useloom.com/share/78ab63ad1bc94250beab6a490d24fffc)  
As you can see in video, I query scripted value.  
Sometimes there is exception, and sometimes there isn't.  
Why there is this weird situation?

---

<div class="post-metadata">

**Author:** ![toughrogrammer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toughrogrammer/32/38160_2.png) [@toughrogrammer](https://discuss.elastic.co/u/toughrogrammer)\
**Post date:** [December 1, 2018, 4:50pm UTC](https://discuss.elastic.co/t/nondeterministic-error-for-scripted-fields/159006/2 "2018-12-01T16:50:22Z")

</div>

I found reason. There was runtime error because invalid field value.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 29, 2018, 5:04pm UTC](https://discuss.elastic.co/t/nondeterministic-error-for-scripted-fields/159006/3 "2018-12-29T17:04:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
