Error 'Error while execute the OnEnd event due to [Microsoft OLE DB Provider for ODBC Drivers, -2147217900], xxx. Cannot insert duplicate key in object 'RecomAction'' when approving appraisal

Error 'Error while execute the OnEnd event due to [Microsoft OLE DB Provider for ODBC Drivers, -2147217900], xxx. Cannot insert duplicate key in object 'RecomAction'' when approving appraisal

Symptoms:

The user encountered the above error message when he/she is trying to approve staff performance appraisal

Possible cause(s):

There is a duplicate value within the RECOMACTION under path: Setup >> Company >> Codes >> RECOMACTION

Suggested workaround / Solution(s):

Remove the duplicate record as per below steps and try to approve the staff’s performance appraisal again. 

  1. Go to Setup >> Company >> Codes
  2. Select company
  3. Click on RECOMACTION within the appraisal category
  4. Tick the check box on the duplicate value and click on “Delete selected”