New to UIPath, but not to RPA, I am trying to “manipulate” data from a single filtered column in a DataTable, but is thrown the error “Invoke code: Exception has been thrown by the target of an invocation.”.
Using DataTable “ExtractedSymbols”, I use Invoke Code to run the following VB.NET Code:
Dim dt As New Data.DataTable("ExtractedSymbols") Dim dtRandomRows As New Data.DataTable("RandomSymbols") dtRandomRows = dt.Clone Dim rDom As New Random Dim i As Integer For ctr As Integer = 1 To 15 i = rDom.Next(1, 20) dtRandomRows.Rows.Add(dt.Rows(i)) Next dtRandomRows.AcceptChanges() Invoked code arguments used
Name: Direction: Type: Value:
ExtractedSymbols In DataTable RandomSymbols
Can someone please help me figure out what is wrong in the above scenario?