Hi,
I am using NiFi 1.26.0 and having a flow with combination of ListFile and FetchFile.

Basically i have three files in my local directory (test_1.txt, test_2.txt,test_3.txt). I have to fetch only one file (ex:test_1.txt) for further process.
Based on regex listFile list's all three files.


But facing issue in fetch file. Instead of fetching only one file, it tried to fetch all three files listed by listFile processor and giving output as three files instead of one file, but content of all three files are same as content of file mentioned in fetchFile configuration (test_1.txt)


In data provenance could see it is trying to fetch the files which is not mentioned in fetchFile configuration and after fetching the files it modifies the content.

How can i fix this. Please help.