Issue
"Save" UI Action is not working and the following error is displayed:
Duplicate entry 'sys_id' for key 'PRIMARY')
Cause
- UI Action (UI action rather than updating, is trying to create a record with the same sys_id )
- Business rule (the error generally pop-up when you have "current.update() " in your before Business Rule)
Resolution
Different ways to solve this issue:
- Identify the Business rule and review it as the error generally occurs when you have "current.update() " in your before Business Rule
- Review your UI action, the script part by setting it to current.update(), rather than current.insert()