Exception Type: System.Reflection.TargetInvocationException while invoking code on datatable

I have copied the csv data to a datatable and now trying to extract the unique values from a column as shown below


and getting the below error

"Source: Invoke code

Message: Exception has been thrown by the target of an invocation.

Exception Type: System.Reflection.TargetInvocationException"

Have you tried using assign activity for the above code?

Yes, I tried that and found that it was not recognizing the Column Name…now the issue is resolved.

1 Like