# Elastic indexed data but response has error

**URL:** <https://discuss.elastic.co/t/elastic-indexed-data-but-response-has-error/296859>\
**Category:** Elasticsearch\
**Created:** [February 10, 2022, 2:45pm UTC](https://discuss.elastic.co/t/elastic-indexed-data-but-response-has-error/296859 "2022-02-10T14:45:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tleduong](https://avatars.discourse-cdn.com/v4/letter/t/898d66/32.png) [@tleduong](https://discuss.elastic.co/u/tleduong)\
**Post date:** [February 10, 2022, 2:45pm UTC](https://discuss.elastic.co/t/elastic-indexed-data-but-response-has-error/296859/1 "2022-02-10T14:45:10Z")

</div>

Data was indexed successfully but we got the response below from Elastic. Is there a reason why Elastic returned error but data is still indexed?

Error: %{"errors" =\> true, "items" =\> [%{"index" =\> %{"\_id" =\> "tracts-598812", "\_index" =\> "forms", "\_type" =\> "\_doc", "error" =\> %{"caused\_by" =\> %{"reason" =\> "Cannot determine orientation: signed area equal to 0. Points are collinear or polygon self-intersects.", "type" =\> "illegal\_argument\_exception"}, "reason" =\> "failed to parse field [geometry] of type [geo\_shape]", "type" =\> "mapper\_parsing\_exception"}, "status" =\> 400}}, %{"index" =\> %{"\_id" =\> "tracts-598812", "\_index" =\> "forms", "\_primary\_term" =\> 1, "\_seq\_no" =\> 270448, "\_shards" =\> %{"failed" =\> 0, "successful" =\> 2, "total" =\> 2}, "\_type" =\> "\_doc", "\_version" =\> 7, "result" =\> "updated", "status" =\> 200}}], "took" =\> 6}

---

<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:** [February 10, 2022, 11:46pm UTC](https://discuss.elastic.co/t/elastic-indexed-data-but-response-has-error/296859/2 "2022-02-10T23:46:39Z")

</div>

When are you getting this response? What are you sending to Elasticsearch when you get it? What is the mapping of the doc? What does a doc look like?

---

<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 10, 2022, 11:47pm UTC](https://discuss.elastic.co/t/elastic-indexed-data-but-response-has-error/296859/3 "2022-03-10T23:47:09Z")

</div>

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