# SambaPOS Reporter

**URL:** <https://forum.sambapos.com/t/sambapos-reporter/6764>\
**Category:** V4 Issue\
**Created:** [August 30, 2015, 2:17am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764 "2015-08-30T02:17:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Siciliantratt](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Siciliantratt](https://forum.sambapos.com/u/Siciliantratt)\
**Post date:** [August 30, 2015, 2:17am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/1 "2015-08-30T02:17:39Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 30, 2015, 2:18am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/2 "2015-08-30T02:18:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Siciliantratt](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Siciliantratt](https://forum.sambapos.com/u/Siciliantratt)\
**Post date:** [August 30, 2015, 2:21am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/3 "2015-08-30T02:21:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 30, 2015, 2:21am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/4 "2015-08-30T02:21:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Siciliantratt](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Siciliantratt](https://forum.sambapos.com/u/Siciliantratt)\
**Post date:** [August 30, 2015, 2:22am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/5 "2015-08-30T02:22:00Z")

</div>

And I just added a sales tax account

---

<div class="post-metadata">

**Author:** ![Siciliantratt](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Siciliantratt](https://forum.sambapos.com/u/Siciliantratt)\
**Post date:** [August 30, 2015, 2:22am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/6 "2015-08-30T02:22:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 30, 2015, 2:23am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/7 "2015-08-30T02:23:29Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Siciliantratt](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Siciliantratt](https://forum.sambapos.com/u/Siciliantratt)\
**Post date:** [August 30, 2015, 2:30am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/8 "2015-08-30T02:30:32Z")

</div>

* * *

[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(IEnumerable`1 accountDataList) at Samba.Domain.Models.Accounts.AccountTransactionDocument.AddNewTransaction(AccountTransactionType template, IEnumerable`1 accountDataList)  
at Samba.Domain.Models.Accounts.AccountTransactionDocument.AddSingletonTransaction(Int32 transactionTypeId, AccountTransactionType template, IEnumerable`1 accountDataList) at Samba.Domain.Models.Tickets.Ticket.AddOrder(Order order, IEnumerable`1 taxTemplates, AccountTransactionType template, String userName)  
at Samba.Domain.Models.Tickets.Ticket.AddOrder(AccountTransactionType template, Department department, String userName, MenuItem menuItem, IList`1 taxTemplates, MenuItemPortion portion, String priceTag, ProductTimer timer, Terminal terminal) at Samba.Presentation.Services.Implementations.TicketModule.TicketService.AddOrder(Ticket ticket, Int32 menuItemId, Nullable`1 quantity, String portionName, String orderState)  
at Samba.Modules.PosModule.TicketOrdersViewModel.AddOrder(Int32 menuItemId, Nullable`1 quantity, String portionName) at Samba.Modules.PosModule.TicketOrdersViewModel.AddOrder(ScreenMenuItemData data) at Samba.Modules.PosModule.PosViewModel.OnMenuItemSelected(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.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

* * *

---

<div class="post-metadata">

**Author:** ![Siciliantratt](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Siciliantratt](https://forum.sambapos.com/u/Siciliantratt)\
**Post date:** [August 30, 2015, 2:33am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/9 "2015-08-30T02:33:24Z")

</div>

above here is the detailed error…

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 30, 2015, 2:34am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/10 "2015-08-30T02:34:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Siciliantratt](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Siciliantratt](https://forum.sambapos.com/u/Siciliantratt)\
**Post date:** [August 30, 2015, 2:34am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/11 "2015-08-30T02:34:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Jesse](https://forum.sambapos.com/user_avatar/forum.sambapos.com/jesse/32/61493_2.png) [@Jesse](https://forum.sambapos.com/u/Jesse)\
**Post date:** [August 30, 2015, 2:36am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/12 "2015-08-30T02:36:23Z")

</div>

This should help:  
[http://sambapos.org/wiki/doku.php/en/how\_to\_configure\_multiple\_taxes](http://sambapos.org/wiki/doku.php/en/how_to_configure_multiple_taxes)

---

<div class="post-metadata">

**Author:** ![Siciliantratt](https://forum.sambapos.com/letter_avatar_proxy/v4/letter/s/ecae2f/32.png) [@Siciliantratt](https://forum.sambapos.com/u/Siciliantratt)\
**Post date:** [August 30, 2015, 2:38am UTC](https://forum.sambapos.com/t/sambapos-reporter/6764/13 "2015-08-30T02:38:32Z")

</div>

Thank you! I will try it now…
