Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

DataTable Column Sum not working after updating dependecies

$
0
0

Hi all,

Ran into a bit of a problem and i can’t quite figure it out.

Was using assign to perform select and sum on a datatable to extract a value i needed. Like this:

ExtractedValue = MyDataTable.AsEnumerable().Sum(Function(x) If(IsNumeric(x("MyColumn").ToString.Trim),CDbl(x("My Column").ToString.Trim),0)).ToString

The project was created sometime in 2019. Worked perfectly until today, when i decided to update dependencies, after which, i am getting the following error message for this assign activity:

" Compiler error(s) encountered processing expression …(the above expression)…Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class."

Does anyone have any idea what is causing this?
Thank you in advance for your answers and have a good one! :slight_smile:

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>