Xero sync error: "Xml for post data was invalid, '', hexadecimal value 0x04, is an invalid character. Line xx, position x"

Why the sync error occurs

This error occurs when there's a special character contained in the bill attempting to sync to Xero.


How to fix the sync error

Review the bills causing the sync errors, remove any special characters and save, then sync again.