I am interacting with MongoDB using C# driver. It threw duplicate key error like below for one index
the highlighted value 0x141214141a24 is not a actual value in the error message of location.path. how to get the actual value of it? (location.target is actual value I see)
would you mind advising how many documents have the location.target value of 457 ? - we have 868144 documents.
Have you tried catching this duplicate key error in your code and handling it by e.g. printing the document on the logs when it happened? – I have not handled from code. it was thrown from C# mongo driver.
The command which generated this error. - await collection.BulkWriteAsync(write);