Iterate through each sheet and get the total rows in same excel

I need to iterate through all the sheet using “for each sheet” activity however am not able to then understand how do I take count of total rows as “CurrentSheet.RowsCount” is not working.

Hi @A-Ui ,

Could you check with the below :

CurrentSheet.DataTableValue.RowCount

@A-Ui

use this

sheetDataTable.Rows.Count

Assign throws an exception
“assign: exception has been thrown by the target of an invocation”.

Can’t find sheetDataTable in this “for each sheet” activity

@A-Ui ,

Could you show us the Implementation done and if possible the Excel sheet data (Or just the count of rows present) ?

Implementation from our End :

Tried the same workflow still that exception was thrown. Sorry couldn’t share the sheet.
My excel has 25, 63, 44 and 48 rows in respective sheet.

@A-Ui

you are not able to find the For Each Sheet activity right

can you once upgrade or downgrade the system.activities version and check

Didn’t work, tried both upgrade and downgrade. Tho any specific version you would recommend?

@A-Ui ,

We still do not have a confirmation on your workflow implementation and the Error, Is it possible to share screenshot of the workflow done till now (No need of Input Excel)?

@A-Ui

can you tell the version you are using ?

or
can you share the screenshot of the activity which you have used

for the expression CurrentSheet.DatatableValue.rowscount


Here is a screenshot of the workflow

I tried Read range from classic and then output the data into datatable.
Used dt.rows.count to display - works under “for each sheet” activity

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