Tina, If the intent is to split the data up just so that you can route each line differently, and then re-assemble the data, I would recommend that you look into RouteText. This will likely give you the capability you need but does so without having to split the data up and re-merge it, so your dataflow is simpler and probably quite a bit more efficient.
Thanks -Mark On Dec 13, 2017, at 3:41 PM, Joe Witt <[email protected]<mailto:[email protected]>> wrote: id recommend you look into MergeRecord for this. On Dec 13, 2017 3:35 PM, "tzhu" <[email protected]<mailto:[email protected]>> wrote: Hi, I want to use MergeContent to combine single-lined flowfiles resulted from a text file getting split and routed, and record the number of lines. I have a few text files. First, the text gets split into single lines by SplitText, and then the flowfiles are routed by RouteOnContent. I'm stuck on the part to merge the lines back into one file by filename and route property, and sum up merge.count to get the number of lines in the file. What should I do? Any help is appreciated. Thanks, Tina -- Sent from: http://apache-nifi-users-list.2361937.n4.nabble.com/
