[SambaPOS 2.99] Sql Exception Error while settle ticket

Hi Emre,

I encounter a problem while trying to settle a ticket therefore are unable to end work period. Below is the error message:


-----------------------------
[General Info]

Application: SambaPOS
Version:     2.99
Region:      en
DB:          SQ
Machine:     SAMBASERVER
User:        SAMBASEVER
Date:        5/30/2015
Time:        1:45 AM

User Explanation:

SAMBASEVER said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type:        System.Reflection.TargetInvocationException
Message:     Exception has been thrown by the target of an invocation.
Source:      mscorlib
Stack Trace: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type:        System.InvalidOperationException
Message:     Sequence contains more than one matching element
Source:      System.Core
Stack Trace: at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Samba.Domain.Models.Tickets.Ticket.AddTicketDiscount(DiscountType type, Decimal amount, Int32 userId)
   at Samba.Domain.Models.Tickets.Ticket.Recalculate(Decimal autoRoundValue, Int32 userId)
   at Samba.Services.MainDataContext.Recalculate(Ticket ticket)
   at Samba.Presentation.ViewModels.TicketViewModel.RecalculateTicket(Ticket ticket)
   at Samba.Modules.TicketModule.PaymentEditorViewModel.RefreshValues()
   at Samba.Modules.TicketModule.PaymentEditorViewModel.Prepare()
   at Samba.Modules.TicketModule.TicketEditorViewModel.OnTicketEvent(EventParameters`1 obj)
   at Microsoft.Practices.Prism.Events.EventSubscription`1.InvokeAction(Action`1 action, TPayload argument)
   at Microsoft.Practices.Prism.Events.EventSubscription`1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments)
   at Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments)
   at Microsoft.Practices.Prism.Events.CompositePresentationEvent`1.Publish(TPayload payload)
   at Samba.Presentation.Common.ExtensionServices._PublishEvent[TEventsubject](TEventsubject eventArgs, String eventTopic)

-----------------------------

[Assembly Info]

mscorlib, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
System, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
Samba.Infrastructure, Version=1.0.0.0
System.Windows.Forms, Version=4.0.0.0
System.Windows.Interactivity, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
PropertyTools.Wpf, Version=2011.3.4599.20129
Microsoft.Practices.EnterpriseLibrary.Validation, Version=5.0.414.0
Samba.Domain, Version=1.0.0.0
System.Drawing, Version=4.0.0.0
System.Management, Version=4.0.0.0
UIControls, Version=1.0.0.0
System.Core, Version=4.0.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Persistance.Data, Version=1.0.0.0
Samba.Services, Version=1.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.414.0
mscorlib, Version=2.0.0.0
FlexButton, Version=1.0.0.0
WindowsFormsIntegration, Version=4.0.0.0

-----------------------------

[System Info]

Operating System
-Microsoft Windows 7 Professional
--CodeSet = 1252
--CSDVersion = Service Pack 1
--CurrentTimeZone = 480
--FreePhysicalMemory = 321512
--OSArchitecture = 32-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 1
--ServicePackMinorVersion = 0
--Version = 6.1.7601

Machine
-SAMBASERVER
--Manufacturer = System manufacturer
--Model = System Product Name
--TotalPhysicalMemory = 1072947200
--UserName = SAMBASERVER\SAMBASEVER

-----------------------------

Could you instruct me how to resolve the issue?

Thanks

Ken

Check your Discounts. There appears to be mis-configuration there causing a conflict.

Upgrade to v4.

1 Like

I agree with QMcKay. I also agree you should upgrade to version 4.