Your problem is CUSTOMERS UniqueID is char(17) and TRANSHEADERS UniqueID is int
SQL Server is trying to implicitly convert CUSTOMERS UniqueID to int to match against TRANSHEADERS UniqueID but at least one row in CUSTOMERS has a blank UniqueID
Far away is close at hand in the images of elsewhere.
Anon.