Hey,
Not sure whether 1 can use get meta data activity to get the row count.
You can use the below options:
- Lookup activity: but there is restriction of 5000 rows
- Dataflow : [Source (csvfile) -> DerivedColumn (rowcount) -> Aggregate (count(rowcount)) -> sink (cache the output of aggregate)]
- use copy activity and copy the data from csv into a SQL table and use :
@activity('Copy data1').output.rowsRead