<?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>topic Re: Pagination on tHTTPClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518301#M147567</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;If you have a Talend Cloud account , the following API "works" fine with tHTTPClient with Path to Elements : .items &lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.eu.cloud.talend.com/processing/executables/tasks/executions" target="_blank"&gt;https://api.eu.cloud.talend.com/processing/executables/tasks/executions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://talend.qlik.dev/apis/processing/2021-03/#operation_get-available-task-executions" target="_blank"&gt;https://talend.qlik.dev/apis/processing/2021-03/#operation_get-available-task-executions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Denis&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 09:14:31 GMT</pubDate>
    <dc:creator>Denis_Segard</dc:creator>
    <dc:date>2025-05-20T09:14:31Z</dc:date>
    <item>
      <title>Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518218#M147560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an API that I'm trying to load via the component tHttpClient. I've got it so that the call I need is working, but I need to cycle through pages to load the full data set as the call is limited to 100 entries per page. For this I'm attempting to use the Pagination option on Advanced Settings, but I'm struggling to see how to work with this.&lt;/P&gt;&lt;P&gt;The call I have uses Offset and Limit&amp;nbsp; (e.g. &lt;A href="https://-url-here-/search?limit=100&amp;amp;offset=0" target="_blank" rel="noopener"&gt;https://-url-here-/search?limit=100&amp;amp;offset=0&lt;/A&gt;), and the start of the return looks like the below image. I've tried the Box pre-set option on Pagination with the offset and limit set to 100 and 0 respectively, but I am only getting errors returned.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ebacon_0-1747662760679.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180568iA993ACAF7265B53D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ebacon_0-1747662760679.png" alt="ebacon_0-1747662760679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;My question is - has anyone successfully used Pagination on an output that looks like the above (using the "next" output)?&lt;/P&gt;&lt;P&gt;Separately, if Pagination isn't possible for this type of API page-functionality, does anyone have a good method of looping through the results of the tHttpClient, as a tLoop component won't link to httpClient, and I'm having to use tJavaFlex as an interrim component to loop through. It'll probably work, but just wondering if anyone has encountered this issue before!&lt;/P&gt;&lt;P&gt;Thanks, Ellie&lt;/P&gt;</description>
      <pubDate>Mon, 19 May 2025 14:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518218#M147560</guid>
      <dc:creator>ebacon</dc:creator>
      <dc:date>2025-05-19T14:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518282#M147562</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;What error do you get ?&lt;/P&gt;
&lt;P&gt;Do the HTTP request returns an array ? &lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/talend/en-US/components/8.0/http/thttpclient" target="_blank"&gt;https://help.qlik.com/talend/en-US/components/8.0/http/thttpclient&lt;/A&gt;&lt;BR /&gt;Path to elements: Set the path to the JSON array that contains the desired elements. It must be a JSON array. &lt;/P&gt;
&lt;P&gt;Kind regards&lt;BR /&gt;Denis&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 06:43:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518282#M147562</guid>
      <dc:creator>Denis_Segard</dc:creator>
      <dc:date>2025-05-20T06:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518296#M147564</link>
      <description>&lt;P&gt;Hi Denis,&lt;/P&gt;&lt;P&gt;Thanks for getting back to me. I've tried a few things so didn't put the error in - below are the two attempts I think I was closest with!&lt;/P&gt;&lt;P&gt;For info, this is how I'm getting my data from the API. Not sure whether that means it's returning an array or not, but it's definitely json!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ebacon_0-1747728849117.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180600iEB27EB725680EDF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ebacon_0-1747728849117.png" alt="ebacon_0-1747728849117.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Attempt 1 - Error: org.talend.sdk.component.api.exception.ComponentException: Exception raised during HTTP call: (class java.lang.ClassCastException) Cannot cast org.apache.johnzon.core.JsonObjectImpl to javax.json.JsonArray'&lt;/P&gt;&lt;P&gt;Input into pagination:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ebacon_1-1747729701775.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180601i1EB345EDFDA12A55/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ebacon_1-1747729701775.png" alt="ebacon_1-1747729701775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attempt 2 - Error: org.talend.sdk.component.api.exception.ComponentException: Exception raised during HTTP call: (class java.lang.NullPointerException) Cannot invoke "javax.json.JsonObject.getJsonArray(String)" because "current" is null&lt;/P&gt;&lt;P&gt;Input into pagination:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ebacon_2-1747730144167.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180602iCE634EB1B8209BB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ebacon_2-1747730144167.png" alt="ebacon_2-1747730144167.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks, Ellie&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 08:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518296#M147564</guid>
      <dc:creator>ebacon</dc:creator>
      <dc:date>2025-05-20T08:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518298#M147565</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;The error:&lt;BR /&gt;Cannot cast org.apache.johnzon.core.JsonObjectImpl to javax.json.JsonArray'&lt;BR /&gt;is raised because the Path to Elements is not an array.&lt;BR /&gt;The component needs this to be an array in order to compute the number of entries returned.&lt;BR /&gt;If the output returned by the API called using tHTTPClient does not contain this array , you'll need to "loop" on the component tHTTPClient :&lt;/P&gt;
&lt;P&gt;For example : &lt;BR /&gt;tLoop -&amp;gt; tFixedFlowInput -&amp;gt; tHTTPCLient&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Denis&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 08:53:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518298#M147565</guid>
      <dc:creator>Denis_Segard</dc:creator>
      <dc:date>2025-05-20T08:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518300#M147566</link>
      <description>&lt;P&gt;Thanks Denis - I'm not sure I follow the problem I'm afraid! Is there an example of an output that would work anywhere? I'm struggling to see how the API input I'm using doesn't fit the criteria.&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 09:09:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518300#M147566</guid>
      <dc:creator>ebacon</dc:creator>
      <dc:date>2025-05-20T09:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518301#M147567</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;If you have a Talend Cloud account , the following API "works" fine with tHTTPClient with Path to Elements : .items &lt;/P&gt;
&lt;P&gt;&lt;A href="https://api.eu.cloud.talend.com/processing/executables/tasks/executions" target="_blank"&gt;https://api.eu.cloud.talend.com/processing/executables/tasks/executions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://talend.qlik.dev/apis/processing/2021-03/#operation_get-available-task-executions" target="_blank"&gt;https://talend.qlik.dev/apis/processing/2021-03/#operation_get-available-task-executions&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Kind regards&lt;BR /&gt;Denis&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 09:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518301#M147567</guid>
      <dc:creator>Denis_Segard</dc:creator>
      <dc:date>2025-05-20T09:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518305#M147568</link>
      <description>&lt;P&gt;Thanks for those links, unfortunately I don't have Talend Cloud so can't access the first one! From what I can see the problem is that our output doesn't have specific offset and limit elements, does that seem correct to you?&lt;/P&gt;&lt;P&gt;Is it just the case that the Pagination isn't built for full page links such as the ones we've got being output in the API we're using?&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 09:25:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518305#M147568</guid>
      <dc:creator>ebacon</dc:creator>
      <dc:date>2025-05-20T09:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518306#M147569</link>
      <description>&lt;P&gt;I found a "free" REST API supporting pagination &lt;BR /&gt;&lt;A href="https://openlibrary.org/search.json?q=title:flammable&amp;amp;offset=0&amp;amp;limit=1" target="_blank"&gt;https://openlibrary.org/search.json?q=title:flammable&amp;amp;offset=0&amp;amp;limit=1&lt;/A&gt;&lt;BR /&gt;The following settings works fine :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Denis_Segard_0-1747733103620.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180604i53E48FB06273E5B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Denis_Segard_0-1747733103620.png" alt="Denis_Segard_0-1747733103620.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Denis_Segard_1-1747733125604.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180605i627B6F058D3EC5AF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Denis_Segard_1-1747733125604.png" alt="Denis_Segard_1-1747733125604.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;BR /&gt;Denis&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 09:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518306#M147569</guid>
      <dc:creator>Denis_Segard</dc:creator>
      <dc:date>2025-05-20T09:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Pagination on tHTTPClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518327#M147572</link>
      <description>&lt;P&gt;Thanks for all your help on this Denis, I was able to use the free API example to make a bit of progress. I now have different issues where the output isn't consistent so I need to add some entries to the JSON normalisation advanced settings, so just need to make the decision around which is simpler - looping manually or adding all the normalisation.&lt;/P&gt;&lt;P&gt;But seems like if these issues didn't exist, the pagination might have worked!&lt;/P&gt;&lt;P&gt;Thanks, Ellie&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 11:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Pagination-on-tHTTPClient/m-p/2518327#M147572</guid>
      <dc:creator>ebacon</dc:creator>
      <dc:date>2025-05-20T11:43:35Z</dc:date>
    </item>
  </channel>
</rss>

