NIFI:Merging Flowfiles by filename in MergeContent processor

Viewed 1390

I have flowfiles named as (1,3,4,5 and etc) i use this ${filename} attribute for invoking online service, then i got big response and split it line by line but at the end i need to merge my flowfiles based on their name i think mergecontent doesn't work prperly i use Correlation atribute name -filename and i have also increased minimum and maximum number of entries but nothing helped me here is my workflow: enter image description here

also there is several subject i am interested in:

  1. I think that main reason my mergecontent doesn't work properly is that my file names don't go one after another , can this bean real reason?
  2. Can you reccomend me any better solution for such task?
1 Answers

Simple trick, you should be using filename as its asking for correlation attribute name instead of ${filename}

enter image description here

PS: i guess this answer is 2years late, well you never know whom it will help :P

Related