Microsoft Dynamics 365 Business Central sync error: Account Type must be equal to 'Posting' in Chart of Accounts: No.=XXXX. Current value is 'Begin-Total'

Why the sync error occurs

This error occurs when an account used on a bill in Cashflow360 is not set to Posting account type in Microsoft Dynamics 365 Business Central (MSDBC).

Accounts have to be type Posting to be used on purchase invoices in MSDBC.

How to fix the sync error

Make sure all accounts on the bill are set to Posting type in MSDBC and sync again.