# Bug in Kibana 5.4?

**URL:** <https://discuss.elastic.co/t/bug-in-kibana-5-4/197961>\
**Category:** Kibana\
**Created:** [September 4, 2019, 12:56am UTC](https://discuss.elastic.co/t/bug-in-kibana-5-4/197961 "2019-09-04T00:56:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jcaballero](https://avatars.discourse-cdn.com/v4/letter/j/278dde/32.png) [@jcaballero](https://discuss.elastic.co/u/jcaballero)\
**Post date:** [September 6, 2019, 8:35pm UTC](https://discuss.elastic.co/t/bug-in-kibana-5-4/197961/4 "2019-09-06T20:35:26Z")

</div>

Just tried it.  
If I define the scripted field like this:

```
if (!doc['duration'].empty) { 
    return doc['duration'].value/3600.0
}

```

when I zoom in, it fails completely. I get in Kibana a message like _Courier Fetch: 2 of 236 shards failed_.

Is it possible it is related to this [https://discuss.elastic.co/t/no-result-when-filter-by-scripted-field/197575](https://discuss.elastic.co/t/no-result-when-filter-by-scripted-field/197575), also by me 🙂 ?

---

_[View the full topic](https://discuss.elastic.co/t/bug-in-kibana-5-4/197961)._
