flask-mongoengine

NotUniqueError: Tried to save duplicate unique keys

NotUniqueError: Tried to save duplicate unique keys Question: I keep getting the above mentioned error. I have deleted the existing db field id which was set to unique. But on save I got the below exception raise NotUniqueError(message % unicode(err)) NotUniqueError: Tried to save duplicate unique keys (E11000 duplicate key error index: test.users.$id_1 dup key: …

Total answers: 2