Sage-Bionetworks / sagebio-collaboration-portal

Collaboration Portal developed by Sage Bionetworks
1 stars 0 forks source link

Duplicate Key error when creating a data catalog #572

Open ychae opened 4 years ago

ychae commented 4 years ago

When trying to create a new PHC IX Data Catalog entry, it throws a the following error:

E11000 duplicate key error collection: phccp.datacatalogs index: slug_1 dup key: { slug: null }

tschaffter commented 4 years ago

The MongoDB model for data catalog no longer has the property slug. The error is likely thrown because the database used still has the slug property as part of the model. The solution is likely to manually remove this property from the existing MongoDB instance.

tschaffter commented 4 years ago

@ychae @ksuruli Please add an update regarding what solution you have put in place. Once the issue is no longer there, please close this ticket.

tschaffter commented 4 years ago

@ychae This will be addressed by Roche/GNE when they will migrate data from their alpha4 DB to the current version of the portal. Removing from Milestone 2 as this is not an issue with the current version of the codebase.