<?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 Why does MergeContent have a &amp;quot;duplicate entry&amp;quot; error? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153382#M115843</link>
    <description>&lt;P&gt;I almost done creating the DataFlow that ingests vehicle location data from traffic stream simulator, does some filtering on that data and lands the data into a new JSON file. The problem occurs with the mergeContent processor. It shows an error of "duplicate entry." I set UnpackContent's and MergeContent's appropriate property value to zip.  Why do I receive this error?&lt;/P&gt;&lt;P&gt;Here is an image of the NiFi DataFlow with the error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4292-error-2nd-mergecontent.png" style="width: 1429px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21047iEED5205CF64F3606/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4292-error-2nd-mergecontent.png" alt="4292-error-2nd-mergecontent.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;GetFile -&amp;gt; UnpackContent -&amp;gt; ControlRate -&amp;gt; EvaluateXPath -&amp;gt; SplitXml -&amp;gt; EvaluateXPath -&amp;gt; RouteOnAttribute -&amp;gt; AttributesToJSON -&amp;gt; MergeContent -&amp;gt; PutFile&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 12:39:12 GMT</pubDate>
    <dc:creator>jmedel</dc:creator>
    <dc:date>2019-08-18T12:39:12Z</dc:date>
    <item>
      <title>Why does MergeContent have a "duplicate entry" error?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153382#M115843</link>
      <description>&lt;P&gt;I almost done creating the DataFlow that ingests vehicle location data from traffic stream simulator, does some filtering on that data and lands the data into a new JSON file. The problem occurs with the mergeContent processor. It shows an error of "duplicate entry." I set UnpackContent's and MergeContent's appropriate property value to zip.  Why do I receive this error?&lt;/P&gt;&lt;P&gt;Here is an image of the NiFi DataFlow with the error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4292-error-2nd-mergecontent.png" style="width: 1429px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21047iEED5205CF64F3606/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4292-error-2nd-mergecontent.png" alt="4292-error-2nd-mergecontent.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;GetFile -&amp;gt; UnpackContent -&amp;gt; ControlRate -&amp;gt; EvaluateXPath -&amp;gt; SplitXml -&amp;gt; EvaluateXPath -&amp;gt; RouteOnAttribute -&amp;gt; AttributesToJSON -&amp;gt; MergeContent -&amp;gt; PutFile&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:39:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153382#M115843</guid>
      <dc:creator>jmedel</dc:creator>
      <dc:date>2019-08-18T12:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MergeContent have a "duplicate entry" error?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153383#M115844</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3268/jmedel.html" nodeid="3268"&gt;@jmedel&lt;/A&gt;, could you share the configuration of your MergeContent processor?&lt;/P&gt;&lt;P&gt;Also, do you have files with the same name in multiple zip files?&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2016 23:55:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153383#M115844</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-05-17T23:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MergeContent have a "duplicate entry" error?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153384#M115845</link>
      <description>&lt;P&gt;I figured out the solution to the issue. SplitXml splits the children of the parent element in XML file into separate flowfiles. When that happens, the flowfiles receive duplicate names cause the children share the same filename as the original XML file. So, I used a updateAttribute processor to give each flowfile a distinct name. Then when the flowfiles were routed to mergeContent processor, I looked at the list queue to check if the flowfiles all had distinct names and they did. I checked the directory the putfile stored the flowfiles into and they were present as expected. Thank you for the quick response!&lt;/P&gt;&lt;P&gt;Here is an image of my updated dataflow:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4293-errorsolvedmergecontent.png" style="width: 1430px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21046i0907A4B8B28EC1E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="4293-errorsolvedmergecontent.png" alt="4293-errorsolvedmergecontent.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:39:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153384#M115845</guid>
      <dc:creator>jmedel</dc:creator>
      <dc:date>2019-08-18T12:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MergeContent have a "duplicate entry" error?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153385#M115846</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3268/jmedel.html" nodeid="3268"&gt;@jmedel&lt;/A&gt; I think you should answer your question with your answer and accept your own answer. It will mark the thread as answered and will help people to find relevant information when dealing with the same issue &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 00:54:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153385#M115846</guid>
      <dc:creator>pvillard</dc:creator>
      <dc:date>2016-05-18T00:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why does MergeContent have a "duplicate entry" error?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153386#M115847</link>
      <description>&lt;P&gt;Thank you Pierre!&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2016 00:57:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Why-does-MergeContent-have-a-quot-duplicate-entry-quot-error/m-p/153386#M115847</guid>
      <dc:creator>jmedel</dc:creator>
      <dc:date>2016-05-18T00:57:29Z</dc:date>
    </item>
  </channel>
</rss>

