# Courier Fetch: x of y shards failed, field type double mapping

**URL:** <https://discuss.elastic.co/t/courier-fetch-x-of-y-shards-failed-field-type-double-mapping/31342>\
**Category:** Elasticsearch\
**Created:** [September 29, 2015, 2:29pm UTC](https://discuss.elastic.co/t/courier-fetch-x-of-y-shards-failed-field-type-double-mapping/31342 "2015-09-29T14:29:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![inlikefletch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inlikefletch/32/4834_2.png) [@inlikefletch](https://discuss.elastic.co/u/inlikefletch)\
**Post date:** [September 29, 2015, 2:29pm UTC](https://discuss.elastic.co/t/courier-fetch-x-of-y-shards-failed-field-type-double-mapping/31342/1 "2015-09-29T14:29:33Z")

</div>

I am getting Courier Fetch shard failed errors when trying to build a visualization. I have narrowed it down to one field I am trying to map as number to obtain an average. I even try clearing data mapping, and I still get the error. The process I follow is:

1. stop logstash clients
2. delete mapping:  
**Invoke-RestMethod [http://localhost:9200/logstash-\*/\_mapping/IISLog](http://localhost:9200/logstash-*/_mapping/IISLog) -Method Delete**
3. reset mapping  
**Invoke-RestMethod [http://localhost:9200/logstash-\*/\_mapping/IISLog](http://localhost:9200/logstash-*/_mapping/IISLog) -Method Put -Body '{"properties":{"timetaken":{"type":"double"},"uristem":{"type":"string","index":"not\_analyzed"}}}'**
4. delete index
5. recreate index

I still get the error when trying to build the visualization. What I have noticed though, if I clear today's logstash data, the courier fetch error stops, but then of course I have no data to visualize. I can validate that the timetaken field is of type number.

Thanks,  
Jason

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 30, 2015, 10:46am UTC](https://discuss.elastic.co/t/courier-fetch-x-of-y-shards-failed-field-type-double-mapping/31342/2 "2015-09-30T10:46:33Z")

</div>

What's the error that is being reported in ES look like?

---

<div class="post-metadata">

**Author:** ![inlikefletch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inlikefletch/32/4834_2.png) [@inlikefletch](https://discuss.elastic.co/u/inlikefletch)\
**Post date:** [September 30, 2015, 1:49pm UTC](https://discuss.elastic.co/t/courier-fetch-x-of-y-shards-failed-field-type-double-mapping/31342/3 "2015-09-30T13:49:56Z")

</div>

The error says what I listed in the title of this discussion, courer fetch: 5 of 250 shards failed.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 30, 2015, 1:51pm UTC](https://discuss.elastic.co/t/courier-fetch-x-of-y-shards-failed-field-type-double-mapping/31342/4 "2015-09-30T13:51:06Z")

</div>

I mean the complete error in the Elasticsearch log.

---

<div class="post-metadata">

**Author:** ![constantino](https://avatars.discourse-cdn.com/v4/letter/c/53a042/32.png) [@constantino](https://discuss.elastic.co/u/constantino)\
**Post date:** [January 7, 2016, 12:16am UTC](https://discuss.elastic.co/t/courier-fetch-x-of-y-shards-failed-field-type-double-mapping/31342/5 "2016-01-07T00:16:51Z")

</div>

i get this

![](https://us1.discourse-cdn.com/elastic/original/2X/f/f30acdc6108d7a4655952c8648e12d96f5a7e584.png)

aand in the logs Elasticsearch this:

Error Mapping

---

<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 5, 2017, 11:26pm UTC](https://discuss.elastic.co/t/courier-fetch-x-of-y-shards-failed-field-type-double-mapping/31342/6 "2017-07-05T23:26:37Z")

</div>


