"Incorrect number of lines for batch xxx, entry yyy." in Sage 300

Summary

When Posting an AP Invoice batch, an Error batch is created. The Posting Error Journal reports:
Error: “Incorrect number of lines for batch xxx, entry yyy.”.

Cause: Data Corruption

Resolution

If possible re-enter the Invoice manually, and delete the Error batch.
If not able to re-enter the document, then data repair should be engaged to correct the transaction in the database.