SambaPOS Reporter

When I try to start a new ticket and select an item I am getting am error message. It reads:
Exception has been thrown by the target of an invocation.
How can I correct this problem?

Click Detailed Report on the error box and then copy paste that here. It means you made a configuration mistake and need to find your mistake to fix it.

Unfortunately, my internet is not working on my restaurant computer so I using my iPad. The error occurred after I deleted an order tag group.

Without seeing the details we have no idea what the error actually is. From experience most people mess up tax templates or calculations.

And I just added a sales tax account

Ok, I’ll try again to connect to the internet

You should not make configuration changes on live system. Instead use a development computer make changes there and then when working you can implement those changes on your live system.


[General Info]

Application: SambaPOS
Version: 4.1.82
Region: en
DB: CE
Machine: RESTAURANT
User: josephine
Date: 8/30/2015
Time: 2:29 AM

User Explanation:

josephine 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)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.Run()
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at Samba.Presentation.App.Main()

Inner Exception 1
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: Samba.Domain
Stack Trace: at Samba.Domain.Models.Accounts.AccountTransaction.UpdateAccount(Int32 accountTypeId, Int32 accountId)
at Samba.Domain.Models.Accounts.AccountTransaction.UpdateAccounts(IEnumerable1 accountDataList) at Samba.Domain.Models.Accounts.AccountTransactionDocument.AddNewTransaction(AccountTransactionType template, IEnumerable1 accountDataList)
at Samba.Domain.Models.Accounts.AccountTransactionDocument.AddSingletonTransaction(Int32 transactionTypeId, AccountTransactionType template, IEnumerable1 accountDataList) at Samba.Domain.Models.Tickets.Ticket.AddOrder(Order order, IEnumerable1 taxTemplates, AccountTransactionType template, String userName)
at Samba.Domain.Models.Tickets.Ticket.AddOrder(AccountTransactionType template, Department department, String userName, MenuItem menuItem, IList1 taxTemplates, MenuItemPortion portion, String priceTag, ProductTimer timer, Terminal terminal) at Samba.Presentation.Services.Implementations.TicketModule.TicketService.AddOrder(Ticket ticket, Int32 menuItemId, Nullable1 quantity, String portionName, String orderState)
at Samba.Modules.PosModule.TicketOrdersViewModel.AddOrder(Int32 menuItemId, Nullable1 quantity, String portionName) at Samba.Modules.PosModule.TicketOrdersViewModel.AddOrder(ScreenMenuItemData data) at Samba.Modules.PosModule.PosViewModel.OnMenuItemSelected(EventParameters1 obj)
at Microsoft.Practices.Prism.Events.EventSubscription1.InvokeAction(Action1 action, TPayload argument)
at Microsoft.Practices.Prism.Events.EventSubscription1.<>c__DisplayClass2.<GetExecutionStrategy>b__0(Object[] arguments) at Microsoft.Practices.Prism.Events.EventBase.InternalPublish(Object[] arguments) at Microsoft.Practices.Prism.Events.CompositePresentationEvent1.Publish(TPayload payload)
at Samba.Presentation.Services.Common.ExtensionMethods.Publish[TEventsubject](TEventsubject eventArgs, String eventTopic, Action expectedAction)


[Assembly Info]

Samba.Services, Version=1.0.0.0
mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Microsoft.Practices.Prism, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Infrastructure, Version=1.0.0.0
Samba.Infrastructure.Data, Version=1.0.0.0
PresentationFramework, Version=4.0.0.0
System.Xaml, Version=4.0.0.0
Samba.Presentation.Services, Version=1.0.0.0
FluentValidation, Version=3.4.0.0
Samba.Domain, Version=1.0.0.0
DevExpress.Xpf.Grid.v14.1, Version=14.1.6.0
DevExpress.Xpf.Grid.v14.1.Core, Version=14.1.6.0
PresentationCore, Version=4.0.0.0
Stateless, Version=1.0.0.0
System.Core, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
DevExpress.Xpf.Core.v14.1, Version=14.1.6.0
EntityFramework, Version=4.4.0.0
System.Windows.Forms, Version=4.0.0.0
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Localization, Version=1.0.0.0
Microsoft.CSharp, Version=4.0.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Persistance, Version=1.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
PropertyTools, Version=2012.4.14.1


[System Info]

Operating System
-Microsoft Windows 8
–CodeSet = 1252
–CSDVersion =
–CurrentTimeZone = -240
–FreePhysicalMemory = 3935408
–OSArchitecture = 64-bit
–OSLanguage = 1033
–ServicePackMajorVersion = 0
–ServicePackMinorVersion = 0
–Version = 6.2.9200

Machine
-RESTAURANT
–Manufacturer = TOSHIBA
–Model = Satellite C55t-A
–TotalPhysicalMemory = 6315855872
–UserName = restaurant\RESTAURANT\josephine


above here is the detailed error…

You setup tax wrong. Read through the Tax tutorials and compare them to yours.

would you be able to add a link to the tutorial, I had a hard time finding one…

This should help:
http://sambapos.org/wiki/doku.php/en/how_to_configure_multiple_taxes

Thank you! I will try it now…