# Bulk API item error types

**URL:** <https://discuss.elastic.co/t/bulk-api-item-error-types/242639>\
**Category:** Elasticsearch\
**Created:** [July 26, 2020, 8:15am UTC](https://discuss.elastic.co/t/bulk-api-item-error-types/242639 "2020-07-26T08:15:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Munawwar1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/munawwar1/32/72799_2.png) [@Munawwar1](https://discuss.elastic.co/u/Munawwar1)\
**Post date:** [July 26, 2020, 8:15am UTC](https://discuss.elastic.co/t/bulk-api-item-error-types/242639/1 "2020-07-26T08:15:26Z")

</div>

Hi. I am trying to differentiate validation errors from intermittent errors from bulk index API.

So let's say I tried to index 3 documents, and one failed.. I want to retry the indexing only if it was an intermittent error (I don't know, maybe node/shard couldn't accept write at that moment or whatever) and not for errors that would always happen like validation errors

The documentation at [https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html) doesn't list the possible enums of errors that can happen under response `items[].error.type`. Where can I find the list of types?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [July 26, 2020, 12:11pm UTC](https://discuss.elastic.co/t/bulk-api-item-error-types/242639/2 "2020-07-26T12:11:02Z")

</div>

The `error.type` field is the name of the exception that caused the failure (with a bit of mangling) so can basically be anything. There isn't a definitive list of exceptions that might arise from indexing.

---

<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:** [August 23, 2020, 12:11pm UTC](https://discuss.elastic.co/t/bulk-api-item-error-types/242639/3 "2020-08-23T12:11:14Z")

</div>

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