An error occurred while updating the entries. See the inner exception for details. (UpdateException)

I found some cases where restarting the AppServer solved the problem and also tried to Regenerate the data model because I thought the problem was related to the UD fields , but it was not solved this issue