AccountRight Application Error Report ===================================== Application Version: 2023.4.1.6 Application File Version: 2023.4.1.8 Incident Id: 3a7cd2f6-9151-48fe-8299-3346a136e2f1 Time: Monday, 5 June 2023 11:19:54 AM Code: DataException (10000) Message: (DataException): Stack Trace ---------------------------------------- 1 : MYOB.Huxley.API.HuxleyDataException ---------------------------------------- MYOB.Huxley.API.HuxleyDataException: (DataException): ---> MYOB.Huxley.API.HuxleySqlCeException: The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK_ReportablePaymentSummaryFieldPayrollCategoryMap_PayrollCategory ] --- End of inner exception stack trace --- at mscorlib!0x0600572c!System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +0x27 at mscorlib!0x06005737!System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +0x1b3 at Huxley.Service.Gateway!0x06001a29!MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments) at Huxley.Service.Proxy!0x06001d56!MYOB.Huxley.Service.Proxy.Services.ProxyWagesPayrollCategoryService.DeleteItem(Int32 itemToDelete) +0x0 at Huxley.UI.Decorators!0x060010ef!MYOB.Huxley.UI.Decorators.Services.DecoratorServiceMYOBHuxleyAPIServicesPayrollAUIWagesPayrollCategoryService.DeleteItem(Int32 itemToDelete) +0x4e at Huxley.UI.Controllers!0x060006ac!MYOB.Huxley.UI.Controllers.EasySetupAssistants.ESAPayrollsController.DeletePayrollCategory(UIObject item) +0x5d at Huxley.UI.Forms!0x06000ce0!MYOB.Huxley.UI.Forms.EasySetupAssistants.Payroll.ESAPayrollsCategoryList.btnDelete_Click(Object sender, EventArgs e) +0x28 at System.Windows.Forms!0x06000e1d!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!0x06000f04!System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) +0x184 at System.Windows.Forms!0x06000f14!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!0x0600572a!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0 at System.Windows.Forms!0x0600572d!System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) +0x8e at System.Windows.Forms!0x06002df3!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=2023.4.1.6, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:7eabf5e345a54bda9e60f2f851dfffc1; A:1 MODULE: Huxley.Service.Proxy => Huxley.Service.Proxy, Version=2023.4.1.6, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:48c810f03de24a7da905fe4144415b2f; A:1 MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2023.4.1.6, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:e25181dffa2441e7a19a62c2d6ca3501; A:1 MODULE: Huxley.UI.Decorators => Huxley.UI.Decorators, Version=2023.4.1.6, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:239d2c9632434f40aab1a34c7f81ea0b; A:1 MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2023.4.1.6, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:f5aedf8050af441d8de599b695abe170; A:1 MODULE: mscorlib => mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:b27c0c3f693e4bfea3163c91ef1aaa5f; A:2 MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:543c9eec2a3d4078aab81f89e0020776; A:1 ---------------------------------------- 2 : MYOB.Huxley.API.HuxleySqlCeException ---------------------------------------- MYOB.Huxley.API.HuxleySqlCeException: The primary key value cannot be deleted because references to this key still exist. [ Foreign key constraint name = FK_ReportablePaymentSummaryFieldPayrollCategoryMap_PayrollCategory ] ----------------------------------------