Skip to main content

Get Files Rows Count

Description

Get Files Rows Count is a step in the Input Plugin for Process Studio Workflows. Get Files Rows Count step counts the number of rows in a file or a set of files.

Note: This step only works with text/delimited file types.

Configurations

No.Field NameDescription
1Step nameSpecify the name of the step as it appears in the workflow workspace. This name has to be unique in a single workflow.
Filename from field:
1Get filename from fieldEnable this checkbox if you need to get fieldname from a field.
2Filename from fieldIf ‘Get filename from field’ is checked choose field containing the file name.
Selected files:The following fields are enabled when Get filename from field checkbox is not enabled.
1File or directoryBrowse for the file or directory and Add to the list of selected files.
2Wildcard(RegExp)If directory is chosen you could filter the files in the directory using regular expression.
3Exclude wildcardIf directory is chosen you could exclude files with this Regular Expression.
4RequiredChoose Y (from Y/N) if File/Directory is required.
5Include subfoldersChoose Y (from Y/N) to include subfolders.
Content Tab:
Rows Count Field:
1Rows Count FieldnameSpecify a fieldname in which to store the row count.
Row Separator:
1Row Separator TypeSpecify a Row Separator Type from the list.
2Row SeparatorIf Row Separator Type is ‘Tabulation’ provide Row Separator.
3Perform Smart CountEnable this option to identify data after a separator. So that the rows count is not based simply on number of separators but also checks if there is data after separator.
Additional fields:
1Include files count in output?Enable checkbox to include no. of files in output.
2Files Count fieldnameIf the above checkbox is selected provide fieldname to store files count.
Add filename to result:
1Add filename to resultAdds the CSV filename(s) read to the result of the workflow. Filenames in result is a unique list being kept in memory that can be used in the next steps or parent workflow steps or parent process entries.