Conversion from string "undefined" to type 'Integer' is not valid.