throw an exception if no input data is set