Can't add document to movieScratch


Im trying to add new document as shown in “Chapter 2: The MongoDB Query Language + Atlas”

I have checked syntax multiple times,
Reconnected to sandbox cluster through both admin and student account.

Its giving me error: Insert not permitted while document contains errors.

Someone here mentioned that it might be because of read-only connection, though i cant find a setting that allows me to change that. Wouldn’t connecting as admin override all limitations? If so it doesn’t work.

Please show us the snapshot giving connect string and data you inserted
Are you using compass or shell to insert doc and what version of compass?

Possibly seeing something like this:

Wrap the field in quotes:
It seems to be a Compass/Atlas issue.

1 Like

That was it! Thank you.

Hi @Andis_34603,

Yeah, In Compass you are required to enclose the field name in quotes.

Shubham Ranjan
Curriculum Services Engineer