# Getting exception "Timed out while waiting for a dynamic mapping update"

**URL:** <https://discuss.elastic.co/t/getting-exception-timed-out-while-waiting-for-a-dynamic-mapping-update/362719>\
**Category:** Elasticsearch\
**Created:** [July 8, 2024, 1:41pm UTC](https://discuss.elastic.co/t/getting-exception-timed-out-while-waiting-for-a-dynamic-mapping-update/362719 "2024-07-08T13:41:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sibasish.palo](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@sibasish.palo](https://discuss.elastic.co/u/sibasish.palo)\
**Post date:** [July 8, 2024, 1:41pm UTC](https://discuss.elastic.co/t/getting-exception-timed-out-while-waiting-for-a-dynamic-mapping-update/362719/1 "2024-07-08T13:41:56Z")

</div>

Hi  
we have dynamic mappings for our indices, we are receiving below exception while bulk indexing using kafka-connect-elasticsearch plugin

```auto
type: mapper_exception, reason: timed out while waiting for a dynamic mapping update

```

after some google search we came across a setting "dynamic\_timeout" which we increased 600 seconds. still we are seeing the same exception

cluster settings after the update

```auto
{
  "persistent": {
    "indices": {
      "mapping": {
        "dynamic_timeout": "600s"
      }
    }
  },
  "transient": {
    "cluster": {
      "routing": {
        "allocation": {
          "node_concurrent_recoveries": "6",
          "enable": "all"
        }
      }
    },
    "indices": {
      "mapping": {
        "dynamic_timeout": "600s"
      },
      "recovery": {
        "max_bytes_per_sec": "600mb"
      }
    }
  }
}

```

any help would be very helpful  
version used: 8.12.2

Please let me know if you need any additional information

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [July 9, 2024, 2:13pm UTC](https://discuss.elastic.co/t/getting-exception-timed-out-while-waiting-for-a-dynamic-mapping-update/362719/2 "2024-07-09T14:13:16Z")

</div>

Thanks for reaching out, @sibasish.palo. This guide might be helpful a starting point [here](https://opster.com/es-errors/timed-out-while-waiting-for-a-dynamic-mapping-update/).

---

<div class="post-metadata">

**Author:** ![sibasish.palo](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@sibasish.palo](https://discuss.elastic.co/u/sibasish.palo)\
**Post date:** [July 11, 2024, 2:39pm UTC](https://discuss.elastic.co/t/getting-exception-timed-out-while-waiting-for-a-dynamic-mapping-update/362719/3 "2024-07-11T14:39:01Z")

</div>

Thank you for the response @jessgarson  
in the shared link, in the video its mentioned there is a free template optimizer available, how do i access that.

can you please help me with that

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [July 11, 2024, 6:02pm UTC](https://discuss.elastic.co/t/getting-exception-timed-out-while-waiting-for-a-dynamic-mapping-update/362719/4 "2024-07-11T18:02:03Z")

</div>

Thanks for following up, @sibasish.palo. I had a chance to connect with Sachin from the video, and it seems the free tools are no longer available. However, we are working on getting this added again in the future. I don't have an ETA for this at this time.

---

<div class="post-metadata">

**Author:** ![sibasish.palo](https://avatars.discourse-cdn.com/v4/letter/s/ea666f/32.png) [@sibasish.palo](https://discuss.elastic.co/u/sibasish.palo)\
**Post date:** [July 15, 2024, 10:50am UTC](https://discuss.elastic.co/t/getting-exception-timed-out-while-waiting-for-a-dynamic-mapping-update/362719/5 "2024-07-15T10:50:41Z")

</div>

we have increased the `dynamic_timeout` time out in the `kafka-connect-elasticsearch` plug-in as well. which fixed the problem for now.

we are working on simplifying the dynamic template to make it better optimized.

---

<div class="post-metadata">

**Author:** ![jessgarson](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jessgarson/32/129841_2.png) [@jessgarson](https://discuss.elastic.co/u/jessgarson)\
**Post date:** [July 15, 2024, 1:34pm UTC](https://discuss.elastic.co/t/getting-exception-timed-out-while-waiting-for-a-dynamic-mapping-update/362719/6 "2024-07-15T13:34:34Z")

</div>

Thanks for sharing your solution, @sibasish.palo.
