Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate Key error when creating a data catalog #572

Open
ychae opened this issue Oct 13, 2019 · 3 comments
Open

Duplicate Key error when creating a data catalog #572

ychae opened this issue Oct 13, 2019 · 3 comments
Labels
Bug Something isn't working Review-Needed

Comments

@ychae
Copy link
Contributor

ychae commented Oct 13, 2019

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 }

@ychae ychae added the Bug Something isn't working label Oct 13, 2019
@ychae ychae added this to the Milestone 2 milestone Oct 13, 2019
@tschaffter
Copy link
Member

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 tschaffter assigned ychae and unassigned tschaffter Oct 14, 2019
@tschaffter
Copy link
Member

@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
Copy link
Member

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Review-Needed
Projects
None yet
Development

No branches or pull requests

3 participants