POS Closing Failed>Could not find Row #1: POS Invoice: SINV-25-00054[POS Closing Entry, ERPNext v15]

Current Issue with POS Flow in ERPNext

I’m currently working with the POS module. So far, I’ve completed the following steps:

  • Created a POS Profile
  • Created a POS Opening Entry
  • Made transactions and generated Sales Invoices
  • Deleted some Sales Invoices from SINV-25-0001 to SINV-25-0028 from Deleted Documents

Now, while trying to create a POS Closing Entry, I’m encountering the following error:

POS Closing Failed
Could not find Row #1: POS Invoice: SINV-25-00054

It seems the system is still referencing a deleted Sales Invoice. Please advise on how to resolve this.