If repository_id is not available raise RepositoryError. This is a requirement for atom_match(), that handles the same exception.