Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
ERROR: multiple occurrences in mongoimport
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anushree Bhate  
View profile  
 More options Sep 28 2012, 5:34 am
From: Anushree Bhate <anushreebh...@gmail.com>
Date: Fri, 28 Sep 2012 02:34:49 -0700 (PDT)
Local: Fri, Sep 28 2012 5:34 am
Subject: ERROR: multiple occurrences in mongoimport

Hi All,

I'm repeatatively getting this error while trying to import data in mongoDB
from a json file.I'm running following command to do so

*D:\Old D
Drive\Downloads\MongoDB\mongodb-win32-x86_64-2.2.0\mongodb-win32-x86_64**
-2.2.0\bin*>*mongoimport -d test -c articles --type json --file* *
D:\Projects\Xurch\P**arsely data\articles_split.json.01\articles_split.json*

**

ERROR: multiple occurrences

Can somebody please suggest if I'm doing something wrong


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gianfranco  
View profile  
 More options Sep 28 2012, 12:22 pm
From: Gianfranco <gianfra...@10gen.com>
Date: Fri, 28 Sep 2012 09:22:40 -0700 (PDT)
Local: Fri, Sep 28 2012 12:22 pm
Subject: Re: ERROR: multiple occurrences in mongoimport

Can you check what output do you get when adding "-v" (verbose) to that
command?

I've tried and if have an exact document existing already in the
database/collection, no error message is displayed.
This is the same if you have twice the same document in the json file.

Can you provide a sample of the *articles_split.json*?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anushree Bhate  
View profile  
 More options Oct 5 2012, 7:51 am
From: Anushree Bhate <anushreebh...@gmail.com>
Date: Fri, 5 Oct 2012 04:51:25 -0700 (PDT)
Local: Fri, Oct 5 2012 7:51 am
Subject: Re: ERROR: multiple occurrences in mongoimport

Thanks for your reply.--verbose is not giving any additional information
that ERROR:Multiple occurrence.Also the data which I'm trying to import is
being exported from some other MongoDB database so there are lean chances
of any duplicate documents.The files are confidential so unfortunately
won't be able to share the data.
Without that can you provide any guidance.

Any help would be greatly appriciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anushree Bhate  
View profile  
 More options Oct 5 2012, 7:57 am
From: Anushree Bhate <anushreebh...@gmail.com>
Date: Fri, 5 Oct 2012 04:57:31 -0700 (PDT)
Local: Fri, Oct 5 2012 7:57 am
Subject: Re: ERROR: multiple occurrences in mongoimport

Yeah I tried --verbose(--vvvvv) still it didn't give me anything more than
ERROR:Multiple occurrence.The data/files I'm trying to import is the data
exported from another MongoDB database so chances of having duplicate
document is lean.The files/data ic confidential so may not be able to share.
One most important thing is even when I tried to import the file in a fresh
database it didn't succeed and gave same error.

Please provide some hint if you came across this error before


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anushree Bhate  
View profile  
 More options Oct 5 2012, 7:58 am
From: Anushree Bhate <anushreebh...@gmail.com>
Date: Fri, 5 Oct 2012 04:58:18 -0700 (PDT)
Local: Fri, Oct 5 2012 7:58 am
Subject: Re: ERROR: multiple occurrences in mongoimport

Yeah I tried --verbose(--vvvvv) still it didn't give me anything more than
ERROR:Multiple occurrence.The data/files I'm trying to import is the data
exported from another MongoDB database so chances of having duplicate
document is lean.The files/data ic confidential so may not be able to share.
One most important thing is even when I tried to import the file in a fresh
database it didn't succeed and gave same error.

Please provide some hint if you came across this error before


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anushree Bhate  
View profile  
 More options Oct 8 2012, 1:51 am
From: Anushree Bhate <anushreebh...@gmail.com>
Date: Sun, 7 Oct 2012 22:51:06 -0700 (PDT)
Local: Mon, Oct 8 2012 1:51 am
Subject: Re: ERROR: multiple occurrences in mongoimport

Hi All,

This problem is resolved.But the issue was silly and was nothing to do with
'multiple occurrences',it was a file path issue so instead of *mongoimport
-d test -c articles --type json --file** D:\Projects\Xurch\Parsely
data\articles_split.json.01\articles_split.json* when I ran *mongoimport -d
test -c articles --type json --file "D:\Projects\Xurch\P**arsely
data\articles_split.json.01\articles_split.json".*It ran successfully,silly
issue.Learning is at times MongoDB gives misleading error message which has
nothing to do with cause of error.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gianfranco  
View profile  
 More options Oct 8 2012, 5:33 am
From: Gianfranco <gianfra...@10gen.com>
Date: Mon, 8 Oct 2012 02:33:56 -0700 (PDT)
Local: Mon, Oct 8 2012 5:33 am
Subject: Re: ERROR: multiple occurrences in mongoimport

Hi Anushree,

Thanks for letting us know the solution, and I agree this is a misleading
error message.

I've filled a Jira bug report for it:
https://jira.mongodb.org/browse/SERVER-7292

Thanks,
Gianfranco


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »