Forum Discussion

KESAu's avatar
KESAu
Contributing User
3 years ago

System.InvalidOperationException - Payment Summaries

Hello, 

 

I am trying to complete payment summaries for last financial year, however I get to step 7 "Review the Payment Summaries" and I cannot proceed using the "Next" button without this error. 

 

AccountRight Application Error Report
=====================================
Application Version: 2022.3.24.6313
Application File Version: 2022.3.24.6313
Incident Id: 28fc4f79-9bb7-445f-b37c-b4980574fc9a
Time: Monday, 16 May 2022 5:57:09 AM

Code:
System.InvalidOperationException


Message:
Sequence contains no matching element


Stack Trace
----------------------------------------
1 : System.InvalidOperationException
----------------------------------------
System.InvalidOperationException: Sequence contains no matching element
at System.Core!0x06000b8b!System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate) +0x11
at Huxley.BusinessLayer!0x06002659!MYOB.Huxley.BusinessLayer.Entities.ElectronicReportingSpecificationDataTemplate.GetReportablePaymentSummaryField(String name, String generatedDescription) +0x46
at MYOB.ARLive.UI.PaymentSummaries!0x06000177!MYOB.ARLive.UI.PaymentSummaries.Helpers.PaymentSummaryValidationHelper.GetDollars(IElectronicReportingSpecificationDataTemplate electronicReportingSpecificationDataTemplate, String name, String generatedDescription) +0x6
at MYOB.ARLive.UI.PaymentSummaries!0x06000172!MYOB.ARLive.UI.PaymentSummaries.Helpers.PaymentSummaryValidationHelper.CalculateEtpTaxableComponent(IElectronicReportingSpecificationDataTemplate electronicReportingSpecificationDataTemplate) +0x0
at MYOB.ARLive.UI.PaymentSummaries!0x06000179!MYOB.ARLive.UI.PaymentSummaries.Helpers.PaymentSummaryValidationHelper.ValidateLines(IUIContext context, IUIEmployeePaymentSummary employeePaymentSummary, Int32 payrollYear, IElectronicReportingSpecificationDataTemplate dataTemplate) +0x3d
at MYOB.ARLive.UI.PaymentSummaries!0x06000399!MYOB.ARLive.UI.PaymentSummaries.Controllers.PaymentSummaryController.ValidateLines(UIEmployeePaymentSummary employeePaymentSummary) +0x0
at MYOB.ARLive.UI.PaymentSummaries!0x06000398!MYOB.ARLive.UI.PaymentSummaries.Controllers.PaymentSummaryController.Validate(UIEmployeePaymentSummary employeePaymentSummary) +0x0
at MYOB.ARLive.UI.PaymentSummaries!0x06000393!MYOB.ARLive.UI.PaymentSummaries.Controllers.PaymentSummaryController.ValidateEmployeePaymentSummary(UIEmployeePaymentSummary employeePaymentSummary, IUIViewPresenter presenter) +0x0
at MYOB.ARLive.UI.PaymentSummaries!0x0600048f!MYOB.ARLive.UI.PaymentSummaries.Controllers.PaymentSummaryController.<>c__DisplayClass142_0.<ValidateSelectedPaymentSummaries>b__2(UIEmployeePaymentSummary employeePaymentSummary) +0x0
at System.Core!0x06000b96!System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) +0x2c
at MYOB.ARLive.UI.PaymentSummaries!0x06000392!MYOB.ARLive.UI.PaymentSummaries.Controllers.PaymentSummaryController.ValidateSelectedPaymentSummaries(IUIViewPresenter presenter, Boolean launchEmployeeDetail) +0xf7
at MYOB.ARLive.UI.PaymentSummaries!0x060002aa!MYOB.ARLive.UI.PaymentSummaries.Forms.PaymentSummaryReview.ValidateSelectedPaymentSummaries(Type activatingPageType, Boolean wasCancelled) +0x29
at MYOB.ARLive.UI.PaymentSummaries!0x0600040d!MYOB.ARLive.UI.PaymentSummaries.Forms.PaymentSummaryReview.<>c__DisplayClass18_0.<OnPageLeaving>b__0() +0x0
at MYOB.ARLive.UI.PaymentSummaries!0x0600033b!MYOB.ARLive.UI.PaymentSummaries.Controllers.PaymentSummaryController.PerformActionWithWaitAnimationSpinner(Action action, Nullable`1 disableForm) +0x4a
at MYOB.ARLive.UI.PaymentSummaries!0x060002a8!MYOB.ARLive.UI.PaymentSummaries.Forms.PaymentSummaryReview.OnPageLeaving(PageLeavingEventArgs args) +0x26
at Huxley.UI.Forms!0x0600276c!MYOB.Huxley.UI.Forms.BaseForms.BaseViewWizard.OnCustomRight1Clicked(ButtonClickedArgs args) +0x12e
at Huxley.UI.Forms!0x060023fa!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.CallButtonClicked(Action`1 execute, ButtonClickedArgs args, String buttonText) +0x12
at Huxley.UI.Forms!0x06002376!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.btnCustom1_Click(Object sender, EventArgs e) +0x30
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) +0x62c
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.BusinessLayer => Huxley.BusinessLayer, Version=2022.3.24.6313, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:5333a5e56b0148ce864eddf519738ad5; A:1
MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2022.3.24.6313, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:b133582a2786478b8d26c375ad513584; A:1
MODULE: MYOB.ARLive.UI.PaymentSummaries => MYOB.ARLive.UI.PaymentSummaries, Version=2022.3.24.6313, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:84951f09688344bfbad17c1c10bd6940; A:1
MODULE: System.Core => System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:42583319e6d743228820150aa509b41b; A:2
MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:43eb03968e784a6cae5757b9b473b959; A:1

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

 

My company file is stored online and ends in 5295. Company file ID is 1.

 

It seems I have been having this issue for months with no resolution even after contacting MYOB over the phone.

 

If anyone can help that would be greatly appreciated!

 

Thanks 

  • SamaraM's avatar
    SamaraM
    Former Staff

    Hi KESAu 

     

    This error is typically caused by creating a payment summary after the payroll year has already been closed.

     

     There are 2 options as a workaround:

    1. If you used set up STP before 1/7/21 you can remove the finalisations, then run a payrun for $0 to send the information through (More detailed instructions: Changing a pay after finalising with Single Touch Payroll).
    2. You can restore a backup from before your first payrun of the 2022 payroll year (instructions: Restore your company file)

    If my response has answered your enquiry please click "Accept as Solution" to assist other users find this information.

    • KESAu's avatar
      KESAu
      Contributing User

      Hello Samara,

       

      We were not using STP before 1/7/21. 

       

      What implications does restoring a company file have on all other financial data?

       

      To complicate things further I have now set up STP and do not have an option to process the group certificates for the 20/21 financial year.

       

      Kind Regards

      • SamaraM's avatar
        SamaraM
        Former Staff

        Hi KESAu 

         

        When you Restore a backup of your company file, it will give you 2 options of where to save the file;  in a library on my computer or on my network or Online with Accountright Live.

         

        As long as you choose to save the file in thAccountRight library, it will not change your current file that is stored online. You can create your Payment Summary on that file, then once it has been created go back to using your live file. 

         

        If my response has answered your enquiry please click "Accept as Solution" to assist other users find this information.