Forum Discussion

AndrewStephen's avatar
AndrewStephen
Valued Cover User
3 years ago

2022.2.1 Error Sequence contains no elements

Starting to see daily the following error message, which is really starting to annoy me.

The error can't be ignored too often as it will crash AR2022.2.1 with an "out of memory" error, resulting in the loss of work.

 

I am editing sales invoices at the item of the error

 

AccountRight Application Error Report
=====================================
Application Version: 2022.1.24.5785
Application File Version: 2022.1.24.5955
Incident Id: 3ecb521b-4d9c-4c87-ba82-3a220704e49a
Time: Wednesday, 9 March 2022 5:46:22 PM

Code:
System.InvalidOperationException


Message:
Sequence contains no elements


Stack Trace
----------------------------------------
1 : System.InvalidOperationException
----------------------------------------
System.InvalidOperationException: Sequence contains no elements

1 Reply

Replies have been turned off for this discussion
  • Komal_S's avatar
    Komal_S
    MYOB Moderator

    Hi AndrewStephen 


    This error can be caused by one or more items on the transaction having an on-hand quantity of zero. In order to fix it:

     

    1. Identify the item(s) with zero on-hand quantity on the transaction.

    2. Record an inventory adjustment to increase the items on-hand quantity above zero (quantity 0.01 or less) with the correct item cost ($ value) applicable to the quantity. Please use the correct item cost applied on the invoice. 3. Edit the invoice/bill.

    4. Record another inventory adjustment for the item to reduce it back to zero or delete the stock adjustment.