# Scripted field: Read field data from a document using doc\[‘some\_field’\].value return null in some cases

**URL:** <https://discuss.elastic.co/t/scripted-field-read-field-data-from-a-document-using-doc-some-field-value-return-null-in-some-cases/187385>\
**Category:** Kibana\
**Created:** [June 25, 2019, 4:30pm UTC](https://discuss.elastic.co/t/scripted-field-read-field-data-from-a-document-using-doc-some-field-value-return-null-in-some-cases/187385 "2019-06-25T16:30:17Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![dreamer1](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@dreamer1](https://discuss.elastic.co/u/dreamer1)\
**Post date:** [July 30, 2019, 9:00am UTC](https://discuss.elastic.co/t/scripted-field-read-field-data-from-a-document-using-doc-some-field-value-return-null-in-some-cases/187385/7 "2019-07-30T09:00:26Z")

</div>

Just to update, this problem seems to exist in the 7.2 version  
too.

> [@Scripted field not working properly in ELK 7.2](https://discuss.elastic.co/t/scripted-field-not-working-properly-in-elk-7-2/188599/4):
>
> Hi @mark.quilates, I have the same problem with ver. 6.3.0 They replied that it was a bug in 6.3.0 , but apparently it came back again in later versions(regression?). I'd like to know the "stable" version, and maybe before installing and configuring everything...

---

_[View the full topic](https://discuss.elastic.co/t/scripted-field-read-field-data-from-a-document-using-doc-some-field-value-return-null-in-some-cases/187385)._
