I am getting this issue when i am trying to update the shard key from from ObjectId(“000000000000000000000000”) → ObjectId(“67aa0d6859f5d46006d30acd”)
i am using save fucntion from JPA
com.mongodb.MongoWriteException: Write operation error on server 10.0.183.244:27017. Write error: WriteError{code=11000, message=‘Failed to update document’s shard key field. There is either an orphan for this document or _id for this collection is not globally unique. :: caused by :: During insert stage of updating a shard key :: caused by :: E11000 duplicate key error collection: transaction.tim_record index: id dup key: { _id: ObjectId(‘67aa09eec06e737fa6197b71’) }’, details={}}.
…
at com.avizva.syta.core.transaction.TimSytaTransactionManager.saveImRecord(TimSytaTransactionManager.java:145)
at com.avizva.syta.core.transaction.SytaTransactionManager.saveTimRecord(SytaTransactionManager.java:70)
at com.avizva.syta.aggregator.core.AggregatorNode.lambda$node$8(AggregatorNode.java:152)