I have an array “WIList” that needs to be processed using the UiPath Framework; but I am getting the error “Option Strict on disallows late binding” when assigning the element of the array to an Item, as per the following image.
Hi
The datatype of array and the In_TransactionNumber should match
if he array is of type string, then mention as In_TransactionNumber.ToString
and try once and moreover the type of out_TransactionItem is a datarow, so we need to make sure we are assigning it with a value of type datarow, but WList is a array
Cheers @mesalcan
@Palaniyappan
I have changed the type with “ToString”; but still getting the same error.
A bit of background.
WIList is the result of a select within a DataTable, I need to process each one of the elements of WIList using the UiPath Frameworl (I am learning how to use it). So, out_TransactionItem is each one of the objects of the array and I can have a new transaction only if the transaction number (in_TransactionNumber) is less than or equal to the index of the array element.
Fine then it should work actually
Let’s do one thing may be looks weird
Remove that assign activity and place a new assign activity and try to mention the left side value first with WIList(in_TransactionNumber) and right side next with Out_TransactionItem
But make sure that the type must match and if they match it will work sure
Like
Out_TransactionItem = WIList(in_TransactionNumber) Datarow = Array of Datarow (index in int32)
Kindly try this and let know
You were almost done
Cheers @mesalcan
It seems I had an issue with the DataTypes that seems to be solved. Now I am getting the below error.
“WIID” is one of the columns in the row of “out_TransactionItem”
For this
Fine we need to mention like this
because we cannot mention a column name in datarow variable
either we need to use a datatable variable like this out_TransactionID = io_TransactionData(“WIList”).ToString
Cheers @mesalcan
That’s excellent; but at this stage I do not have a datatable though. What I have is an element (out_TransactionItem) of a DataRow array (WIList), from where I need to extract one of the values (WIID).