Created 06-01-2021 03:46 AM
Created on 06-01-2021 08:42 AM - edited 06-01-2021 08:49 AM
I have used CSV file withCountText and it worked fine for me, Upon success it will writes an attribute name "text.line.count" with number of lines as value, attaching sample csv file which I used to test and it has 6 lines.
Created 06-01-2021 07:15 AM
You can use processor name CountText
Thank You.
Created 06-01-2021 08:22 AM
Hi @ckumar, Thanks for your help but I had used CountText but the problem is that I have csv files and I only see the number of files instead of counting the number of lines in the files.
Created on 06-01-2021 08:42 AM - edited 06-01-2021 08:49 AM
Created 06-01-2021 10:07 AM
if it's csv, use QueryRecordProcessor with csv reader
then just do SELECT COUNT(*) FROM FLOWFILE
Created 06-01-2021 02:19 PM
Hi @TimothySpann, What is the difference between CountText and QueryRecord. Can you detail the use of QueryRecord? Thanks
Created 06-01-2021 02:29 PM
CountText will count lines (\r\n).
QueryRecord will count # of records, even if it is two records on a line