Raise an error if specified entity_type or entity does not exists