# Failed to Parse - Geo\_point

**URL:** <https://discuss.elastic.co/t/failed-to-parse-geo-point/75347>\
**Category:** Elasticsearch\
**Created:** [February 16, 2017, 2:42pm UTC](https://discuss.elastic.co/t/failed-to-parse-geo-point/75347 "2017-02-16T14:42:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikas\_Reddy\_Aravabhu](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@Vikas\_Reddy\_Aravabhu](https://discuss.elastic.co/u/Vikas_Reddy_Aravabhu)\
**Post date:** [February 16, 2017, 2:42pm UTC](https://discuss.elastic.co/t/failed-to-parse-geo-point/75347/1 "2017-02-16T14:42:09Z")

</div>

"error"=\>{"type"=\>"mapper\_parsing\_exception", "reason"=\>"failed to parse", "caused\_by"=\>{"type"=\>"illegal\_state\_exception", "reason"=\>" **Mixing up field types: class org.elasticsearch.index.mapper.core.StringFieldMapper$StringFieldType != class org.elasticsearch.index.mapper.geo.BaseGeoPointFieldMapper$GeoPointFieldType on field Coordinates**"}}}}}

Mapping of geo\_point is not working. If we remove the mapping, then it is loading into the elastic search with geo\_point but without geo\_point type.

Even in the documentation also it is written that it will accept the strings.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/geo-point.html)

Logstash config file(only coordinates snippet):  
----------Input snippet----------  
mutate {  
add\_field =\> [Coordinates, "%{Latitude},%{Longitude}"]  
}

----------Output snippet----------  
elasticsearch {  
document\_type =\> "feature"  
hosts =\> ["XXX"]  
index =\> "abc"  
manage\_template =\> false  
}

-----------Mapping--------------

curl -XPUT [http://XXX:9200/abc](http://XXX:9200/abc) -d'  
{

"mappings": {  
"sensorlogs" : {  
"properties" : {  
"Coordinates" : { "type":"geo\_point"}

```
  }
}

```

}

}'

**Elasticsearch version:** /opt/mapr/elasticsearch/elasticsearch-2.3.3  
**Logstash Version:** logstash-5.1.2.rpm

Same Code is working fine with the below versions  
\*\*Elasticsearch version:\*\*elasticsearch-5.1.2.rpm  
**Logstash Version:** logstash-5.1.2.rpm

---

<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:** [March 16, 2017, 2:42pm UTC](https://discuss.elastic.co/t/failed-to-parse-geo-point/75347/2 "2017-03-16T14:42:12Z")

</div>

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