# Version Conflict Engine Exception : due to simultaneous updates

**URL:** <https://discuss.elastic.co/t/version-conflict-engine-exception-due-to-simultaneous-updates/211244>\
**Category:** Elasticsearch\
**Created:** [December 10, 2019, 8:27am UTC](https://discuss.elastic.co/t/version-conflict-engine-exception-due-to-simultaneous-updates/211244 "2019-12-10T08:27:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tarunwx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tarunwx/32/46431_2.png) [@tarunwx](https://discuss.elastic.co/u/tarunwx)\
**Post date:** [December 10, 2019, 8:27am UTC](https://discuss.elastic.co/t/version-conflict-engine-exception-due-to-simultaneous-updates/211244/1 "2019-12-10T08:27:22Z")

</div>

I have APIs[application] which update documents partially as per the action on the client side.

Now the issue that I am facing is

> ```
> "type": "version_conflict_engine_exception",
> "reason": "[5dede8546cce890029d8dfa6]: version conflict, required seqNo [1008824], primary term [1]. current document has seqNo [1068598] and primary term [1]",
> 
> ```

The issue is straight forward that doc is getting modified concurrently.

Will the **retry\_on\_conflict** option for the update api maintain the sanity that the documents are updated properly without information loss ??

Is this option available at the elastic client level ?

any other recommendations are welcome .

Thanks a lot

---

<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:** [January 7, 2020, 8:37am UTC](https://discuss.elastic.co/t/version-conflict-engine-exception-due-to-simultaneous-updates/211244/2 "2020-01-07T08:37:06Z")

</div>

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