Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Adding newline when using mergecontent processor to combine csv flowfile

avatar

I am afraid this is very basic question but could not find an answer after spending a couple of hours. So I post the question here.


I'd like to add newlife when merging different csv flowfile with MergeContent so that output would be in right shape.

I stumbled upon a couple of articles but none of them did not work like the following link.

https://stackoverflow.com/questions/34257508/apache-nifi-mergecontent-processor-set-demarcator-as-ne...

Here is my configuration.

I tried shift+enter, \n and so on, but could not get the output which I need..

I super appreciate if you tell me how to do this.

108861-1558514788632.png

Thank you in advance

3 REPLIES 3

avatar

The above was originally posted in the Community Help Track. On Wed May 22 16:52 UTC 2019, a member of the HCC moderation staff moved it to the Data Ingestion & Streaming track. The Community Help Track is intended for questions about using the HCC site itself.

Bill Brooks, Community Moderator
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

avatar
Expert Contributor

zzeng_0-1586268295257.png

 

1) Demarcator, use

${literal('
'):unescapeXml()}

2) Delimiter Strategy = Text

 

 

avatar
Explorer

Thanks, you saved my day.

Its also useful for merging multiple json files in a single jsonlines file.

cool!!