1

I am trying to export my collections from Atlas to my Local MongoDB with MongoDB Compass tool. The issue is I can export some collections but my user collection returning error.

Error is: Path collision at tokens.0BUo4-zWowM9ldTIUbs57Q remaining portion 0BUo4-zWowM9ldTIUbs57Q

Any help appreciated, thanks.

MongoDB Compass version is 1.28.1

Baran Yeni
  • 133
  • 2
  • 11

2 Answers2

1

By some search, I saw some other people facing similar problem. So it may be caused by some bug on MongoDB Compass version is 1.28.1. Workaround solution was using command line interface like below.

mongodump --uri="<connection-string>" --out /path/to/export
Baran Yeni
  • 133
  • 2
  • 11
  • "cannot unmarshal DNS message" – Oliver Dixon Jan 12 '22 at 17:05
  • Locate /etc/resolv.conf file and replace the nameserver with 8.8.8.8, and everything should work just fine. If that does not work , try 1.1.1.1. from: https://stackoverflow.com/a/60560041/14066260 – Baran Yeni Jan 12 '22 at 22:51
1

This error occurs because there are two different types. Probably you have your token set as an object, or as an empty string.

The solution to use Mongo Compass is manually unchecking the "Root level field" that marks as a string. Check the following example:

The error occurs because the field "Fotos_da_Ocorrência" can be an empty string "" or and object {bucketName: "", comment: "", elementId: ""}.

When i uncheck the Root Level Field it exports normally. Fields Example

Exported

Gustavo Garcia
  • 713
  • 1
  • 5
  • 20