How to fix 'AsEnumerable' is not a member of 'System.Data.DataRow' in UiPath?

Hi Team,

It isn’t System.Data.DataTable because it was solution that was showing up when I checked with google.

image

strTotalSum = requiredRow.AsEnumerable.Sum(Function (x) Convert.ToDouble(x(“Net Volume”).ToString.Trim)).ToString()

image

Hope the info is clear enough.

Thank you

add the namespace

system.data.datasetextensions


How?
They aren’t giving me any options

It is there already

Then i assume that bug is not yet fixed

Below thread will give you the idea.

That was a known issue which was supposed to be fixed earlier this year.

@loginerror @Pablito can comment on whether this was taken into consideration.

Funny thing is I’ve two projects in one it is working and in the other it isn’t working

They’re suggesting that I should uninstall studio and then reinstall it again
And that’s along process for because am not the admin of the machine I am using

yes that confirms bug is still there

Thanks for highlighting.

Regarding troubleshoot, I know it’s weird but

Just delete that activity and add a new one ro check

just simply closing the file completely and then trying to open can also handle this issue.

Also we can check the json foe the namespace part doe two process (working one and this one with error) to verify that are identical

The one that isn’t working has many namespaces compared to one that is working

Why are you applying AsEnumerable on a datarow and not the datatable?

1 Like

Perfect @Charbel1
I wasn’t seeing that now it’s working super fine
No it makes a lot of sense that why google also didn’t know the answer

Thanks

No need!

Have a great day.

@Kakooza-Allan-Klaus

In the old version there is an issue, check below for your reference

But this was rectified in new versions

Hope this may help you

Thanks

we had a troubleshoot call and ee also confirmed on this topic, this issue is not yet resolved

Shiver weird solutions worked for us and along with that, you can also add that namespace in the Json. Just open the project.json in notepad and in the namespace section add the desired namespace

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.