Forum Discussion

Tjaltjraak1's avatar
Tjaltjraak1
Experienced User
2 months ago

When trying to save Purchase Error message Code: System.Collections.Generic.KeyNotFoundException appears

Hi

 

I am unable to save a bill. The following error message comes up: "Something's gone wrong and AccountRight needs to Close".  Error details are listed below.

I have tried to save the purchase several times, with and without attachment. This is a common purchase that is made each month.  I even tried to make last month's purchase a recurring transaction and save it that way but the same error message keeps appearing. 

 

I have tried to find a solution on MYOB Community but cannot find anything regarding this error.

 

Thank you for your assistance.

 

Error details:

 

AccountRight Application Error Report
=====================================
Application Version: 2024.9.1.8
Application File Version: 2024.9.1.9
Incident Id: 5b28e021-44d1-4418-977c-3248a27e678c
Time: Friday, 8 November 2024 3:54:51 PM

Code: 
System.Collections.Generic.KeyNotFoundException


Message: 
The given key was not present in the dictionary.


Stack Trace
----------------------------------------
1 : System.Collections.Generic.KeyNotFoundException
----------------------------------------
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at mscorlib!0x0600584e!System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +0x27
   at mscorlib!0x06005859!System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +0x1b3
   at Huxley.Service.Gateway!0x06001a40!MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments)
   at Huxley.Service.Proxy!0x06001527!MYOB.Huxley.Service.Proxy.Services.ProxyPurchaseContainerService.ProcessContainer(IPurchaseContainer container, IEnumerable`1& results, Int32& savedId, Int32& savedCardId, String& savedEventId, Guid& savedLifecycleUid, Guid& savedPurchaseUid) +0x0
   at Huxley.UI.Decorators!0x06002e6c!MYOB.Huxley.UI.Decorators.Services.DecoratorServiceMYOBHuxleyApplicationServicesContainerAPIIPurchaseContainerService.MYOB.Huxley.ApplicationServices.Container.API.IPurchaseContainerService.ProcessContainer(IPurchaseContainer container, IEnumerable`1& results, Int32& savedId, Int32& savedCardId, String& savedEventId, Guid& savedLifecycleUid, Guid& savedPurchaseUid) +0x64
   at Huxley.UI.Model!0x060039b8!MYOB.Huxley.UI.Model.Context.EnterPurchaseContext.ExecuteProcessContainerWithValidation(IPurchaseContainer container, List`1 validationResults) +0x40
   at Huxley.UI.Model!0x06003bc1!MYOB.Huxley.UI.Model.Context.Base.UIContextProcessContainer`2.InvokeContainerUpdate() +0x3a
   at Huxley.UI.Model!0x06003bbd!MYOB.Huxley.UI.Model.Context.Base.UIContextProcessContainer`2.ProcessContainerObject() +0x12
   at Huxley.UI.Controllers!0x060011af!MYOB.Huxley.UI.Controllers.Base.BaseControllerBusinessObject`5.SaveObjectContainer() +0x19
   at Huxley.UI.Controllers!0x06001196!MYOB.Huxley.UI.Controllers.Base.BaseControllerBusinessObject`5.SaveChanges(IEnumerable`1 entitiesToSave) +0x1a
   at Huxley.UI.Forms!0x060033b1!MYOB.Huxley.UI.Forms.BaseForms.BaseViewBusinessObject.SaveChanges(IEnumerable`1 entitiesToSave) +0x52
   at Huxley.UI.Forms!0x060033af!MYOB.Huxley.UI.Forms.BaseForms.BaseViewBusinessObject.SaveChanges(IUIObject objectToSave) +0x10
   at Huxley.UI.Forms!0x0600101e!MYOB.Huxley.UI.Forms.Purchases.EnterPurchasesBase.OnCustomRight1Clicked(ButtonClickedArgs args) +0x73b
   at Huxley.UI.Forms!0x06000fd3!MYOB.Huxley.UI.Forms.Purchases.EnterPurchases.OnCustomRight1Clicked(ButtonClickedArgs args) +0x33
   at Huxley.UI.Forms!0x06003137!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.CallButtonClicked(Action`1 execute, ButtonClickedArgs args, String buttonText) +0x12
   at Huxley.UI.Forms!0x060030b3!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.btnCustom1_Click(Object sender, EventArgs e) +0x30
   at System.Windows.Forms!0x06001167!System.Windows.Forms.Control.OnClick(EventArgs e) +0x19
   at DevExpress.XtraEditors.v17.1!0x06000d4f!DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e) +0x2e
   at DevExpress.XtraEditors.v17.1!0x06000d48!DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e) +0x1d
   at System.Windows.Forms!0x0600124e!System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) +0x184
   at System.Windows.Forms!0x0600125e!System.Windows.Forms.Control.WndProc(Message& m) +0x49f
   at DevExpress.Utils.v17.1!0x06002708!DevExpress.Utils.Controls.ControlBase.WndProc(Message& m) +0x2e
   at DevExpress.XtraEditors.v17.1!0x06000256!DevExpress.XtraEditors.BaseControl.WndProc(Message& msg) +0x0
   at System.Windows.Forms!0x06006400!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0
   at System.Windows.Forms!0x06006403!System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) +0x8e
   at System.Windows.Forms!0x0600314e!System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) +0x25
==========
MODULE: DevExpress.Utils.v17.1 => DevExpress.Utils.v17.1, Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a; G:b8c34c059b804930811d5f6d50999b6c; A:1
MODULE: DevExpress.XtraEditors.v17.1 => DevExpress.XtraEditors.v17.1, Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a; G:6df94e55f5bd4444b910d4b2a37076a4; A:1
MODULE: Huxley.Service.Gateway => Huxley.Service.Gateway, Version=2024.9.1.8, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:b5c2a151f3784bc79e4e812ec47b3012; A:1
MODULE: Huxley.Service.Proxy => Huxley.Service.Proxy, Version=2024.9.1.8, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:293713d4b79c45f48dd3a1aeb5564d9a; A:1
MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2024.9.1.8, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:64886605db2b4ad3a7e0820bf1ee0528; A:1
MODULE: Huxley.UI.Decorators => Huxley.UI.Decorators, Version=2024.9.1.8, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:27e66223b2b547cfa205ae1c38bdeb2a; A:1
MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2024.9.1.8, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:37ab4b5484534c7fa018a0ba9d714c88; A:1
MODULE: Huxley.UI.Model => Huxley.UI.Model, Version=2024.9.1.8, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:bece291f87de45a7a08e7ebb64e0c50d; A:1
MODULE: mscorlib => mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:5347807d48464727a478c1d8e79ba583; A:2
MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:705b915100924d21bde2f5344b7a3325; A:1

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

 

  • Hi Tjaltjraak1,

     

    Thanks for sharing the error log details! To fix this, let's start with some troubleshooting steps. First, clear your AccountRight cache. If that doesn't work, go ahead and uninstall and then reinstall AccountRight. Just make sure to back up your file before you start troubleshooting.

     

    If the error persists after trying these steps, you'll need to get in touch with our support team since this issue is more complex and might need a repair from our team. You can use our virtual assistant MOCA to connect with a live chat agent or submit a support ticket via MyAccount.

     

    Cheers,

    Princess

    • Tjaltjraak1's avatar
      Tjaltjraak1
      Experienced User

      Thank you for your reply.

       

      Another staff member tried to enter the invoice today and received the same error message.  We have MYOB software downloaded on each computer and do not use a server version.

       

      This appears to be a MYOB issue for which we require MYOB support.  I will contact the support team soon.