Not able to connect Startups DB (Companies Collection)

I am able to connect Aggregation DB in Mongo shell and Compass but need info for connecting to startups DB ,

Download link for companies.json file

1 Like


How can the file be imported?


Please use mongoimport
Have you used mongimport for your M121 setup
Please check our forum threads
Many examples available on mogoexport/mongoimport
You have to use appropriate commands depending on where you want to import like
Local host or your Sandbox cluster

1 Like

Hi @Dina_mav,

Please feel free to reach out if you are still facing any issues in importing the dataset.


I have downloaded the file companies.json
then, in the shell, executed the following and it returned the error below:

MongoDB Enterprise Cluster0-shard-0:PRIMARY> use startups
switched to db startups
MongoDB Enterprise Cluster0-shard-0:PRIMARY> show collections

MongoDB Enterprise Cluster0-shard-0:PRIMARY> mongoimport --db startups --collection companies --file C:\Users\AB\Downloads\companies.json
2020-11-11T21:31:14.431+0200 E QUERY [js] uncaught exception: SyntaxError: unexpected token: identifier :

Your are running mongoimport at mongo prompt.It will not work and the reason for that syntax error
Please exit and run from your os prompt i,e Unix prompt or Windows cmd prompt as the case may be