Integration error "System.FormatException: Input string was not in a correct format"
This KB is for Internal Purpose Only for CitiXsys
Environment :
iVend 6.6 /6.5 Update 5 with SAPB1
Problem Statement :
Facing the following Integration issue when integrating Item update events from SAP to iVend. Below is the error:
System.FormatException: Input string was not in a correct format. 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.Convert.ToInt32(String value) at ReplicationSBOIntegrationWinSer.IntegrationObjects.Item.GetItemPrice(String ItemCode, Int64 WarehouseKey) at ReplicationSBOIntegrationWinSer.IntegrationObjects.Item.Replicate(Direction From, Direction To, Int32 DatasetRowID) at ReplicationSBOIntegrationWinSer.Integrator.MainStart(DateTime LastRetryAt, Boolean& Retried)
Symptoms :
Not Applicable
Resolution/Work Around :
The Retail Price-List code was changed by a user in the iVend mistakenly, putting an āIā instead of the number ā6ā that originally was the Price list code. Means, SAP has the Price-list Code "6" however it is "I" in iVend now, this is why the Integration monitor was throwing a data type error.
So in the Management Console, replace the "I" code with "6" again and It should start integrating.
Below is the incorrect Code Screenshot in iVend which needs to revert "6"
Recommendations /Suggestion :