Error when selecting an empty dataset.