Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4205

Export to CSV and JSON fails

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 1.21.0, 1.21.2
    • Affects Version/s: 1.21.0
    • Component/s: Import/Export
    • None
    • Iteration Yak

      When I try to export a collection to JSON or CSV the export fails.

      Can reproduce it 100% of the times with test.users in compass-data-sets.

      Console error:

      mongodb-compass-import-export:export error running export pipeline +148ms MongoError: Cursor session id (4b9325ce-1dca-412c-9539-7ea93818f1cd - guuhozH9obMVxoERLdtfi+bysD912meoDW6Z4kaH9l0=) is not the same as the operation context's session id (none)
          at MessageStream.messageHandler (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/mongodb/lib/cmap/connection.js:261:20)
          at MessageStream.emit (events.js:200:13)
          at processIncomingData (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/mongodb/lib/cmap/message_stream.js:144:12)
          at MessageStream._write (/Applications/MongoDB Compass Beta.app/Contents/Resources/app.asar/node_modules/mongodb/lib/cmap/message_stream.js:42:5)
          at doWrite (_stream_writable.js:417:12)
          at writeOrBuffer (_stream_writable.js:401:5)
          at MessageStream.Writable.write (_stream_writable.js:301:11)
          at TLSSocket.ondata (_stream_readable.js:713:22)
          at TLSSocket.emit (events.js:200:13)
          at addChunk (_stream_readable.js:294:12)
      

      A user also reported this other error when exporting to CSV but I could not reproduce it:

      Cannot run getMore on cursor 1998783333627462641, which was created in session a7a167f1-dac6-4fd4-9000-cfd2b3270274 - 47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=, without an lsid
      

      I imported the collection he was trying to export as test.stocks in compass-data-sets.

            Assignee:
            lucas.hrabovsky Lucas Hrabovsky (Inactive)
            Reporter:
            massimiliano.marcon@mongodb.com Massimiliano Marcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: