# Geo\_point type error in visualization

**URL:** <https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273>\
**Category:** Kibana\
**Created:** [May 19, 2020, 8:13am UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273 "2020-05-19T08:13:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramalakshmi](https://avatars.discourse-cdn.com/v4/letter/r/f9ae1b/32.png) [@Ramalakshmi](https://discuss.elastic.co/u/Ramalakshmi)\
**Post date:** [May 19, 2020, 8:13am UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273/1 "2020-05-19T08:13:45Z")

</div>

Hi,  
I am getting error for geo\_point type in kibana visualization because after every roll over of the index the destination.geo.location field changed to text type.(example roll over index name is my\_index -000005)  
PUT my\_index-000005/\_mapping  
{  
"properties" : {  
"destination" : {  
"properties" : {  
"geo" : {  
"properties" : {  
"location" : {  
"type" : "geo\_point"  
}  
}  
}  
}  
}  
}  
}  
I want to change the type text to geo\_point type in kibana devtool but showing below error.Please help me to how resolve the issue.  
{  
"error": {  
"root\_cause": [  
{  
"type": "illegal\_argument\_exception",  
"reason": "mapper [destination.geo.location] of different type, current\_type [text], merged\_type [geo\_point]"  
}  
],  
"type": "illegal\_argument\_exception",  
"reason": "mapper [destination.geo.location] of different type, current\_type [text], merged\_type [geo\_point]"  
},  
"status": 400  
}

Thank you.

---

<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:** [May 19, 2020, 8:36am UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273/2 "2020-05-19T08:36:11Z")

</div>

You need to look in the `_template` endpoint and find the applicable template mapping to change it.

---

<div class="post-metadata">

**Author:** ![Sreekanth3](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sreekanth3](https://discuss.elastic.co/u/Sreekanth3)\
**Post date:** [May 19, 2020, 1:14pm UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273/3 "2020-05-19T13:14:12Z")

</div>

Hey @warkolm,  
she's asking about the problem after the rollover of the index happened, that's where she got the problem of setting field value true .  
As far i knew the elastic, we don't set the field values for geo\_point . But this is a wierd behaviour of elastic asking to set the field value for geo\_point.

---

<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:** [May 19, 2020, 9:59pm UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273/4 "2020-05-19T21:59:33Z")

</div>

You can't change the mapping once it's been created. Hence you need to make sure you have a mapping template that will apply those changes automatically.

---

<div class="post-metadata">

**Author:** ![Sreekanth3](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sreekanth3](https://discuss.elastic.co/u/Sreekanth3)\
**Post date:** [May 20, 2020, 1:29pm UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273/5 "2020-05-20T13:29:25Z")

</div>

You meant to say before creating the index pattern , I should define the template with the requried fields ?

---

<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:** [May 20, 2020, 8:59pm UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273/6 "2020-05-20T20:59:53Z")

</div>

Yes.

---

<div class="post-metadata">

**Author:** ![Sreekanth3](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Sreekanth3](https://discuss.elastic.co/u/Sreekanth3)\
**Post date:** [May 22, 2020, 7:43pm UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273/7 "2020-05-22T19:43:35Z")

</div>

Thank you @warkolm

---

<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:** [June 19, 2020, 7:43pm UTC](https://discuss.elastic.co/t/geo-point-type-error-in-visualization/233273/8 "2020-06-19T19:43:43Z")

</div>

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