Better message when ext. relation name is unknown
Add extra debug code to find ext. problem