# Unable to change the datatype of an existing field

**URL:** https://discuss.elastic.co/t/unable-to-change-the-datatype-of-an-existing-field/193598
**Category:** Kibana
**Created:** [August 2, 2019, 5:07pm UTC](https://discuss.elastic.co/t/unable-to-change-the-datatype-of-an-existing-field/193598 "2019-08-02T17:07:34Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Karthik2411](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Karthik2411](https://discuss.elastic.co/u/Karthik2411)
#### Post date: [August 2, 2019, 5:07pm UTC](https://discuss.elastic.co/t/unable-to-change-the-datatype-of-an-existing-field/193598/1 "2019-08-02T17:07:34Z")

</div>

![31%20AM](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79294d25ba990ff8f8d8d9e8a0c4903f680cff3e.png)

Please take a look at this one .

---

<div class="post-metadata">

### Author: ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)
#### Post date: [August 2, 2019, 6:31pm UTC](https://discuss.elastic.co/t/unable-to-change-the-datatype-of-an-existing-field/193598/2 "2019-08-02T18:31:46Z")

</div>

Hi @Karthik2411,

This is because you can't change the mapping of an existing index without reindexing your data. You might find the details in this thread helpful: [How to change the field type of data loaded in Kibana](https://discuss.elastic.co/t/how-to-change-the-field-type-of-data-loaded-in-kibana/136909)

To quote from the answer in that discussion,

> You cannot `PUT` a mapping for an existing index. You have 2 options: create a new index with the correct mappings and move the documents over with a reindex, or delete the index and recreate it with the correct mappings and then index the documents again.

Hope this helps!

---

<div class="post-metadata">

### Author: ![Karthik2411](https://avatars.discourse-cdn.com/v4/letter/k/ed8c4c/32.png) [@Karthik2411](https://discuss.elastic.co/u/Karthik2411)
#### Post date: [August 2, 2019, 11:08pm UTC](https://discuss.elastic.co/t/unable-to-change-the-datatype-of-an-existing-field/193598/3 "2019-08-02T23:08:05Z")

</div>

That's helpful @lukeelmers. Thank you.

---

<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: [August 30, 2019, 11:08pm UTC](https://discuss.elastic.co/t/unable-to-change-the-datatype-of-an-existing-field/193598/4 "2019-08-30T23:08:11Z")

</div>

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