ConnectWise 2016.6 introduced the "Single Invoice Un-batch and Re-batch".
Errors have presented when you use the 'Single Invoice Un-batch and Re-batch functionality, so it is strongly recommended that you do not use this function when updating invoices as the Invoices still needs to be deleted from the Accounting Interface > Open Batches in order to sync.
Recommendations:
It is strongly recommended that you do not use the 'un-batch' functionality.
Error Messages:
Error Message: A GLBatch already exists for INV#
Error Message: The following batches could not be deleted because they contain un-batched invoices.
Invoices which have been Un-batched and not deleted from Open Batches in the Accounting Interface will return the following error:
A GLBatch already exists for ####
and attempting to delete the Open Batch entry whilst the individual invoice is marked as Un-Batched will result in Error Message:

How to resolve the Error Message:
If you are trying to re-batch an invoice to Xero from the Accounting Interface and receive: Error Message: The following batches could not be deleted because they contain un-batched invoices.
1. Go back into the invoice
2. Click More > 'Re-Batch'
3. Go to the Account Interface
4. Click on Open Batches Tab
5. Click 'Actions'
6. Select Delete Batches
7. Log into your Accounting Package (Xero / QBO)
8. Locate the Invoice and removed any payments (if applicable)
9. Sync the record (the record will be updated in your Accounting Package (Xero / QBO)
10. Re-apply the payment.