Client is 2023.2 Premium with several DSD mods including SOIP which is pricing by ship to address and multi-currency. We had to reinstall all their mods and since then, IM_PriceCode will allow new records but any attempt to change an existing record generates "Error 15 - Operating System Command Failed - Violation of Primary Key constraint 'KPRIMARY_IM_PriceCode'. Cannot insert duplicate key in object 'dbo.IM_PriceCode'. The duplicate key value is (1,,Test2,6,,,USD,). I've checked to make sure the primary keys are established (PriceCodeRecord, PriceCode, ItemCode, CustomerPriceLevel, ARDivisionNo, CustomerNo, IMMC_234_CurrencyCode, OIP_234_ShipToCode) and they look okay. I don't know why SQL is trying to add a new record instead of modifying the existing one. Another issue is that the change to a price does appear to be applying even though the error happens, unfortunately it is applying to every single existing price level for all items and customers, not just the one it is supposed to be changing. And just to make it extra exciting, this customer has 3.8 million pricing records. Does anyone have any idea where I should look next?
------------------------------
Kate Krueger
Consultant
MicroAccounting
214.800.5555x553
------------------------------