Raise error when entity cannot be found in namespace