mongoimport and stoponerror

51 views
Skip to first unread message

Aad Janson

unread,
Oct 23, 2012, 1:27:19 AM10/23/12
to mongod...@googlegroups.com
Quote from manual:
--stopOnError¶
New in version 2.2.
Forces mongoimport to halt the import operation at the first error
rather than continuing the operation despite errors.

But suppose I want mongoimport to continue after an error and imports
the next faultless record. Is that possible? Is so? How?

Thomas Rueckstiess

unread,
Oct 23, 2012, 11:18:33 PM10/23/12
to mongod...@googlegroups.com
Hi, that's actually the default behavior of mongoimport, if you don't use that option. 

Aad

unread,
Oct 24, 2012, 2:57:02 AM10/24/12
to mongod...@googlegroups.com
My fault, we use version 2.0.4. In this version mongoimport just stops. I suppose there is no workaround in this version?

Op dinsdag 23 oktober 2012 07:27:57 UTC+2 schreef Aad het volgende:

Thomas Rueckstiess

unread,
Oct 30, 2012, 12:57:45 AM10/30/12
to mongod...@googlegroups.com

Unfortunately, this functionality was introduced in 2.2. Are you able to upgrade your mongodb version?
Reply all
Reply to author
Forward
0 new messages