This error is a result of having a Purchase Tax Type set on one or more line items on the Sales Order. Please check and ensure all line items on the Sales Order have Sales Tax Type and retry the sync. If there is a payment on the invoice, delete the payment first, edit the tax types as needed, and then retry the sync.