Microsoft Dynamics 365 Business Central sync error: The field Country/Region Code of table Vendor contains a value that cannot be found in the related table (Country/Region)

Why the sync error occurs

This error occurs when a vendor is trying to sync to Microsoft Dynamics 365 Business Central (MSDBC) but the vendor's country is not in the countries/regions list in MSDBC.

How to fix the sync error

Add the vendor's country in MSDBC to the countries/regions list and sync again.