Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simphony Transaction API giving Error

Status
Not open for further replies.

Vikram Singh

Programmer
Jan 3, 2018
39
KW
Hello Experts,

I'm getting the below error when posting a new order using Transaction API Gen 1. Please help me to solve this error
[highlight #FCE94F]An item with the same key has already been added[/highlight]

Please find the Micros POS logs Below:



05/13/23 17:38:13.806, 5, 0,API , 28,Simphony Pos Api: Success,
05/13/23 17:38:13.806, 5, 0,API , 28,Simphony Pos Api: Discount Engine: voids and returns,
05/13/23 17:38:13.806, 5, 0,API , 28,Simphony Pos Api: Success,
05/13/23 17:38:13.806, 5, 0,API , 28,Simphony Pos Api: Begin Printing,
05/13/23 17:38:13.829, 5, 0,API , 28,Simphony Pos Api:[highlight #EDD400] Guest Check Printing exceptionSystem.ArgumentException: An item with the same key has already been added.[/highlight]
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key‚ TValue value‚ Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key‚ TValue value)
at SimphonyPosApi.PrintJobConverter.AddPrintJob(PrintJob printJob‚ IPrintInfo printInfo‚ Int32 checkNumber)
at SimphonyPosApi.TSOPS.DoPrinting(SimphonyPosApi_GuestCheck& pGuestCheck‚ GuestCheck check‚ TenderInfo tmedInfo‚ DbEmployee empl),
05/13/23 17:38:13.838, 5, 0,API , 28,Simphony Pos Api: Post transaction error for check 51148: [highlight #FCE94F]An item with the same key has already been added.,[/highlight]
05/13/23 17:38:13.838, 5, 4,API , 28,Post transaction error stack : at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key‚ TValue value‚ Boolean add)
at System.Collections.Generic.Dictionary`2.Add(TKey key‚ TValue value)
at SimphonyPosApi.PrintJobConverter.AddPrintJob(PrintJob printJob‚ IPrintInfo printInfo‚ Int32 checkNumber)
at SimphonyPosApi.TSOPS.DoPrinting(SimphonyPosApi_GuestCheck& pGuestCheck‚ GuestCheck check‚ TenderInfo tmedInfo‚ DbEmployee empl)
at SimphonyPosApi.TSOPS.PostCheck(SimphonyPosApi_GuestCheck& pGuestCheck‚ GuestCheck check‚ Int32 tenderObjNum)
at SimphonyPosApi.TSOPS.PostNewTransaction(String vendorCode‚ SimphonyPosApi_GuestCheck& pGuestCheck‚ SimphonyPosApi_MenuItem[]& ppMenuItems‚ SimphonyPosApi_ComboMeal[]& ppComboMeals‚ SimphonyPosApi_SvcCharge& pServiceChg‚ SimphonyPosApi_Discount& pSubTotalDiscount‚ SimphonyPosApi_TmedDetailItemEx& pTmedDetailEx‚ SimphonyPosApi_TotalsResponse& totalsResponse‚ String[]& ppCheckPrintLines‚ String[]& ppVoucherOutput),
05/13/23 17:38:13.888, 5, 0,API , 28,Simphony Pos Api: Simphony POS API error message: An item with the same key has already been added.‚ Stack trace: at SimphonyPosApi.TSOPS.PostNewTransaction(String vendorCode‚ SimphonyPosApi_GuestCheck& pGuestCheck‚ SimphonyPosApi_MenuItem[]& ppMenuItems‚ SimphonyPosApi_ComboMeal[]& ppComboMeals‚ SimphonyPosApi_SvcCharge& pServiceChg‚ SimphonyPosApi_Discount& pSubTotalDiscount‚ SimphonyPosApi_TmedDetailItemEx& pTmedDetailEx‚ SimphonyPosApi_TotalsResponse& totalsResponse‚ String[]& ppCheckPrintLines‚ String[]& ppVoucherOutput)
at SimphonyPosApi.TransactionServicesClass.PostTransactionEx(String vendorCode‚ SimphonyPosApi_GuestCheck& pGuestCheck‚ SimphonyPosApi_MenuItem[]& ppMenuItems‚ SimphonyPosApi_ComboMeal[]& ppComboMeals‚ SimphonyPosApi_SvcCharge& pServiceChg‚ SimphonyPosApi_Discount& pSubTotalDiscount‚ SimphonyPosApi_TmedDetailItemEx& pTmedDetailEx‚ SimphonyPosApi_TotalsResponse& pTotalsResponse‚ String[]& ppCheckPrintLines‚ String[]& ppVoucherOutput)
at SimphonyPosApi_Web.SimphonyPosAPIWeb.PostTransactionEx(PostTransactionExRequest request‚ String vendorCode)
at SimphonyPosApi_Web.SimphonyPosAPIWeb.PostTransactionEx(String vendorCode‚ String& pGuestCheck‚ String& ppMenuItems‚ String& ppComboMeals‚ String& pSvcCharge‚ String& pSubTotalDiscount‚ String& pTmedDetail‚ String& pTotalsResponse‚ String& ppCheckPrintLines‚ String& ppVoucherOutput),
05/13/23 17:38:14.126, 0, 0,TtlsPosting , 4,On demand IsOnDemandReplayRspValid: rsp.HierStrucID 0‚ mPlaybackManagedRequestsUtils.HierStrucId 68 [2 occurrences],
05/13/23 17:38:14.126, 0, 0,Unknown , 4,EGC 17:38:14.126 Started clientId = 0 for url state is ECONNSTATE_DB_UP threadID = 4,
05/13/23 17:38:14.126, 0, 0,Unknown , 4,EGC 17:38:14.126 SPs enabled 4032 FC0 clientId = 0 for url state is ECONNSTATE_DB_UP threadID = 4,
05/13/23 17:38:14.222, 2, 0,OPS , 28,!TIMER START!Discount Engine [3 occurrences],
05/13/23 17:38:14.222, 0, 0,Unknown , 28,EGC 17:38:14.222 Started clientId = 0 for url state is ECONNSTATE_DB_UP threadID = 28,
05/13/23 17:38:14.222, 0, 0,Unknown , 28,EGC 17:38:14.222 SPs enabled 4032 FC0 clientId = 0 for url state is ECONNSTATE_DB_UP threadID = 28,
05/13/23 17:38:14.309, 2, 1,OPS , 28,Started seeding of Datastore client cache,
05/13/23 17:38:14.309, 2, 1,OPS , 28,Finished seeding of Datastore client cache,
05/13/23 17:38:14.309, 2, 1,OPS , 28,Started sending database update notifications to UI,
05/13/23 17:38:14.309, 2, 1,OPS , 28,Finished sending database update notifications to UI,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top