An error occured while assigning DataTable.RowCount. It says RowCount is not a member of the data table. How to solve this error?
Hello @Ramiz ,
Welcome to UiPath Forum!
To get the number of rows in data table use :
DataTable.Rows.Count
this expression will return you the integer value.
Regards,
Rohith
Variable type of the DataTable is → system.data.DataTable
Kindly check the variable type
Hi @Ramiz
Open the workflow in a in notepad and add this line:
System.Data.DataSetExtensions
in the AssemblyReference list.
Look at this for more clarification.
4 Likes
Hello @Ramiz
Suppose consider YourDT as your Datatable variable and if you need to get the number of rows in it, you can do it as below.
YourDT.Rows.Count
Thanks
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.