HR Cases have duplicate NumbersIssue The user was seeing that many of their HR Case numbers were being duplicated, and they wanted to know what the cause was.CauseThe user had a custom UI Action with a "current.update()" in it which was presumed to have caused the issue.ResolutionAfter reviewing the syslog_transaction record where the action was performed by the user just at the time of the duplication, and cross-checking with the corresponding localhost logs, a Duplicate entry for key PRIMARY error was found. Immediately following the error, a small stack-trace displayed with only two references provided within it - both of which pointed to the user's custom UI Action where a custom script containing "current.update()" was fired. This is the most common cause of the Duplicate entry for key PRIMARY error (improperly using "current.update()"), and proved to be the cause in this user's case as well.