Error: Data could not be saved. Violation of PRIMARY KEY constraint '[number]'. Cannot insert duplicate key in object 'dbo.@AccountCodeMappingTable'

When running and Add Payment process the process excepts with the error: Data could not be saved.  Violation of PRIMARY KEY constraint 'PK__#730DF4D__3F0526A274F63D44'. Cannot insert duplicate key in object 'dbo.@AccountCodeMappingTable'.

The PK value may be unique to each system.

This has also occured in 2.91 with 'PK__#6116C9C__3F0526A262FF123D'
Download and install the latest version and patch, if applicable. 

Environment

 2.91.1535.59
 2.93.2034.0

Was this article helpful?