Violation of primary key constraint. Constraint foreign key. для чего нужен вторичный ключ.