Purchases Error Message

When doing a purchase transaction the system throughs a provocation message and everything crushes

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

Application: SambaPOS
Version:     5.3.6
Region:      en
DB:          SQ
Machine:     EXPSTORE-PC
User:        ExpStore
Date:        1/6/2022
Time:        12:55 PM

User Explanation:

ExpStore 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 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Inner Exception 1
Type:        System.NullReferenceException
Message:     Object reference not set to an instance of an object.
Source:      Samba.Presentation.ClientLibrary
Stack Trace: at Samba.Presentation.ClientLibrary.Modules.InventoryModule.InventoryTransactionDocumentCreatorViewModel.AssignWarehouse(InventoryTransactionType transactionType, InventoryTransaction ti, Warehouse warehouse, EntityType entityType, Entity entity) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\InventoryModule\InventoryTransactionDocumentCreatorViewModel.cs:line 269
   at Samba.Presentation.ClientLibrary.Modules.InventoryModule.InventoryTransactionDocumentCreatorViewModel.OnAddLine(String obj) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\InventoryModule\InventoryTransactionDocumentCreatorViewModel.cs:line 265
   at Microsoft.Practices.Prism.Commands.DelegateCommand`1.<>c__DisplayClass6.<.ctor>b__2(Object o)
   at Microsoft.Practices.Prism.Commands.DelegateCommandBase.Execute(Object parameter)
   at Microsoft.Practices.Prism.Commands.DelegateCommandBase.System.Windows.Input.ICommand.Execute(Object parameter)
   at Samba.Presentation.ClientLibrary.Modules.InventoryModule.InventoryTransactionDocumentCreatorViewModel.Refresh(InventoryTransactionDocumentType documentType, Warehouse warehouse) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\InventoryModule\InventoryTransactionDocumentCreatorViewModel.cs:line 305
   at Samba.Presentation.ClientLibrary.Modules.InventoryModule.VisibleInventoryModule.OnTransactionCreation(EventParameters`1 obj) in C:\Users\Vehbi\Documents\Source\Repos\sambapos-v5-pro\Samba.Presentation.ClientLibrary\Modules\InventoryModule\VisibleInventoryModule.cs:line 63
   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]

mscorlib, Version=4.0.0.0
System, Version=4.0.0.0
Samba.Services, Version=5.3.7816.39267
Samba.Domain, Version=5.3.7816.39266
Samba.Infrastructure.Data, Version=5.3.7816.39266
System.ComponentModel.Composition, Version=4.0.0.0
Samba.Presentation.Services, Version=5.3.7816.39270
System.Core, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
DevExpress.Xpf.LayoutControl.v17.2, Version=17.2.13.0
System.Xml, Version=4.0.0.0
DevExpress.Xpf.Grid.v17.2, Version=17.2.13.0
DevExpress.Xpf.Grid.v17.2.Core, Version=17.2.13.0
System.Xaml, Version=4.0.0.0
Samba.Infrastructure, Version=5.3.7816.39262
Microsoft.Practices.Prism, Version=4.0.0.0
System.Runtime.Serialization, Version=4.0.0.0
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
DevExpress.Xpf.Core.v17.2, Version=17.2.13.0
System.Windows.Forms, Version=4.0.0.0
System.Drawing, Version=4.0.0.0
Samba.Persistance, Version=5.3.7816.39267
Stateless, Version=1.0.0.0
PropertyTools, Version=2012.4.14.1
Samba.Localization, Version=5.3.7816.39263
ReachFramework, Version=4.0.0.0
EntityFramework, Version=6.0.0.0
FluentValidation, Version=3.4.0.0
NCalc, Version=1.3.8.0
Microsoft.CSharp, Version=4.0.0.0
Omu.ValueInjecter, Version=2.3.0.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
DevExpress.Data.v17.2, Version=17.2.13.0
WindowsInput, Version=1.0.4.0

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

[System Info]

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

Machine
-EXPSTORE-PC
--Manufacturer = Dell Inc.
--Model = OptiPlex 3010
--TotalPhysicalMemory = 2038513664
--UserName = ExpStore-PC\ExpStore

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

Hello @yohan,

Seems like the issue is casued by your recipes therefore you should check them out carefully.

I would like to interplate these messages in the future, tell me how do you go about it, plus should i remove all the recipes and add them again one by one . I had tried that earlier but didn’t work though

I’m not 100% sure, but I would start by going through your inventory items and make sure that a warehouse is set for all items and also that the warehouse defined exists.

Deciphering crash logs is not really something we can teach anyone. It takes experience to be able to read them and pick out things that are clues. You need a very very intimate understanding of sambapos and how it works to rally understand crash logs. Even then sometimes crash logs can’t show the real picture it’s just snippets.

Thankyou all ,@ Jesse the whole point is just to have some clue a reseller, you need to sell something that you really understand.
I going through my inventory items and i have noted some recipes that are wrongly done,

Yes and that is why I said its really hard to teach it. But what would you like to know about crash logs in particular?

That tells you its something to do with inventory transaction documents.
Typically when you have an issue with inventory transaction documents it’s going to be a recipe somewhere most of the time.

From experience working with SambaPOS inventory transactions do not crash very often and there are only a handful of ways to cause a crash. Thats where the experience part comes in. Its hard to teach that. But someone that is familiar with that could look at a crash log like what you provided and immediately understand it is probably a recipe somewhere.

Eventually once you have broken sambapos enough you get where the crash logs start to make more sense. I have crashed sambapos so many times its not even funny.

1 Like

perfectly understood sir, getting the skeletal view of the error before running to the forum to report the matter was my request. You have addressed it and am contended thankyou