I'm getting this error from the last 7 days on the invoice/bill, once I validate the invoice/bill and register the payment this error came You can only reconcile posted entries.
If I create a payment from Accounting -> Customer -> Payments and then I reconcile with invoice it works ok no error appears.