<?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 Re: InvokeHTTP with pagination, MergeContent JSON to single FF - need some help in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-with-pagination-MergeContent-JSON-to-single-FF/m-p/378782#M243669</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107810"&gt;@robdisseldorp&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi expert&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 22:18:06 GMT</pubDate>
    <dc:creator>DianaTorres</dc:creator>
    <dc:date>2023-11-08T22:18:06Z</dc:date>
    <item>
      <title>InvokeHTTP with pagination, MergeContent JSON to single FF - need some help</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-with-pagination-MergeContent-JSON-to-single-FF/m-p/378781#M243668</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am just starting to learn NiFi and I really appreciate the power of this great tool.&lt;/P&gt;&lt;P&gt;But I am struggling for several evenings to get what seems a simple flow to work correctly. I have reviewed several samples on how to make an API call and use pagination to retrieve difference pages. This seems to work but I get a unique FF every time. Usign MergeCOntent I was hoping I could create a combined file containing JSON array of all FF content.&lt;/P&gt;&lt;P&gt;It seems so simple but I am missing something. Could anyone point me in the right direction?&lt;/P&gt;&lt;P&gt;Logic:&lt;/P&gt;&lt;P&gt;1) Create FF with starting values limit (500) and start (0)&lt;/P&gt;&lt;P&gt;2) InvokeHTTP with URL and starting values&lt;/P&gt;&lt;P&gt;3) Update filename with filename prefix (object_type) and current date YYYY-MM-DD&lt;/P&gt;&lt;P&gt;4) Check for additional pages in Pagination group (pagination seems to work, getting multiple pages with different JSON data)&lt;/P&gt;&lt;P&gt;5) Iterate through InvokeHTTP with new start offset for next page&lt;/P&gt;&lt;P&gt;6) Using both next_page and Output output streams to ensure all pages are provided&lt;/P&gt;&lt;P&gt;7) MergeContent: try to merge all generate FF (by InvokeHTTP) and group by Correlation Attribute filename (should be the same during each iteration)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; UpdateAttribute to set final filename including hh:mm:ss&lt;/P&gt;&lt;P&gt;9) write single FF with merged JSON array&lt;/P&gt;&lt;P&gt;Problem: I still get separate FF after MergeContent.&lt;/P&gt;&lt;P&gt;Seems the configuration of MergeContent do not create single FF.&lt;/P&gt;&lt;P&gt;W&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 at 22.19.28.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38875i1832FB95689D0997/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-08 at 22.19.28.png" alt="Screenshot 2023-11-08 at 22.19.28.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 at 22.35.06.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38876i98E6C5746CEACC23/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-08 at 22.35.06.png" alt="Screenshot 2023-11-08 at 22.35.06.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 at 22.35.24.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38877iDD2BB60D2FAE9FD4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-08 at 22.35.24.png" alt="Screenshot 2023-11-08 at 22.35.24.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 at 22.35.42.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38878i7C2A09F6F2C4CAC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-08 at 22.35.42.png" alt="Screenshot 2023-11-08 at 22.35.42.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 at 22.35.55.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38879iE0DCC97974162667/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-08 at 22.35.55.png" alt="Screenshot 2023-11-08 at 22.35.55.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 at 22.36.01.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38880iF0C660257F60A801/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-08 at 22.36.01.png" alt="Screenshot 2023-11-08 at 22.36.01.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-11-08 at 22.36.09.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/38881i3AFF864C7E5C0626/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2023-11-08 at 22.36.09.png" alt="Screenshot 2023-11-08 at 22.36.09.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 22:07:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-with-pagination-MergeContent-JSON-to-single-FF/m-p/378781#M243668</guid>
      <dc:creator>robdisseldorp</dc:creator>
      <dc:date>2023-11-08T22:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: InvokeHTTP with pagination, MergeContent JSON to single FF - need some help</title>
      <link>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-with-pagination-MergeContent-JSON-to-single-FF/m-p/378782#M243669</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/107810"&gt;@robdisseldorp&lt;/a&gt;&amp;nbsp;Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our NiFi expert&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95503"&gt;@steven-matison&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 22:18:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/InvokeHTTP-with-pagination-MergeContent-JSON-to-single-FF/m-p/378782#M243669</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-11-08T22:18:06Z</dc:date>
    </item>
  </channel>
</rss>

