Error message when you process a message in eConnect: "System.FormatException: Input string was not in a correct format"


SYMPTOMS

When you process a message, you receive the following error message from the eConnect Incoming Service:

 

System.FormatException: Input string was not in a correct format.

CAUSE

This problem occurs because the incoming message contains a non-numeric value in at least one field that has a numeric data type.

RESOLUTION

To resolve this problem, review the "Incoming Schemas" topic in the eConnect Help. This topic contains a list of the data types for each field in the schema that you are using. Then, modify the value of any fields that have a numeric data type and that contain a non-numeric value in the XML data of your message.