-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: mongorestore
-
None
-
Environment:Windows..64 bit
While restoring the data, I got an error with assertion 0....
In the log file - I think below object ID was creating the problem. I couldn't find any option - that would ignore the error and continue restore. Hence decided to ignore to bad records that was captured in log file.
Am using the following command to restore and it fails with an error below...
mongorestore --collection ABC --noobjcheck --filter '{_id: ObjectId("53edbe5fceaa081d10052e20")}' --db test C:\Users\Myname\\Documents\mongo-task\MyName.bson Error parsing command line: too many positional options try 'mongorestore --help' for more information
also, couldn't find the syntax for $ne. Will the below work?
mongorestore --collection Leads --filter '{"_id":{$ne: ObjectId("53edbe5fceaa081d10052e20")}}'--db test C:\Users\MyName\Documents\mongo-task\Myname.bson