# Issue with migration

**URL:** https://discuss.elastic.co/t/issue-with-migration/200839
**Category:** Elasticsearch
**Created:** [September 24, 2019, 10:40am UTC](https://discuss.elastic.co/t/issue-with-migration/200839 "2019-09-24T10:40:00Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Prashanth\_Prabhu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prashanth_prabhu/32/54787_2.png) [@Prashanth\_Prabhu](https://discuss.elastic.co/u/Prashanth_Prabhu)
#### Post date: [September 24, 2019, 10:40am UTC](https://discuss.elastic.co/t/issue-with-migration/200839/1 "2019-09-24T10:40:00Z")

</div>

I am getting a similar error to what is mentioned in the below link

> [@Strange behavior on inserting/reindexing float and int](https://discuss.elastic.co/t/strange-behavior-on-inserting-reindexing-float-and-int/160941):
>
> Hi, I'm observing a strange behavior regarding mapping. I use dynamic mapping. I insert both int and floats. First observation : Why does Elasticsearch allow those insertions ? Shouldn't it forbid it if the dynamic mapping is "long" and I try to insert a float ? After those insertions, I want to do a reindex. And it fails ONCE with "mapper [my\_field] cannot be changed from type [long] to [float]" or "mapper [my\_field] cannot be changed from type [float] to [long]". It does succeed on the seco…

Is there any workaround for this issue.

---

<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: [October 22, 2019, 10:40am UTC](https://discuss.elastic.co/t/issue-with-migration/200839/2 "2019-10-22T10:40:11Z")

</div>

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