Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MongoImport: problem with Duplicate Key #1242

Open
bitliner opened this issue Jan 7, 2016 · 0 comments
Open

MongoImport: problem with Duplicate Key #1242

bitliner opened this issue Jan 7, 2016 · 0 comments

Comments

@bitliner
Copy link

bitliner commented Jan 7, 2016

What happened is the following:

  • I exported some documents using mongoexport
  • I removed the same documents that I exported
  • I tried to import the exported documents using mongoimport

The import fails because it throws "Duplicate Key" error.

But the documents that I am trying to import are not in the collection, so there is no duplicate _id.

Could it be that there is some cache or index that keeps them and make the database throw the error?

There aren't other unique indexes apart of _id.

If I import the documents in another collection it works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant