How to confirm the JV if ‘Invalid account code’ error occurs on confirmation?

Cause:
If users have not entered the sundry code for the selected account code in debit or credit line item then, System will show the error ‘Invalid account code’ or ‘This type of account code must have a sundry code’ on confirming the record.
Remedies:
A JV must include a debit and a credit, so that it is balanced and a description with enough detail.
Users should ensure that the account code entered in debit or credit line items are valid. If the account code is mapped with the sundry code for the JV transaction then users should enter the type of sundry and sundry code in the details line items analysis depending on the reference series selected in the header .
Read more : 330