# Insert ERROR in YSQLSH

**URL:** <https://forum.yugabyte.com/t/insert-error-in-ysqlsh/2457>\
**Category:** General\
**Created:** [January 30, 2024, 8:42am UTC](https://forum.yugabyte.com/t/insert-error-in-ysqlsh/2457 "2024-01-30T08:42:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![subh14](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@subh14](https://forum.yugabyte.com/u/subh14)\
**Post date:** [January 30, 2024, 8:42am UTC](https://forum.yugabyte.com/t/insert-error-in-ysqlsh/2457/1 "2024-01-30T08:42:54Z")

</div>

Hi  
I am receiving below error while batch insert in YSQLSH. Please suggest how to resolve this.

**ERROR: could not serialize access due to concurrent update Detail: [Operation failed. Try again** (yb/docdb/conflict\_resolution.cc:836): Value write after transaction start: { physical: 1706600595015368 logical: 12 } \>= { physical: 1706600595014345 logical: 24 }: kConflict (transaction error 3)] Call getNextException to see othererrors in the batch.java.sql.BatchUpdateException: Batch entry 1 select

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [January 30, 2024, 9:50am UTC](https://forum.yugabyte.com/t/insert-error-in-ysqlsh/2457/2 "2024-01-30T09:50:34Z")

</div>

Hi @subh14

What version are you using?

Are you running concurrent DDL & DML when this error happens?

---

<div class="post-metadata">

**Author:** ![subh14](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@subh14](https://forum.yugabyte.com/u/subh14)\
**Post date:** [February 7, 2024, 7:25am UTC](https://forum.yugabyte.com/t/insert-error-in-ysqlsh/2457/3 "2024-02-07T07:25:16Z")

</div>

Hi Dorian  
sorry for the late reply. I am using version 2.20 and it happened during concurrent DML.

---

<div class="post-metadata">

**Author:** ![dorian\_yugabyte](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.yugabyte.com/dorian_yugabyte/32/206_2.png) [@dorian\_yugabyte](https://forum.yugabyte.com/u/dorian_yugabyte)\
**Post date:** [February 7, 2024, 9:22am UTC](https://forum.yugabyte.com/t/insert-error-in-ysqlsh/2457/4 "2024-02-07T09:22:01Z")

</div>

Please read [https://support.yugabyte.com/hc/en-us/articles/4409627048461-How-to-Troubleshoot-Database-Transaction-Retryable-Errors](https://support.yugabyte.com/hc/en-us/articles/4409627048461-How-to-Troubleshoot-Database-Transaction-Retryable-Errors)
