[COMPASS-4284] Could not import collection into database Created: 08/May/20  Updated: 29/Oct/23  Resolved: 15/Jun/20

Status: Closed
Project: Compass
Component/s: Compass, Import/Export
Affects Version/s: None
Fix Version/s: 1.22.0

Type: Bug Priority: Critical - P2
Reporter: Edgar Tadevosyan Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates COMPASS-4298 JSON-data import causes some data alt... Closed
Sprint: Iteration Elderberry, Iteration Fig

 Description   

Hi guys, 

I have a problem with importing collection from another database. I have exported collection from the database and want to import it to another database which I have already created in the destination database and it empty but every time its hold and no progress, it's just held in 0 %. 

I'm using "MongoDB Compass Community Version 1.21.1". You can check the screenshot below.



 Comments   
Comment by Mario Vernari [ 17/May/20 ]

It happens to me as well. I was able to import 3 of 4 JSON-data collections: no way to get working the latter.

As workaround, I wrote a small NodeJS program to upload the data.
Here is a sample fragment of the data being imported:

 

{     "_id": {       "$oid""5d8dfadc67253bfd1e3ce829"     },     "lname""xxx",     "pname""xxx",     "type""o",     "dev_id""xxx",     "variableName""xxx",     "rd_groups": [       "BASIC"     ],     "wr_groups": [       "STD"     ],     "unit"null,     "description""xxx",     "encoding""Boolean",     "templateId""DEV_MB1",     "lower": {       "$date""2019-09-27T12:04:44.756Z"     },     "upper": {       "$date""2020-02-10T10:50:45.779Z"     },     "version": -2,     "idx"11,     "ui": {       "type""bm",       "unit"null,       "vl"null,       "vlx"null,       "cv"null,       "cvx"null,       "tpl"null,       "opts"null     },     "oldupper"null,     "upgraded"272   },
 

 

Generated at Wed Feb 07 22:35:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.