# Index is created but getting exception frequently

**URL:** https://discuss.elastic.co/t/index-is-created-but-getting-exception-frequently/7292
**Category:** Elasticsearch
**Created:** [April 11, 2012, 12:14pm UTC](https://discuss.elastic.co/t/index-is-created-but-getting-exception-frequently/7292 "2012-04-11T12:14:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sumit\_Guptaa](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Sumit\_Guptaa](https://discuss.elastic.co/u/Sumit_Guptaa)
#### Post date: [April 11, 2012, 12:14pm UTC](https://discuss.elastic.co/t/index-is-created-but-getting-exception-frequently/7292/1 "2012-04-11T12:14:05Z")

</div>

Hi all,

when i am adding new query for making index some time i get error or some time i don't...and on the other hand index is also created....

{"error":"ElasticSearchParseException[Failed to derive xcontent from (offset=0,  
length=0): []]","status":500}

Regards,  
Sumit Gupta

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [April 11, 2012, 12:29pm UTC](https://discuss.elastic.co/t/index-is-created-but-getting-exception-frequently/7292/2 "2012-04-11T12:29:38Z")

</div>

the failure comes when there is no data sent as part of the request.

On Wed, Apr 11, 2012 at 3:14 PM, Sumit Guptaa [sumit.gupta.ngi@gmail.com](mailto:sumit.gupta.ngi@gmail.com)wrote:

> Hi all,
> 
> when i am adding new query for making index some time i get error or some  
> time i don't...and on the other hand index is also created....
> 
> {"error":"ElasticSearchParseException[Failed to derive xcontent from  
> (offset=0,  
> length=0): ]","status":500}
> 
> Regards,  
> Sumit Gupta
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Index-is-created-but-getting-exception-frequently-tp3902371p3902371.html](http://elasticsearch-users.115913.n3.nabble.com/Index-is-created-but-getting-exception-frequently-tp3902371p3902371.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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, 3:32am UTC](https://discuss.elastic.co/t/index-is-created-but-getting-exception-frequently/7292/3 "2017-07-06T03:32:56Z")

</div>


