When try to do a simple dump, occurs a error bellow:
command : mongodump --uri “mongodb+srv://myuser:mypass@mycluster.mongodb.net/sample_supplies”
exception : Failed: error writing data for collection sample_supplies.sales
to disk: error reading collection: Failed to parse: { find: “sales”, skip: 0, snapshot: true, $db: “sample_supplies” }. Unrecognized field ‘snapshot’.
1 Like
Solution found in the web:
Add --forceTableScan
.
$ mongodump --forceTableScan --uri “mongodb+srv://myuser:mypass@mycluster.mongodb.net/sample_supplies”
3 Likes
kevinadi
(Kevin Adistambha)
January 7, 2022, 4:41am
3
Hi @Thiago_Hernandes welcome to the community!
Glad to see that you have solved the issue. However I’d like to point out that the cause of the error is due to the outdated mongodump
binary you have installed.
I would recommend you to install a current version of database tools to prevent other issues.
Best regards
Kevin
2 Likes
system
(system)
Closed
January 12, 2022, 4:41am
4
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.