Throws an exception if does not found any record