Improve exception message
Save survey when inserting code list item to avaid ids duplication
Key attributes cannot be "multiple". Give feedback in Designer UI.
Do not allow publishing of surveys with that error.