Causes
The error is due to the the registration of a bill referring to an account that doesn't relate to the group/account of customers/suppliers .
Solutions
Check the account and it's settings. For further information refer to the Setting up the accounts for Customers and Setting up the accounts for Suppliers pages.