Throw Exception when no ID is given