mongoimport failed mspanlist_insert 0x4dcf98 0x1c1dfae807a87 0x0

0
57

The mongoimport command failed with the following error: code=13 mongodb.errormap=MongoError: E11000 duplicate key error index: mongodb.$[0]._id dup key: { : db.collection.find({_id: ObjectId(“5a7b1d1eb0c29d8f7d2a6d1”)}).

The mongoimport command failed with the following error code13 mongodb.errormapMongoError DBSession0: Failed to start server.

That’s when you have to throw out your hard drive and start from scratch.

The mongoimport command failed with the following error code13 mongodb.errormapMongoError E11000 duplicate key error index mongodb.0._id dup key db.collection.find_id ObjectId5a7b1d1eb0c29d8f7d2a6d1.The mongoimport command failed with the following error code13 mongodb.

The error code 13 is a bit more specific than mongodb.errormapMongoError E11000. It’s a duplicate key error (see more about this error at mongodb.errormapMongoError).

This error is the result of a mongodb.errormapMongoError E11000. MongoDB does not duplicate the same key multiple times. But it does not know about the indexing on the index it created. This is why it does not work.

In addition to getting the last mongodb.errormapMongoError E11000 errors, you can also see it using a tool called mongoreplay. This tool will let you see what is going wrong in your mongodb instance.

If you get this error when trying to insert data into a new mongodb instance, try this: mongoreplay -d -o mongoreplay.db mongodb.exe. This will tell you what is going on and how to fix it.

LEAVE A REPLY

Please enter your comment!
Please enter your name here