<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Merging JSON flowfiles from 2 processors into one flowfile in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393633#M248511</link>
    <description>&lt;DIV class="c-virtual_list__item"&gt;&lt;DIV class="c-message_kit__background c-message_kit__background--hovered p-message_pane_message__message c-message_kit__message"&gt;&lt;DIV class="c-message_kit__hover c-message_kit__hover--hovered"&gt;&lt;DIV class="c-message_kit__actions c-message_kit__actions--default"&gt;&lt;DIV class="c-message_kit__gutter"&gt;&lt;DIV class="c-message_kit__gutter__right"&gt;&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;&lt;DIV class="p-block_kit_renderer"&gt;&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;&lt;DIV class="p-rich_text_block"&gt;&lt;DIV class="p-rich_text_section"&gt;hey all&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;I was just wondering what the best way is to merge 2 JSON flowfiles together. I have 2 processes which generate pretty much identical data but with a different source (so can’t do it as one process) and I’d like to merge them together into one JSON file if possible.&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Example data is something like...&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Process 1:&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "code": "ABC123",
    "product": "My Product",
    "prices": [
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist1",
        "abc": "14.74"
      },
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist2",
        "abc": "10.70"
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_block--no-overflow"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Process 2:&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "code": "ABC123",
    "product": "My Product",
    "prices": [
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist1",
        "xyz": "53.74"
      },
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist2",
        "xyz": "21.70"
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_block--no-overflow"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Desired Outcome:&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "code": "ABC123",
    "product": "My Product",
    "prices": [
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist1",
        "abc": "14.74",
        "xyz": "53.74"
      },
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist2",
        "abc": "10.70",
        "xyz": "21.70"
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="c-virtual_list__item"&gt;&lt;DIV class="c-message_kit__background p-message_pane_message__message c-message_kit__message p-message_pane_message__message--last"&gt;&lt;DIV class="c-message_kit__hover"&gt;&lt;DIV class="c-message_kit__actions c-message_kit__actions--above"&gt;&lt;DIV class="c-message_kit__gutter"&gt;&lt;DIV class="c-message_kit__gutter__right"&gt;&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;&lt;DIV class="p-block_kit_renderer"&gt;&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;&lt;DIV class="p-rich_text_block"&gt;&lt;DIV class="p-rich_text_section"&gt;There is actually an array of products, although I’ve only shown 1 example above.&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Thanks in advance for any help&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 18 Sep 2024 10:06:07 GMT</pubDate>
    <dc:creator>Crags</dc:creator>
    <dc:date>2024-09-18T10:06:07Z</dc:date>
    <item>
      <title>Merging JSON flowfiles from 2 processors into one flowfile</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393633#M248511</link>
      <description>&lt;DIV class="c-virtual_list__item"&gt;&lt;DIV class="c-message_kit__background c-message_kit__background--hovered p-message_pane_message__message c-message_kit__message"&gt;&lt;DIV class="c-message_kit__hover c-message_kit__hover--hovered"&gt;&lt;DIV class="c-message_kit__actions c-message_kit__actions--default"&gt;&lt;DIV class="c-message_kit__gutter"&gt;&lt;DIV class="c-message_kit__gutter__right"&gt;&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;&lt;DIV class="p-block_kit_renderer"&gt;&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;&lt;DIV class="p-rich_text_block"&gt;&lt;DIV class="p-rich_text_section"&gt;hey all&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;I was just wondering what the best way is to merge 2 JSON flowfiles together. I have 2 processes which generate pretty much identical data but with a different source (so can’t do it as one process) and I’d like to merge them together into one JSON file if possible.&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Example data is something like...&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Process 1:&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "code": "ABC123",
    "product": "My Product",
    "prices": [
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist1",
        "abc": "14.74"
      },
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist2",
        "abc": "10.70"
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_block--no-overflow"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Process 2:&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "code": "ABC123",
    "product": "My Product",
    "prices": [
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist1",
        "xyz": "53.74"
      },
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist2",
        "xyz": "21.70"
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_block--no-overflow"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Desired Outcome:&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[
  {
    "code": "ABC123",
    "product": "My Product",
    "prices": [
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist1",
        "abc": "14.74",
        "xyz": "53.74"
      },
      {
        "valid_from": "20180913 09:00:08",
        "name": "pricelist2",
        "abc": "10.70",
        "xyz": "21.70"
      }
    ]
  }
]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="c-virtual_list__item"&gt;&lt;DIV class="c-message_kit__background p-message_pane_message__message c-message_kit__message p-message_pane_message__message--last"&gt;&lt;DIV class="c-message_kit__hover"&gt;&lt;DIV class="c-message_kit__actions c-message_kit__actions--above"&gt;&lt;DIV class="c-message_kit__gutter"&gt;&lt;DIV class="c-message_kit__gutter__right"&gt;&lt;DIV class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;&lt;DIV class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;&lt;DIV class="p-block_kit_renderer"&gt;&lt;DIV class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;&lt;DIV class="p-rich_text_block"&gt;&lt;DIV class="p-rich_text_section"&gt;There is actually an array of products, although I’ve only shown 1 example above.&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="p-rich_text_section"&gt;Thanks in advance for any help&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Sep 2024 10:06:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393633#M248511</guid>
      <dc:creator>Crags</dc:creator>
      <dc:date>2024-09-18T10:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSON flowfiles from 2 processors into one flowfile</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393642#M248513</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/114631"&gt;@Crags&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;It depends. Are you getting this data from the different sources around the same time - may be using common trigger or cron schedule - or are you getting the data independent of each other ?&lt;/P&gt;&lt;P&gt;If its the first case, then you might be able to take advantage of ForkEnrichment\JoinEnrichment. The &lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.20.0/org.apache.nifi.processors.standard.JoinEnrichment/additionalDetails.html" target="_self"&gt;JoinEnrichment&lt;/A&gt; provides different merging strategy which you can select from based on the structure and the order of your data.&lt;/P&gt;&lt;P&gt;If its the second case and lets assume that you end up saving this information to a database , then you can apply the merging in the data base by passing product data to sql stored proc for example, the stored proc will check if the data exist for the given Id and if it does then apply an update statement otherwise insert statement.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 12:31:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393642#M248513</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-09-18T12:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSON flowfiles from 2 processors into one flowfile</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393644#M248515</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's actually more of case 1, so the exact scenario is...&lt;/P&gt;&lt;P&gt;1. a file is uploaded to a location&lt;BR /&gt;2. processor sees there is a new file and then initiates the 2 separate flows based on different sheets in a spreadsheet&lt;BR /&gt;3. after the 2 processes have run and generated their data, I'd like to merge that back together into a single JSON file&lt;/P&gt;&lt;P&gt;Not sure how the fork enrich / join works so any light you can shed on that would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternatively, is there a better way to access data from a spreadsheet (2 different sheets, but the format and naming of the data is exactly the same) that I can use to then perform JOLT's on or something?&lt;/P&gt;&lt;P&gt;I tried listing both sheets in the record reader but data 2 overwrites data 1 as they are exactly the same field / header names etc&lt;/P&gt;&lt;P&gt;Thanks in advance for all the help!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 12:45:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393644#M248515</guid>
      <dc:creator>Crags</dc:creator>
      <dc:date>2024-09-18T12:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSON flowfiles from 2 processors into one flowfile</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393668#M248525</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;well lets start with the last thing you have said because Im carious how its happening that one records override the other record. I assume you are using ExcelReader , correct? If that is the case I have tried creating an excel with two sheets that share same schema and both sheers have the same records as follows:&lt;/P&gt;&lt;P&gt;Sheet1: Address1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_0-1726701119254.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41801i8DBEB2DAA9E26100/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_0-1726701119254.png" alt="SAMSAL_0-1726701119254.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Sheet2: Address2&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_1-1726701168669.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41802i6AABF188A2D35292/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_1-1726701168669.png" alt="SAMSAL_1-1726701168669.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I read the file using &lt;STRONG&gt;FetchFile&lt;/STRONG&gt; processor then I passed the content to&amp;nbsp; &lt;STRONG&gt;ConvertRecord&lt;/STRONG&gt; Processor where the reader is &lt;STRONG&gt;ExcelReader&lt;/STRONG&gt; and the Writer &lt;STRONG&gt;JsonRrecordSetWriter&lt;/STRONG&gt; configured as follows:&lt;/P&gt;&lt;P&gt;ExcelReader:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_2-1726701294238.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41803iAD91AB799DAD8137/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_2-1726701294238.png" alt="SAMSAL_2-1726701294238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Im passing Avro schema to assign proper&amp;nbsp; field name and type as follows:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "namespace": "nifi",
  "name": "user",
  "type": "record",
  "fields": [
    { "name": "ID", "type": "int" },
    { "name": "NAME", "type": "string" },
    { "name": "ADDRESS", "type": "string" }
  ]
}&lt;/LI-CODE&gt;&lt;P&gt;For JsonRecordSetWriter I&amp;nbsp; used with the default settings no changes.&lt;/P&gt;&lt;P&gt;Here is how my output looked like which account for all the records from both sheets even with duplicates (1, sam, TX):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ {
  "ID" : 1,
  "NAME" : "sam",
  "ADDRESS" : "TX"
}, {
  "ID" : 2,
  "NAME" : "Ali",
  "ADDRESS" : "WA"
}, {
  "ID" : 1,
  "NAME" : "sam",
  "ADDRESS" : "TX"
}, {
  "ID" : 2,
  "NAME" : "Ali",
  "ADDRESS" : "FL"
} ]&lt;/LI-CODE&gt;&lt;P&gt;So Im carious what is happening in your case so that the record is overwritten. Maybe if we figure out this problem we can solve it as you said by using JOLT.&lt;/P&gt;&lt;P&gt;I think Fork\Join Enrichment will still work specially since you are reading the info that you are trying to merge from the same file but the flow is going to be different and you might need two ExcelReader for each sheet which means that you need to read the excel twice. The flow will look like the following in a high level:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAMSAL_3-1726702615276.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41804iD5EAC841AA9D79BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SAMSAL_3-1726702615276.png" alt="SAMSAL_3-1726702615276.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can avoid having two excel reader by passing the Sheet info as flowfile attribute. However you still need to read it twice for each sheet and then join the info based on the joining strategy that works best for you.&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 23:39:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393668#M248525</guid>
      <dc:creator>SAMSAL</dc:creator>
      <dc:date>2024-09-18T23:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Merging JSON flowfiles from 2 processors into one flowfile</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393748#M248558</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/80381"&gt;@SAMSAL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Amazing response - thank you!&lt;/P&gt;&lt;P&gt;I'll go over a couple of things you have mentioned, firstly the overwriting... I was wrong about that one. When I converted it to CSV instead using the 2 sheets, it actually appends the information from sheet 2 to the end of sheet 1 (leaving 2 rows as a gap first) so in your example above you would actually end up with something like this in CSV (when reimported into XL):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Crags_0-1726843368083.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/41816i1C42AFF57B7138D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Crags_0-1726843368083.png" alt="Crags_0-1726843368083.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if I can work with that, as I don't see any way in any of the readers to be able to "split" that (or only reading from row 2 to X for example) whilst keeping the flow etc and just using some of the values&lt;/P&gt;&lt;P&gt;The other issue is with the Avro you have set up, because we don't know what the column headers will be (field names) I'm unable to define a schema in Avro for this as they can add and remove these columns at will - the only thing I will be able to rely on is that both the sheets will have identical columns. When I convert direct to JSON, I get something more like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[ {
  "column_0" : "ID",
  "column_1" : "NAME",
  "column_2" : "ADDRESS"
}, {
  "column_0" : "1",
  "column_1" : "Sam",
  "column_2" : "TX"
}, {
  "column_0" : "2",
  "column_1" : "Ali",
  "column_2" : "FL"
}]&lt;/LI-CODE&gt;&lt;P&gt;Again, not sure this is something I can use in this format but I'm just not familiar enough with the NiFi elements at this stage I guess&lt;/P&gt;&lt;P&gt;I'll try the enrichment fork method though and see if there is some mileage in that and then I can feed back&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 14:49:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Merging-JSON-flowfiles-from-2-processors-into-one-flowfile/m-p/393748#M248558</guid>
      <dc:creator>Crags</dc:creator>
      <dc:date>2024-09-20T14:49:46Z</dc:date>
    </item>
  </channel>
</rss>

