commit failed object type transaction sale item key"key number"

commit failed object type transaction sale item key"key number"

Problem Statement :-

Getting an error "commit failed object type transaction sale item key"key number" while completing the sale transaction .

 

Proposed solution:-

Check the POS log file if below error occur 

"Violation of PRIMARY KEY constraint 'PK_TilCashDrawerLog'. Cannot insert duplicate key in object 'dbo.TilCashDrawerLog'. The duplicate key value is ()."

Steps if any:-

Need to increase SysNextNumber

select * from SysNextNumber where NextNumberID=''Table.rtlStoredata '
update SysNextNumber
set NextNumber='Table.rtlStoreata +10000(according to requirment )

 where NextNumberID='Table.TransactionReceipt'
select * from CfgSiteInformation
select len(30000000000003384)
select * from Trxtransactionreceipt where TransactionReceiptKey like '30%' and len(TransactionReceiptKey)=17 order by TransactionReceiptKey desc