Error: Row in XML view [{XML view name}] is not valid because the primary key column [{column name}] and the foreign key column [{column name}] are different types.
The primary key and the foreign key must be the same datatype.
Set the primary key and the foreign key columns to the same datatype.