azelix
azelix

Reputation: 1277

MergeContent not synchronized NIFI

Im using MergeContent processor in Nifi to merge two Flowfiles into one big JSON Object, what I have done so far is the following : enter image description here So my merge content is done using a UUID attribute

enter image description here

My problem is this dataflow sometimes give me only one of the two flowfiles and another problem is how can I be sure that my flowfile of mergeContent is in a fixed order.

Upvotes: 1

Views: 1344

Answers (1)

khushbu kanojia
khushbu kanojia

Reputation: 250

I also faced this problem as I was also getting multiple files after merging using 'MergeContent' processor.

Then I tried with

  1. 'Merge Strategy' as 'Defragment'
  2. 'Merge Format' as 'Binary concatenation'
  3. 'Attribute Stretegy'as Keep only common attributes And using this configuration I successfully created only one file in my output folder.

You can also try this hope it will work for you also. enter image description here

Upvotes: 3

Related Questions