# For the same data with data format integer and long works in 5.6 ES but not in 7.6 ES

**URL:** <https://discuss.elastic.co/t/for-the-same-data-with-data-format-integer-and-long-works-in-5-6-es-but-not-in-7-6-es/223406>\
**Category:** Elasticsearch\
**Created:** [March 12, 2020, 7:52pm UTC](https://discuss.elastic.co/t/for-the-same-data-with-data-format-integer-and-long-works-in-5-6-es-but-not-in-7-6-es/223406 "2020-03-12T19:52:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharath\_Italapur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bharath_italapur/32/51588_2.png) [@Bharath\_Italapur](https://discuss.elastic.co/u/Bharath_Italapur)\
**Post date:** [March 12, 2020, 7:52pm UTC](https://discuss.elastic.co/t/for-the-same-data-with-data-format-integer-and-long-works-in-5-6-es-but-not-in-7-6-es/223406/1 "2020-03-12T19:52:18Z")

</div>

Hi,

Thank you in advance,

I am reindexing data from 5.6 ES to 7.6 ES cluster. Before reindexing, we have created an index same name and mapping as in 5.6 es cluster. But When we started reindexing, the data values are too big for integer and long. Although, the same data in 5.6 is not throwing any error.

Note: We are using spark to ingest data into 5.6 ES cluster.

---

<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:** [March 13, 2020, 4:35pm UTC](https://discuss.elastic.co/t/for-the-same-data-with-data-format-integer-and-long-works-in-5-6-es-but-not-in-7-6-es/223406/2 "2020-03-13T16:35:53Z")

</div>

Is it possible, that you configured in the mapping, that in case of an error, the document should be indexed anyway?

See the [ignore\_malformed](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/ignore-malformed.html) mapping parameter.

---

<div class="post-metadata">

**Author:** ![Bharath\_Italapur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bharath_italapur/32/51588_2.png) [@Bharath\_Italapur](https://discuss.elastic.co/u/Bharath_Italapur)\
**Post date:** [March 17, 2020, 7:31pm UTC](https://discuss.elastic.co/t/for-the-same-data-with-data-format-integer-and-long-works-in-5-6-es-but-not-in-7-6-es/223406/3 "2020-03-17T19:31:05Z")

</div>

Hi @spinscale

Thank you for the reply.

No i there is no [ignore\_malformed](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/ignore-malformed.html) field in the mapping.

![image](https://us1.discourse-cdn.com/elastic/original/3X/6/8/6885e302325af74ff1f24483bcd826638f38f04f.png)

---

<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:** [March 18, 2020, 1:43pm UTC](https://discuss.elastic.co/t/for-the-same-data-with-data-format-integer-and-long-works-in-5-6-es-but-not-in-7-6-es/223406/4 "2020-03-18T13:43:28Z")

</div>

can you share exceptions and sample documetns to reproduce the issue?

Thanks!

---

<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:** [April 15, 2020, 1:43pm UTC](https://discuss.elastic.co/t/for-the-same-data-with-data-format-integer-and-long-works-in-5-6-es-but-not-in-7-6-es/223406/5 "2020-04-15T13:43:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
