Integration failure There is no row at position 0.

Integration failure There is no row at position 0.

Environment :

iVend 6.6 Patch With SAPB1 9.2 Localization Ecuador

Problem Statement :

There is POS sales integration failure from iVend to SAPB1 
Error message :
System.IndexOutOfRangeException: There is no row at position 0.
   at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
   at ReplicationSBOIntegrationWinSer.IntegrationObjects.Base.IntegrationBase.UpdateInvoiceCustomUserDefinedFields(Documents oDocument)
   at ReplicationSBOIntegrationWinSer.IntegrationObjects.Base.ARInvoice.CreateARInvoice(DataRow[] objDataRow, DataRow[] objDataRowSurcharges, DataSet ObjDataSetTransactionAttribute, DataSet ObjDataSetTransactionLineAttribute, Decimal passedRoundingAmount, Decimal& roundingAmount, Boolean& isRolledBack)
   at ReplicationSBOIntegrationWinSer.IntegrationObjects.Transactions.Replicate(Direction From, Direction To, Int32 DatasetRowID)
   at ReplicationSBOIntegrationWinSer.Integrator.MainStart(DateTime LastRetryAt, Boolean& Retried) || StackTrace:    at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)
   at ReplicationSBOIntegrationWinSer.IntegrationObjects.Base.IntegrationBase.UpdateInvoiceCustomUserDefinedFields(Documents oDocument)
   at ReplicationSBOIntegrationWinSer.IntegrationObjects.Base.ARInvoice.CreateARInvoice(DataRow[] objDataRow, DataRow[] objDataRowSurcharges, DataSet ObjDataSetTransactionAttribute, DataSet ObjDataSetTransactionLineAttribute, Decimal passedRoundingAmount, Decimal& roundingAmount, Boolean& isRolledBack)
   at ReplicationSBOIntegrationWinSer.IntegrationObjects.Transactions.Replicate(Direction From, Direction To, Int32 DatasetRowID)
   at ReplicationSBOIntegrationWinSer.Integrator.MainStart(DateTime LastRetryAt, Boolean& Retried)

Symptoms:

Not Applicable

Resolution/Work Around:

Such issue is fixed in updated iVend addon file.