# Mapping data error

**URL:** <https://discuss.elastic.co/t/mapping-data-error/174755>\
**Category:** Kibana\
**Created:** [April 1, 2019, 10:11am UTC](https://discuss.elastic.co/t/mapping-data-error/174755 "2019-04-01T10:11:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Redondo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergio_redondo/32/40969_2.png) [@Sergio\_Redondo](https://discuss.elastic.co/u/Sergio_Redondo)\
**Post date:** [April 1, 2019, 10:11am UTC](https://discuss.elastic.co/t/mapping-data-error/174755/1 "2019-04-01T10:11:47Z")

</div>

Good morning, I am trying to index JSON-LD information to visualize it later. When I edit the mapping I get an error. Before doing it I tested with JSON information and it has left me without problem to edit the location field of float to geo\_point and then display the points on the map. I attach the code that I am indexing along with the appropriate explanations.

PUT prueba1  
POST prueba1/\_doc  
{  
"@context": {  
"hasGeometry": {  
"@id": "[http://www.opengis.net/ont/geosparql#hasGeometry](http://www.opengis.net/ont/geosparql#hasGeometry)",  
"@type": "@id"  
},  
"codigoINE": "[http://vocab.linkeddata.es/datosabiertos/def/sector-publico/territorio#codigoINE](http://vocab.linkeddata.es/datosabiertos/def/sector-publico/territorio#codigoINE)",  
"title": "[http://purl.org/dc/terms/title](http://purl.org/dc/terms/title)",  
"identifier": "[http://purl.org/dc/terms/identifier](http://purl.org/dc/terms/identifier)",  
"created": {  
"@id": "[http://purl.org/dc/terms/created](http://purl.org/dc/terms/created)",  
"@type": "[http://www.w3.org/2001/XMLSchema#date](http://www.w3.org/2001/XMLSchema#date)"  
},  
"asWKT": {  
"@id": "[http://www.opengis.net/ont/geosparql#asWKT](http://www.opengis.net/ont/geosparql#asWKT)",  
"@type": "[http://www.opengis.net/ont/geosparql#wktLiteral](http://www.opengis.net/ont/geosparql#wktLiteral)"  
},  
"geo": "[http://www.w3.org/2003/01/geo/wgs84\_pos#](http://www.w3.org/2003/01/geo/wgs84_pos#)",  
"geosparql": "[http://www.opengis.net/ont/geosparql#](http://www.opengis.net/ont/geosparql#)",  
"sf": "[http://www.opengis.net/ont/sf#](http://www.opengis.net/ont/sf#)",  
"rdf": "[http://www.w3.org/1999/02/22-rdf-syntax-ns#](http://www.w3.org/1999/02/22-rdf-syntax-ns#)",  
"owl": "[http://www.w3.org/2002/07/owl#](http://www.w3.org/2002/07/owl#)",  
"xsd": "[http://www.w3.org/2001/XMLSchema#](http://www.w3.org/2001/XMLSchema#)",  
"georec": "[https://datos.ign.es/recurso/btn100/comunidad-autonoma/](https://datos.ign.es/recurso/btn100/comunidad-autonoma/)",  
"esadm": "[http://vocab.linkeddata.es/datosabiertos/def/sector-publico/territorio#](http://vocab.linkeddata.es/datosabiertos/def/sector-publico/territorio#)",  
"rdfs": "[http://www.w3.org/2000/01/rdf-schema#](http://www.w3.org/2000/01/rdf-schema#)",  
"foaf": "[http://xmlns.com/foaf/0.1/](http://xmlns.com/foaf/0.1/)",  
"dc": "[http://purl.org/dc/terms/](http://purl.org/dc/terms/)"  
},  
"graph": {  
"@id": "georec:andalucia",  
"@type": "esadm:ComunidadAutonoma",  
"created": "2014-06-17",  
"identifier": "andalucia",  
"business\_latitude": "41.37872914",  
"business\_location": [  
-0.7639373,  
41.3787291  
],  
"business\_longitude": "-0.7639373",  
"cod\_ca": "ES-AN",  
"title": "Andalucía",  
"codigoINE": "01",  
"hasGeometry": "georec:andalucia/geometry",  
"@id\_geo": "georec:andalucia/geometry",  
"@type\_geo": "sf:MultiPolygon"  
}  
}

this is the information I want to index and I want to modify the field business\_location (float --\> geo\_point)

Then I modify the mapping changing float to geo\_point.  
I get the mapping and receive the error:

GET prueba1/\_mapping

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ERROR\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
{  
"error": {  
"root\_cause": [  
{  
"type": "action\_request\_validation\_exception",  
"reason": "Validation Failed: 1: mapping type is missing;"  
}  
],  
"type": "action\_request\_validation\_exception",  
"reason": "Validation Failed: 1: mapping type is missing;"  
},  
"status": 400  
}

\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* ERROR \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

Only I want to replace business\_location from float to geo\_point to visualize with a point in the map. I don´t know really if I´m doing correctly when editing the mapping.

thanks in advance for your time and help!

Sergio

---

<div class="post-metadata">

**Author:** ![Sergio\_Redondo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sergio_redondo/32/40969_2.png) [@Sergio\_Redondo](https://discuss.elastic.co/u/Sergio_Redondo)\
**Post date:** [April 1, 2019, 12:27pm UTC](https://discuss.elastic.co/t/mapping-data-error/174755/2 "2019-04-01T12:27:04Z")

</div>

I got it ^^

---

<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:** [April 29, 2019, 12:27pm UTC](https://discuss.elastic.co/t/mapping-data-error/174755/3 "2019-04-29T12:27:05Z")

</div>

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