Fixed #20337 -- Clarified error message when database relation is not allowed.