Messages during Posting and Saving

When I attempt to save/post my A/P transaction, I get the following message: "At least one detail transaction line to Accounts Payable - Vendor type account is required for this document." What is wrong?

You are missing an "A/P type" General Ledger account in your invoice. If you are using what you believed to be an A/P type account, check the account type by printing the Reports>Lists>Chart of Accounts report. You must use an A/P type of account, since this is the account type that is tied to the subledger.

I try to save/post my A/P invoice and get the following message: "The net of the Accounts Payable - Vendor detail transaction lines does not equal the document amount." What can I do?

Your document amount must be equal to the net of transactions coded to all A/P type accounts. Review your debits and credits to make sure they are correct and that the net transactions to the A/P type of account(s) is equal to the amount of the invoice.