Error Too Many Positional Options Mongodb
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us error parsing command line too many positional options Learn more about Stack Overflow the company Business Learn more about hiring developers too many positional options have been specified on the command line or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack mongoexport too many positional options Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Too many positional options error, Mongodb - mongoexport? mongodump too many positional options up vote 0 down vote favorite I cannot figure out why im producing this error when trying to do a simple export of 3 fields to a .csv file for mongodb. My code is as follows: c:mongodb24\bin>mongoexport -db local -c pets -f type,name, color --csv -o c:\Data\CSC 451\spreadsheet.csv Error: too many positional options I'm wanting to export the type, name, and color data into the spreadsheet csv
Too Many Positional Arguments Mongorestore
file. mongodb mongoexport share|improve this question edited May 13 '13 at 5:02 asked May 13 '13 at 4:47 Tone 36221536 1 Is that space necessary between name and color? –Mark May 13 '13 at 4:58 I found the error but I believe it was due to my file path for the exported csv. I had a space in the folder name. –Tone May 13 '13 at 5:01 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted Correct answer: c:mongodb24\bin>mongoexport -db local -c pets -f type,name,color --csv -o c:\Data\CSC451\spreadsheet.csv share|improve this answer answered May 13 '13 at 5:03 Tone 36221536 add a comment| up vote 0 down vote There are two ways to solve this. 1.) remove the space inthe filepath c:mongodb24\bin>mongoexport -db local -c pets -f type,name,color --csv -o c:\Data\CSC451\spreadsheet.csv 2.)surround the filepath in quotes c:mongodb24\bin>mongoexport -db local -c pets -f type,name,color --csv -o "c:\Data\CSC 451\spreadsheet.csv" Windows doesn't like Space's in the file path so you either have to remove the space, or if you can't do that without affecting something else you need to wrap it in double quotes. EDIT: Windows requires the query to be surrounded in
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company
Boost Too Many Positional Options Have Been Specified On The Command Line
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions mongoexport query too many positional arguments Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, mongodb too many positional (i.e. '$') elements found in path just like you, helping each other. Join them; it only takes a minute: Sign up MongoExport Too many positional options up vote 0 down vote favorite Am trying to run a mongoexport using a remote connection http://stackoverflow.com/questions/16515024/too-many-positional-options-error-mongodb-mongoexport by filtering on date ranges. A very simple query, however, I am running into positional errors issue. I;ve read through most of the posts regarding it, did the epoch conversion etc. But completely hit a block. Hopefully someone here can figure out what I am doing wrong. Below is my command and the error message: C:\ mongoexport --host 1.1.1.111:1111 --db IQ -u user -p password --collection CallLog --out calllog.json --query '{"Call.StartTime":{"$gte":new Date(1411066005000),"$lte": new Date(1406918805000)}}' http://stackoverflow.com/questions/25921183/mongoexport-too-many-positional-options Error parsing command line: too many positional options try 'mongoexport --help' for more information We use the authenticationDatabase option when connecting and running queries from mongo. Tried the above using that as well. But same error. What am I doing wrong here? Thanks so much in advance. Regards, Simak mongodb mongoexport share|improve this question asked Sep 18 '14 at 19:49 BRZ 348618 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote resolved this by interchanging the " and ' marks..Didn't realise that those made all the difference. Thanks! share|improve this answer answered Sep 18 '14 at 23:04 BRZ 348618 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged mongodb mongoexport or ask your own question. asked 2 years ago viewed 2307 times active 2 years ago Linked 0 how to run mongoexport csv with a query Related 2mongoexport too many options error while creating changelog0Too many positional options error, Mongodb - mongoexport?3Error regarding the execution of mongoexport0query argu
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of http://stackoverflow.com/questions/28237152/too-many-positional-options-mongoimport-error this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question https://groups.google.com/d/topic/mongodb-user/as7owhW8zM4 x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Too too many many positional options mongoimport Error up vote 0 down vote favorite I have a comma separated csv file with data for following fields: Train_ID ,Train_Number, Train_name I wrote the following query to import the data from csv to mongodb: mongoimport --db test --collection csvimporting --type csv --file "C:/Darshil Babel/Desktop/sample_data.csv" --fields Train_ID,Train_Number,Train_Name It is giving following error: Error parsing command line: too many positional too many positional options What am I doing wrong? mongodb csv share|improve this question asked Jan 30 '15 at 13:39 Darshil Babel 5019 1 post some section of sample_data.csv –Disposer Jan 30 '15 at 13:45 That command works fine for me with a suitable filename that also has a space in it. Can you double check that that is exactly the command you put into your terminal? –wdberkeley Jan 30 '15 at 18:08 add a comment| active oldest votes Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook. Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy and terms of service. Browse other questions tagged mongodb csv or ask your own question. asked 1 year ago viewed 264 times Related 0Too many positional options error, Mongodb - mongoexport?2MONGODB Mongoimport possible speed up?1mongodb --configsvr command returning error “too many positional options”3Semi-Colon Deli
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen