customer ledger entry doubt

Hi,

Iam getting the error " Customer ledger entry no. XXXX does not have an application entry " when trying to unapply the invoice entries

Sounds as though you are trying to unapply an entry that is not applied to anything, or you have migrated data in incorrectly and this is a result of that.