# ES 5.6.8 Bulk Update Api Error: \_id must not be empty

**URL:** <https://discuss.elastic.co/t/es-5-6-8-bulk-update-api-error-id-must-not-be-empty/123175>\
**Category:** Elasticsearch\
**Created:** [March 9, 2018, 2:22am UTC](https://discuss.elastic.co/t/es-5-6-8-bulk-update-api-error-id-must-not-be-empty/123175 "2018-03-09T02:22:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sayantan](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sayantan](https://discuss.elastic.co/u/Sayantan)\
**Post date:** [March 9, 2018, 2:22am UTC](https://discuss.elastic.co/t/es-5-6-8-bulk-update-api-error-id-must-not-be-empty/123175/1 "2018-03-09T02:22:45Z")

</div>

Any idea why even though \_id is present, unless I am not spotting something obvious.  
Request  
{"update":{"\_index":"test","\_type":"doc","\_id":"cat friskie"}}  
{"doc":{"weight":1.0,"term":"cat friskie"},"doc\_as\_upsert":true,"scripted\_upsert":false}

Response

```
     "update":{  
        "_index":"test",
        "_type":"doc",
        "_id":"cat friskie",
        "status":400,
        "error":{  
           "type":"illegal_argument_exception",
           "reason":"if _id is specified it must not be empty"
        }
     }

```

The similar one below is working fine.

{"update":{"\_index":"test","\_type":"doc","\_id":"cat liter"}}  
{"doc":{"weight":3.0,"term":"cat liter"},"doc\_as\_upsert":true,"scripted\_upsert":false}

```
    "update":{  
        "_index":"suggestion_wowdefault27",
        "_type":"doc",
        "_id":"cat liter",
        "_version":1,
        "result":"noop",
        "_shards":{  
           "total":2,
           "successful":1,
           "failed":0
        },
        "status":200
     }
```

---

<div class="post-metadata">

**Author:** ![Sayantan](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@Sayantan](https://discuss.elastic.co/u/Sayantan)\
**Post date:** [April 4, 2018, 9:11pm UTC](https://discuss.elastic.co/t/es-5-6-8-bulk-update-api-error-id-must-not-be-empty/123175/2 "2018-04-04T21:11:58Z")

</div>

Anyone?

---

<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:** [May 2, 2018, 9:12pm UTC](https://discuss.elastic.co/t/es-5-6-8-bulk-update-api-error-id-must-not-be-empty/123175/3 "2018-05-02T21:12:02Z")

</div>

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