# Mapper\_parsing\_exception out of range long

**URL:** <https://discuss.elastic.co/t/mapper-parsing-exception-out-of-range-long/60117>\
**Category:** Elasticsearch\
**Created:** [September 8, 2016, 9:16pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-out-of-range-long/60117 "2016-09-08T21:16:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay224](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@jay224](https://discuss.elastic.co/u/jay224)\
**Post date:** [September 8, 2016, 9:16pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-out-of-range-long/60117/1 "2016-09-08T21:16:46Z")

</div>

Error: TransportError(400, u'mapper\_parsing\_exception', u'json\_parse\_exception: Numeric value (25826625147376967617854956785651883234) out of range of long (-9223372036854775808 - 9223372036854775807)\n at [Source:

I am getting this error when I am trying to store JSON to ES. The logic is written for fetching documents from other datasource and parsing document into JSON and storing into ES. Since I don't know what field will return number in advance I can't force mapping at field level. Is there a way to disble number detection at root level in elasticsearch?

The value throwing error is:  
"serial": 25826625147376967617854956785651883234

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [September 9, 2016, 10:55am UTC](https://discuss.elastic.co/t/mapper-parsing-exception-out-of-range-long/60117/2 "2016-09-09T10:55:00Z")

</div>

Hey,

you can configure to disable coercion on index level, see [https://www.elastic.co/guide/en/elasticsearch/reference/2.4/coerce.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/coerce.html)

Also you could set up [dynamic mapping](https://www.elastic.co/guide/en/elasticsearch/guide/2.x/dynamic-mapping.html) so that every field becomes a string field.

--Alex

---

<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, 10:21pm UTC](https://discuss.elastic.co/t/mapper-parsing-exception-out-of-range-long/60117/3 "2017-07-05T22:21:39Z")

</div>


