I am trying to fetch the row count in an excel file. I have attached the workflow and the excel file as well for your reference. Kindly advise what shall be the issue.
I Would also like to inform you that it has got stuck in the file for hours together but not returning anything
It would be highly appreciable if you provide your inputs ASAP.
Hi
Hope these steps could help you resolve this
— use excel application scope activity and pass the file path as input
—use a read range activity and get the output with a variable of type datatable named outdt
And make sure that the property Add Header is enabled so that the first row is taken as header
— now use a writeline activity like this Outdt.Rows.Count.ToString
Where Outdt has a method called Rows and Count is a method of Rows which gives us the number of rows in the datatable
Simple isn’t it
Hope this would help you
Kindly try this and let know for any queries or clarification
Cheers @vankashok