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

Importing JSON with Arrays does not work

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • No version
    • 1.26.1
    • Compass, Import/Export
    • None
    • Not Needed

    Description

      Problem Description

      As a user, I can NOT upload JSON files with nested arrays that are of different types.  

       This seems to be a repeat issue from here:

      https://github.com/mongo-express/mongo-express/issues/433

       

      I CAN import the same file correctly via the command line.

      Steps to Reproduce

      1) Take sample JSON attached...try to import via Compass

       

      Expected Results

      1) File imports successfully.

      Actual Results

      1) Error on import.

       

      Found work around on unix command shell:

      mongoimport --uri mongodb+srv://{MYUSERNAME:MYSECRETPASSWORD}@cluster0.g8fm0.mongodb.net/foo --collection bar --type json --file Conformer3D_CID_2244.json 

       

       

       

       

      Additional Notes

      Attachments

        Activity

          People

            Unassigned Unassigned
            jeffrey.cheak@mongodb.com Jeffrey Cheak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: