Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 480 Bytes

duplicate_entry.md

File metadata and controls

14 lines (11 loc) · 480 Bytes

Duplicate entry '1-' for key 'version_number' when importing MC file

If you are getting MySQLIntegrityConstraintViolationException - Duplicate entry '1-' for key 'version_number' when importing MC file you are trying to insert different elements with the same model catalogue id. This may happen on the older instances if the model catalogue is empty string instead of null.

Example

dataElement(name: 'one') {
    id ""
}
dataElement(name: 'two') {
    id ""
}