Validator empty after Export in MongoDB

Hi, I have a problem with mongoDB that delete the validation schema of a collection after I perform a Export from a Hadoop Cluster to MongoDB.
The things I Do in the export are the same that I perform over another collection where there aren’t any validation schema empty after that, so I don’t know where I’m wrong.
Can anyone help me in this case?
Thanks for the help!!!

Hi @Alberto_De_Gregorio and welcome in the MongoDB Community :muscle: !

mongoexport doesn’t modify the collection it’s extracting the documents from. The only way to remove the metadata from a MongoDB collection (indexes, jsonschema, validator, etc) would be to delete the collection and recreate it. To my knowledge that’s the only way to do it “accidentally”.

Can you explain exactly the operations that you are doing?

Cheers,
Maxime.