Hi Purma,
You can see the reason from the error message itself. What happens is, you are trying to insert a record whose key already exists in DB table which causes DB constraint violation.
It could be that the data you are trying to insert is corrupted. If this error comes up consistently, then most likely you are trying to insert the record into database during update instead of updating the record.
Thanks & Best Regards,
Leon