I am trying to sum a datatable column using AsEnumerable.Sum. It seems .Sum is not showing up as a member of AsEnumerable anymore.
This worked in a prior project. Now if I copy and paste the activity from when it worked, it will run fine, but if I try to edit or click on the assignment, I get the blue exclamation sign and the project won’t run. Here is my full expression:
MyDatatable.AsEnumerable().Sum(Function(row) row.Field(Of Double)(“Gross”))
(The parenthesis after AsEnumerable was how I got it working previously and still works so long as I copy/paste the whole activity from without ever clicking inside a field to edit … as soon as I do, it breaks!)
I can see this was a bug in the past that was supposed to be resolved:
Has it broken again?
(PS The solution in above thread isn’t working for me.)