Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1741

mongoimport --uri throws errors when passed Atlas Connection String URI

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.7, 3.6.0-rc0
    • Affects Version/s: 3.4.6
    • Component/s: mongoimport
    • Environment:
      OSX 10.11.6

      Summary: mongoimport throws errors when passed the MongoDB URI as it is in the Atlas Connection dialog

      mongoimport --uri 'mongodb://importUser:importme123@gettingstarted-shard-00-00-msxz1.mongodb.net:27017,gettingstarted-shard-00-01-msxz1.mongodb.net:27017,gettingstarted-shard-00-02-msxz1.mongodb.net:27017/guidebook?ssl=true&replicaSet=GettingStarted-shard-0&authSource=admin' --collection=restaurants --file primer-dataset.json 
      2017-07-25T15:42:36.839-0400	connected to: localhost
      2017-07-25T15:42:36.851-0400	Failed: error configuring session: write concern error: cannot specify writeConcern string and connectionString object
      2017-07-25T15:42:36.851-0400	imported 0 documents
      

      NOTE: CLOUDP-19464 and CLOUDP-20324 may resolve the issue if its related to the connection string itself

      mongoimport version: r3.4.6
      git version: c55eb86ef46ee7aede3b1e2a5d184a7df4bfb5b5
      Go version: go1.7
         os: darwin
         arch: amd64
         compiler: gc
      OpenSSL version: OpenSSL 0.9.8zh 14 Jan 2016
      

            Assignee:
            william.banfield William Banfield
            Reporter:
            ravind.kumar Ravind Kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: