com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost/ 127.0.0.1:27017" , "connectionId" : 409 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest1.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Vitaly Peressada, 5 months ago
E11000 duplicate key error index: insight.HoldingRecord.$_id_ dup key: { : "PUK PR_2010-06-30_00:00:00_002G7F-E" }
via Google Groups by Kris, 2 years ago
E11000 duplicate key error index: trafficStatistic.WatcherNotificationMongoDb.$_id_ dup key: { : ObjectId('4fc6c16a9c425bc0d944a609') }
via Google Groups by Mark, 2 years ago
E11000 duplicate key error index: CUP.UPI.$_id_ dup key: { : "78b8abe8-bbe7-44d7-9b75-e22040e56e26" }
via Google Groups by 彪 杨, 1 year ago
{ "serverUsed" : "localhost/127.0.0.1:27017" , "connectionId" : 409 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest1.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}
via GitHub by yeh928
, 1 year ago
{ "serverUsed" : "/192.168.117.121:27017/91db" , "lastOp" : { "$ts" : 0 , "$inc" : 0} , "connectionId" : 118 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: 91db.usertable.$_id_ dup key: { : \"user6284781860667377211\" }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}
via GitHub by nick0nyx
, 2 years ago
E11000 duplicate key error index: ycsb.usertable.$_id_ dup key: { : "user6284781860667377211" }
com.mongodb.MongoException$DuplicateKey: { "serverUsed" : "localhost/ 127.0.0.1:27017" , "connectionId" : 409 , "err" : "insertDocument :: caused by :: 11000 E11000 duplicate key error index: sbtest.sbtest1.$_id_ dup key: { : 1 }" , "code" : 11000 , "n" : 0 , "ok" : 1.0}
at com.mongodb.CommandResult.getException(CommandResult.java:74)
at com.mongodb.CommandResult.throwOnError(CommandResult.java:110)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.