# Problem adding records to index.. which has field type geo\_point

**URL:** <https://discuss.elastic.co/t/problem-adding-records-to-index-which-has-field-type-geo-point/63804>\
**Category:** Elasticsearch\
**Created:** [October 24, 2016, 9:44pm UTC](https://discuss.elastic.co/t/problem-adding-records-to-index-which-has-field-type-geo-point/63804 "2016-10-24T21:44:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ravi\_Chittari](https://avatars.discourse-cdn.com/v4/letter/r/7ab992/32.png) [@Ravi\_Chittari](https://discuss.elastic.co/u/Ravi_Chittari)\
**Post date:** [October 24, 2016, 9:44pm UTC](https://discuss.elastic.co/t/problem-adding-records-to-index-which-has-field-type-geo-point/63804/1 "2016-10-24T21:44:37Z")

</div>

When I try to index an object using Jest client or elastic client, I get this error..

failed to execute [index {[storelocations][wines][PFV-1187GVRNC], source[{"id":"xx1111","active":"Yes","locationName":"y Vineyards","locationType":"Standard","url":"[www.xyz.com/","address1":"asdfds](http://www.xyz.com/%22,%22address1%22:%22asdfds) asdf Valley Road","address2":"","address3":"","address4":"","city":"Napa","zipPostalCode":"94558","country":"US","internationalAddress":"","contactPhone":"11111111","contactFax":"","facebookPageId":"","pin":{"point":{"lat":38.2975380999999970299541018903255462646484375,"lon":-122.286865000000005920810508541762828826904296875}}}]}] on [[storelocations][0]]  
java.lang.IllegalArgumentException: [pin.point] is defined as an object in mapping [wines] but this name is already used for a field in other types

I double, tripple checked that pin.point does not exist anywhere.. I also deleted indexes before executing this.. Please let me know what I am doing wrong..

I have the following mapping  
{  
"settings":{

```
	"number_of_shards":5,
	"number_of_replicas":1
},
"mappings": {
	"storelocations": {
		"properties":{
			"id":{"type":"string","index":"not_analyzed"},
			"active":{"type":"string","index":"not_analyzed"},
			"locationName":{"type":"string","index":"not_analyzed"},
			"locationType":{"type":"string","index":"not_analyzed"},
			"url":{"type":"string","index":"not_analyzed"},
			"address1":{"type":"string","index":"not_analyzed"},
			"address2":{"type":"string","index":"not_analyzed"},
			"address3":{"type":"string","index":"not_analyzed"},
			"address4":{"type":"string","index":"not_analyzed"},
			"city":{"type":"string","index":"not_analyzed"},
			"zipPostalCode":{"type":"string","index":"not_analyzed"},
			"country":{"type":"string","index":"not_analyzed"},
			"internationalAddress":{"type":"string","index":"not_analyzed"},
			"contactPhone":{"type":"string","index":"not_analyzed"},
			"contactFax":{"type":"string","index":"not_analyzed"},
			"facebookPageId":{"type":"string","index":"not_analyzed"},
			"pin" : {
				        "properties" : {
				            "point" : {
				                "type" : "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:** [October 26, 2016, 10:09am UTC](https://discuss.elastic.co/t/problem-adding-records-to-index-which-has-field-type-geo-point/63804/2 "2016-10-26T10:09:57Z")

</div>

Is that the entire mappings for `storelocations`?

---

<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:** [July 5, 2017, 10:09pm UTC](https://discuss.elastic.co/t/problem-adding-records-to-index-which-has-field-type-geo-point/63804/3 "2017-07-05T22:09:33Z")

</div>


