Gidon_Albert
6 months agoContributor II
DataTable vs. xfDataTable
In a data connector rule, we need to run the api.Parser.ProcessDataTable funciton that can process a DataTable.
However, using SIC funciton, we have to get data from the source into a XFDataTable:
Dim xfDT As xfDataTable = Nothing
.
.
.
xfDT = New xfDataTable(si,objJobStatus.RemoteJobResult.ResultSet,Nothing,1000)
The XFDataTable is created and we can see that it has rows in it.
We convert the XFDataTable to a DataTable using:
Dim dt As datatable = xfdt.ConvertToDataTable(si)
When we run the new DataTable thorugh the ProcessDataTable, we get an error: "Data load Ado.Net DataTable is invalid or null."
When we try to count the rows on the DataTable, we get an error: "Object reference not set to an instance of an object"
Is there any information out there about the differences between a DataTable and a xfDataTable? Is there another way to convert a xfDataTable to a DataTable that will no result in errors?