Issue validate_lab_import_dataset after mongoimport for Products.json is completed without error

Hi,
I have imported the json file and 516784 was imported in to applicationData.products.
MongoDB Enterprise > use applicationData
switched to db applicationData
MongoDB Enterprise > show collections
products
MongoDB Enterprise > db.products.count()
516784

vagrant@m103:/dataset$ validate_lab_import_dataset
Incorrect number of documents imported - make sure you import the entire dataset.
… odd. :frowning:
anyway had the same issue for validation?

vagrant@m103:/dataset$ mongoimport --port=30000 --username=m103-application-user --password=m103-application-pass --authenticationDatabase=admin --db=applicationData --collection=products --file=/dataset/products.json
2019-12-07T07:59:43.475+0000 connected to: localhost:30000
2019-12-07T07:59:46.474+0000 [####…] applicationData.products 17.5MB/87.9MB (19.9%)
2019-12-07T07:59:49.471+0000 [#########…] applicationData.products 34.4MB/87.9MB (39.1%)
2019-12-07T07:59:52.471+0000 [##############…] applicationData.products 51.8MB/87.9MB (58.9%)
2019-12-07T07:59:55.476+0000 [##################…] applicationData.products 68.6MB/87.9MB (78.0%)
2019-12-07T07:59:58.471+0000 [#######################.] applicationData.products 85.8MB/87.9MB (97.6%)
2019-12-07T07:59:58.801+0000 [########################] applicationData.products 87.9MB/87.9MB (100.0%)
2019-12-07T07:59:58.802+0000 imported 516784 documents

@suhank please delete your last post. It contains the answer to the lab. Remember… forum guidelines :wink:

In addition, please also delete your duplicate thread -->

You imported the data into the wrong server. Use the host from the previous lab.

Hi @suhank,

Please make sure that you are running your mongod instance on the same port which you used in the previous Lab - Creating First Application User i.e. 27000.

Hope it helps!

Thanks,
Shubham Ranjan
Curriculum Support Engineer

Hi, Shubham,
Thanks for your email, the problem is caused by port number I was using 30000.
now it is good now.
thanks,
Hank

thanks a lot, I imported into 30000 instance.