# Getting version\_conflict\_eng (409) while updating in the existing Index

**URL:** <https://discuss.elastic.co/t/getting-version-conflict-eng-409-while-updating-in-the-existing-index/273543>\
**Category:** Elasticsearch\
**Created:** [May 20, 2021, 1:09pm UTC](https://discuss.elastic.co/t/getting-version-conflict-eng-409-while-updating-in-the-existing-index/273543 "2021-05-20T13:09:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Suraj\_Anand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suraj_anand/32/64588_2.png) [@Suraj\_Anand](https://discuss.elastic.co/u/Suraj_Anand)\
**Post date:** [May 20, 2021, 1:09pm UTC](https://discuss.elastic.co/t/getting-version-conflict-eng-409-while-updating-in-the-existing-index/273543/1 "2021-05-20T13:09:00Z")

</div>

I am trying to update some data in an Elastic Search Index,

I am trying to update using this method:

> **[Updating documents | Elasticsearch-PHP \[7.x\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/updating_documents.html)**

Update Method:

```auto
        $params = [
        'index' => 'my_index',
        'id' => 'my_id',
        'body' => [
            'doc' => [
                'new_field' => 'abc'
            ]
        ];

    $response = $client->update($params);

```

But I am getting the below mentioned error.

Error:

```auto
    [728376]: version conflict,
    required seqNo [145274], 
    primary term [1]. 
    current document has seqNo [779385] and primary term [2]
    Status Code: 409
    Type: version_conflict_eng
    Index: user 

```

Mapping:

```auto
    {"user":{"mappings":{"dynamic":"strict","properties":{"EMAIL":{"type":"text"},"FIRSTNAME":{"type":"text"},"MOBILE_NUMBER":{"type":"long"},"NOT_VISIBLE_IDS":{"type":"text"},"SOCIAL_CONTACT":{"type":"nested","include_in_parent":true,"properties":{"DEGREE":{"type":"long"},"FOLLOWER":{"type":"long"}}},"TOTAL_FOLLOWER":{"type":"long"},"USERID":{"type":"long"},"USERNAME":{"type":"text"},"USER_STRING_UNIQUE_ID":{"type":"text"}}}}}

```

Setting:

` {"user":{"settings":{"index":{"mapping":{"nested_objects":{"limit":"2000000"}},"number_of_shards":"5","provided_name":"user","creation_date":"1619021545916","number_of_replicas":"1","uuid":"PzyebOY9SIG-BXl-N9aW8Q","version":{"created":"7010199"}}}}}`

Is there any method to solve this?

---

<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:** [May 20, 2021, 2:34pm UTC](https://discuss.elastic.co/t/getting-version-conflict-eng-409-while-updating-in-the-existing-index/273543/2 "2021-05-20T14:34:22Z")

</div>

Welcome!

> [@Suraj\_Anand](#):
>
> I am trying to update some data in an AWS Elastic Search Index,

Do you mean the AWS Elasticsearch service?

If so, please note that we don't support it.

Did you look at [Cloud by Elastic](https://www.elastic.co/cloud), also available if needed from [AWS Marketplace](https://aws.amazon.com/marketplace/pp/Elasticsearch-Inc-Elasticsearch-Service-on-Elastic/B01N6YCISK)?

Cloud by elastic is one way to have access to **all features** , all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL, Canvas, Maps UI, Alerting and built-in solutions named [Observability](https://www.elastic.co/observability), [Security](https://www.elastic.co/security), [Enterprise Search](https://www.elastic.co/enterprise-search) and what is coming next 🙂 ...

---

<div class="post-metadata">

**Author:** ![Suraj\_Anand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/suraj_anand/32/64588_2.png) [@Suraj\_Anand](https://discuss.elastic.co/u/Suraj_Anand)\
**Post date:** [May 25, 2021, 5:26pm UTC](https://discuss.elastic.co/t/getting-version-conflict-eng-409-while-updating-in-the-existing-index/273543/3 "2021-05-25T17:26:35Z")

</div>

Hi dadoonet,

Yes I am using AWS Elastic Search,

It would be very helpful for me If you could help.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [May 25, 2021, 6:42pm UTC](https://discuss.elastic.co/t/getting-version-conflict-eng-409-while-updating-in-the-existing-index/273543/4 "2021-05-25T18:42:31Z")

</div>

Are you running multiple concurrent updates? How frequently is a single document likely to be updated?

---

<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:** [June 22, 2021, 6:43pm UTC](https://discuss.elastic.co/t/getting-version-conflict-eng-409-while-updating-in-the-existing-index/273543/5 "2021-06-22T18:43:02Z")

</div>

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