# Kibana 7.2.0 - Scripted field creation problem

**URL:** <https://discuss.elastic.co/t/kibana-7-2-0-scripted-field-creation-problem/198748>\
**Category:** Kibana\
**Created:** [September 9, 2019, 4:49pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-scripted-field-creation-problem/198748 "2019-09-09T16:49:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akatla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akatla/32/24036_2.png) [@akatla](https://discuss.elastic.co/u/akatla)\
**Post date:** [September 9, 2019, 4:49pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-scripted-field-creation-problem/198748/1 "2019-09-09T16:49:39Z")

</div>

Trying to create a scripted field

logic -  
if doc['field1'].value == doc['field2'].value then true else false

logic has been written compliant with painless scripting language  
no errors  
preview script panel shows first 10 values ..

when I click on "Create Field", then it just keeps spinning and never completes.  
I see 1 entry in the kibana log - a POST request corresponding to this to save the scripted field.

Is this a known issue ?

Regards,  
Aneesh

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [September 10, 2019, 3:45pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-scripted-field-creation-problem/198748/2 "2019-09-10T15:45:24Z")

</div>

Hi @akatla,

> I see 1 entry in the kibana log - a POST request corresponding to this to save the scripted field.

Does it request return or hangs indefinitely?

What version of the stack you use and can you please enable verbose logging in Kibana (`logging.verbose: true`) and see if you can notice anything suspicious there?

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![akatla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/akatla/32/24036_2.png) [@akatla](https://discuss.elastic.co/u/akatla)\
**Post date:** [September 10, 2019, 4:02pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-scripted-field-creation-problem/198748/3 "2019-09-10T16:02:05Z")

</div>

Thanks foryour suggestions I figured out that. Kibana index was locked and so it wasn't letting any updates to indez patterns..

Thanks,  
Aneesh Katla

---

<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:** [October 8, 2019, 4:07pm UTC](https://discuss.elastic.co/t/kibana-7-2-0-scripted-field-creation-problem/198748/4 "2019-10-08T16:07:54Z")

</div>

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