title: Rest API - CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY
body: <h2>I am trying to update my record using Rest API but I am getting below error. I am using @HttpPut method for update record.</h2>
  
  <p>"errorCode": "APEX_ERROR",
  "message": "System.DmlException: Update failed. First exception on row 0 with id a0y7F000001BLM7QAO; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, EmployeeLog: execution of BeforeUpdate\n\ncaused by: System.QueryException: List has more than 1 row for assignment to SObject\n\nClass.EmployeeLog.updateWorkedHrs: line 7, column 1\nTrigger.EmployeeLog: line 3, column 1: []\n\nClass.EmployeeLogApiLogout.updateLogs: line 42, column 1"</p>