# Error: Request to Elasticsearch failed

**URL:** <https://discuss.elastic.co/t/error-request-to-elasticsearch-failed/54024>\
**Category:** Kibana\
**Created:** [June 27, 2016, 10:34am UTC](https://discuss.elastic.co/t/error-request-to-elasticsearch-failed/54024 "2016-06-27T10:34:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkspace](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dkspace](https://discuss.elastic.co/u/dkspace)\
**Post date:** [June 27, 2016, 10:34am UTC](https://discuss.elastic.co/t/error-request-to-elasticsearch-failed/54024/1 "2016-06-27T10:34:36Z")

</div>

Dear colleagues.  
could you help me to know the reason for below error  
maybe you experienced it.

Error: Request to Elasticsearch failed: {"error":{"root\_cause":[{"type":"illegal\_state\_exception","reason":"Field data loading is forbidden on [AckType]"}],"type":"search\_phase\_execution\_exception","reason":"all shards failed","phase":"query","grouped":true,"failed\_shards":[{"shard":0,"index":"logstash-2016.06.24","node":"Nq6k7rQURf6jf-fmWi4\_\_A","reason":{"type":"illegal\_state\_exception","reason":"Field data loading is forbidden on [AckType]"}}]}}  
at [http://192.168.95.13:5601/bundles/kibana.bundle.js?v=9892:89408:39](http://192.168.95.13:5601/bundles/kibana.bundle.js?v=9892:89408:39)  
at Function.Promise.try ([http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:63866:23](http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:63866:23))  
at [http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:63835:31](http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:63835:31)  
at Array.map (native)  
at Function.Promise.map ([http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:63834:31](http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:63834:31))  
at callResponseHandlers ([http://192.168.95.13:5601/bundles/kibana.bundle.js?v=9892:89380:23](http://192.168.95.13:5601/bundles/kibana.bundle.js?v=9892:89380:23))  
at [http://192.168.95.13:5601/bundles/kibana.bundle.js?v=9892:88885:17](http://192.168.95.13:5601/bundles/kibana.bundle.js?v=9892:88885:17)  
at processQueue ([http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:41839:29](http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:41839:29))  
at [http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:41855:28](http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:41855:28)  
at Scope.$eval ([http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:43083:29](http://192.168.95.13:5601/bundles/commons.bundle.js?v=9892:43083:29))

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [June 27, 2016, 7:05pm UTC](https://discuss.elastic.co/t/error-request-to-elasticsearch-failed/54024/2 "2016-06-27T19:05:38Z")

</div>

Make sure you are not created a visualization on an analyzed field. You should be able to resolve this by using the `.raw` version of the field in the aggregation.

This elasticsearch issue can provide more insights to what I believe you are experiencing:

> <https://github.com/elastic/elasticsearch/issues/15267>

---

<div class="post-metadata">

**Author:** ![dkspace](https://avatars.discourse-cdn.com/v4/letter/d/bc79bd/32.png) [@dkspace](https://discuss.elastic.co/u/dkspace)\
**Post date:** [June 28, 2016, 12:46pm UTC](https://discuss.elastic.co/t/error-request-to-elasticsearch-failed/54024/3 "2016-06-28T12:46:12Z")

</div>

Thank you for the reference!  
yes for the visualization i do not use an analyzed fields. raw data only.  
But i see this warning from the Discover window if i expand each not raw but analyzed field .  
do you mean this behavior is normal ?

---

<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:** [July 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/error-request-to-elasticsearch-failed/54024/4 "2017-07-06T13:48:56Z")

</div>


