# With default\_pipeline, restHighLevelClient's bulkProcessor can't insert records

**URL:** https://discuss.elastic.co/t/with-default-pipeline-resthighlevelclients-bulkprocessor-cant-insert-records/364015
**Category:** Elasticsearch
**Created:** [July 30, 2024, 1:01am UTC](https://discuss.elastic.co/t/with-default-pipeline-resthighlevelclients-bulkprocessor-cant-insert-records/364015 "2024-07-30T01:01:26Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jimmy0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimmy0/32/136361_2.png) [@jimmy0](https://discuss.elastic.co/u/jimmy0)
#### Post date: [July 30, 2024, 1:01am UTC](https://discuss.elastic.co/t/with-default-pipeline-resthighlevelclients-bulkprocessor-cant-insert-records/364015/1 "2024-07-30T01:01:26Z")

</div>

with default\_pipeline

```auto
PUT _ingest/pipeline/lzm_pipeline
{
  "description" : "lzm pipeline",
  "processors" : [
     {
      "set": {
        "field": "ts",
        "value": "{{_ingest.timestamp}}"
      }
    }
  ]
}

```

restHighLevelClient's bulkProcessor can't insert records, and throw Exception:

```auto
 Unable to parse response body for Response{requestLine=POST /_bulk?timeout=1

```

restHighLevelClient, elasticsearch are all 7.10.1。

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 30, 2024, 6:20am UTC](https://discuss.elastic.co/t/with-default-pipeline-resthighlevelclients-bulkprocessor-cant-insert-records/364015/2 "2024-07-30T06:20:53Z")

</div>

From #Elastic Agent to #Elasticsearch

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 30, 2024, 6:24am UTC](https://discuss.elastic.co/t/with-default-pipeline-resthighlevelclients-bulkprocessor-cant-insert-records/364015/3 "2024-07-30T06:24:23Z")

</div>

You should upgrade to at least 7.17, better to 8.14 and switch to the new Java client.

Have a look at this [blog post](https://www.elastic.co/blog/switching-from-the-java-high-level-rest-client-to-the-new-java-api-client) which describes a bit how to use the new client and some tips on migrating from the old one.

But anyway, what is the response if you try the same bulk call from the Kibana dev console?

---

<div class="post-metadata">

### Author: ![jimmy0](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimmy0/32/136361_2.png) [@jimmy0](https://discuss.elastic.co/u/jimmy0)
#### Post date: [July 31, 2024, 5:46am UTC](https://discuss.elastic.co/t/with-default-pipeline-resthighlevelclients-bulkprocessor-cant-insert-records/364015/4 "2024-07-31T05:46:39Z")

</div>

Thank you very much!  
As your remind, I tried bulk call within kibana dev console, and found the error message:

```auto
mapping set to strict, dynamic introduction of [ts] within [_doc] is not allowed

```

So I modified the index's dynamic to true, and fixed it.

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [July 31, 2024, 6:48am UTC](https://discuss.elastic.co/t/with-default-pipeline-resthighlevelclients-bulkprocessor-cant-insert-records/364015/5 "2024-07-31T06:48:36Z")

</div>

Great! But anyway please upgrade your version as this one did not received any of the bug fixes or the security patches for a very long time. Also, so many goodness has been added in 8.x versions...
