# Geopoint type fields cannot be created correctly

**URL:** <https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002>\
**Category:** Kibana\
**Created:** [August 12, 2022, 10:33am UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002 "2022-08-12T10:33:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![5k\_pwc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/5k_pwc/32/107057_2.png) [@5k\_pwc](https://discuss.elastic.co/u/5k_pwc)\
**Post date:** [August 12, 2022, 10:33am UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/1 "2022-08-12T10:33:22Z")

</div>

Hi all,  
my goal is to create a table and then load it by logstash, the geopoint field is the only one that doesn't want to be created correctly, do you have any idea?

 ![Capture d’écran 2022-08-12 113145](https://us1.discourse-cdn.com/elastic/original/3X/b/a/ba6d55282621c7b56ae8d350c0ea1c36bb176f86.png)

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 12, 2022, 1:39pm UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/2 "2022-08-12T13:39:15Z")

</div>

The error says that there is an unexpected double quote somewhere in hour mapping.

Please share the entire mapping that you are trying to apply.

---

<div class="post-metadata">

**Author:** ![elasticforme](https://avatars.discourse-cdn.com/v4/letter/e/f05b48/32.png) [@elasticforme](https://discuss.elastic.co/u/elasticforme)\
**Post date:** [August 12, 2022, 2:03pm UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/3 "2022-08-12T14:03:34Z")

</div>

You can try this if you don't care about mailformed data.

```auto
PUT index_name
{
  "mappings": {
    "properties": {
      "location": {
        "type": "geo_point",
        "ignore_malformed": true,
        "null_value": null
      }
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 12, 2022, 2:23pm UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/4 "2022-08-12T14:23:47Z")

</div>

> [@elasticforme](#):
>
> You can try this if you don't care about mailformed data.

I don't think this is related to the issue, the issue happens while applying the mapping, not while indexing any data.

---

<div class="post-metadata">

**Author:** ![5k\_pwc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/5k_pwc/32/107057_2.png) [@5k\_pwc](https://discuss.elastic.co/u/5k_pwc)\
**Post date:** [August 12, 2022, 2:37pm UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/5 "2022-08-12T14:37:28Z")

</div>

you are right I added all the fields outside properties which improved this problem

---

<div class="post-metadata">

**Author:** ![5k\_pwc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/5k_pwc/32/107057_2.png) [@5k\_pwc](https://discuss.elastic.co/u/5k_pwc)\
**Post date:** [August 12, 2022, 2:42pm UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/6 "2022-08-12T14:42:58Z")

</div>

when I wanted to load my data in this index I had this issue in logstash  
[2022-08-12T15:32:46,494][WARN][logstash.outputs.elasticsearch][main][0e560fd24a554024b309b56e2ff7b28899ea9009a5593689ff3e6a089eec150c] Could not index event to Elasticsearch. {:status=\>400, :action=\>["index", {:\_id=\>"1673", :\_index=\>"es", :routing=\>nil},

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [August 12, 2022, 2:51pm UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/7 "2022-08-12T14:51:10Z")

</div>

This is another issue, you should open another question and share the entire log, not just part of it.

---

<div class="post-metadata">

**Author:** ![5k\_pwc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/5k_pwc/32/107057_2.png) [@5k\_pwc](https://discuss.elastic.co/u/5k_pwc)\
**Post date:** [August 12, 2022, 3:00pm UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/8 "2022-08-12T15:00:47Z")

</div>

Obviously i wanted to share but i cannot open a new topic  
 ![Capture d’écran 2022-08-12 155739](https://us1.discourse-cdn.com/elastic/original/3X/e/0/e05064bdff746f437c0938b133b41a2bddfad08f.png)

---

<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:** [September 9, 2022, 3:01pm UTC](https://discuss.elastic.co/t/geopoint-type-fields-cannot-be-created-correctly/312002/9 "2022-09-09T15:01:41Z")

</div>

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