Value of type ‘1-dimensional array of System.Data.DataRow’ cannot be converted to ‘System.Data.DataRow’

Level 1 - Foundation Training - 2018.3 - Lesson 3 - Data Manipulation file

Hello Everyone,
i have checked the forum and other sites but i have failed to find solution for my issue.
When i download the example files, its works fine, but when i try to recreate on my own i face the following issues:

  1. Properties window / looks different and missing the TypeArguments option to set.
  2. the name of the For each loop is also different (Uipath.Core.Activities.ForEach<System.Data.Datarow> vs. Uipath.Core.Activities.ForEach)

I expect the version difference between the example files (2018.3) and the current version (2019.6.0), but i have failed to solve this issue.

I could Read CSV, and Assign with variables:
sampleData as System.Data.Datatable
filteredRows as System.Data.Datarow (Array of System.Data.Datarow)

But after i cant loop over the filteredRows.

Is anyone can help, (and understands my issue) ?
I can provide screenshots if need.


Okay, well, after 3 hours… and right after i posted this… i found the fix for issue…
Available / Workflow / Control / For Each
insted of the…
For Each as Programming/Data Table / For Each row

finally :S

1 Like

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