WS client error "Input String was not in a correct form
Posted: Tue Feb 05, 2013 10:07 pm
I have requirement to use webservice to send data to target system, my input source is flat file (.csv). While importing webservice method itself I got error message, so I followed manual xml meta data importer to import the data, it imported all columns with Varchar of length 255. I had peek to view the xml message, it looks good. I have 5 columns of data type of int and small int in the service xsd, those columns has valid integer value or blank. But DS is throwing below error:
APT_CombinedOperatorController,0: Fatal Error: Fatal: 0026`:`com.ascentialsoftware.wsclient.ServiceInvocationException: Service invocation exception: <ns1:Fault xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/1 ... aultstring xml:lang="en-US" xmlns:xml="http://www.w3.org/XML/1998/namespace">The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:Touch. The InnerException message was 'There was an error deserializing the object of type WinwatcherBL.Import_TouchLog. The value '' cannot be parsed as the type 'Int32'.'. Please see InnerException for more details.</faultstring><detail><ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07 ... rviceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HelpLink i:nil="true"/><InnerException><HelpLink i:nil="true"/><InnerException><HelpLink i:nil="true"/><InnerException><HelpLink i:nil="true"/><InnerException i:nil="true"/><Message>Input string was not in a correct format.</Message><StackTrace> at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Xml.XmlConverter.ToInt32(String value)</StackTrace><Type>System.FormatException</Type></InnerException><Message>The value '' cannot be parsed as the type 'Int32'.</Message><StackTrace> at System.Xml.XmlConverter.ToInt32(String value)
APT_CombinedOperatorController,0: Fatal Error: Fatal: 0026`:`com.ascentialsoftware.wsclient.ServiceInvocationException: Service invocation exception: <ns1:Fault xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/"><faultcode xmlns:a="http://schemas.microsoft.com/net/2005/1 ... aultstring xml:lang="en-US" xmlns:xml="http://www.w3.org/XML/1998/namespace">The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:Touch. The InnerException message was 'There was an error deserializing the object of type WinwatcherBL.Import_TouchLog. The value '' cannot be parsed as the type 'Int32'.'. Please see InnerException for more details.</faultstring><detail><ExceptionDetail xmlns="http://schemas.datacontract.org/2004/07 ... rviceModel" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><HelpLink i:nil="true"/><InnerException><HelpLink i:nil="true"/><InnerException><HelpLink i:nil="true"/><InnerException><HelpLink i:nil="true"/><InnerException i:nil="true"/><Message>Input string was not in a correct format.</Message><StackTrace> at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Xml.XmlConverter.ToInt32(String value)</StackTrace><Type>System.FormatException</Type></InnerException><Message>The value '' cannot be parsed as the type 'Int32'.</Message><StackTrace> at System.Xml.XmlConverter.ToInt32(String value)