Hi,
Just to eliminate that it is not a data issue, just share the payload going to the database with SQL DBA and check if you are able to update the table manually with the same data. Share the error with the DBA as well.
This is a simple UPDATE_INSERT and it should work.
Hope it helps!
Ambrish