<?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: Data format after looped tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466770#M140892</link>
    <description>&lt;P&gt;I print the output on the console using tLogRow. "&lt;EM&gt;When my only row containing all of my values like ["id1", "id2", "id3"] l&amp;nbsp; ["fn1", "fn2", "fn3"] |&amp;nbsp; ["ln1", "ln2", "ln3"] get into my tJavaRow,&amp;nbsp;&lt;SPAN&gt;the only row I get in output is ["id3", "fn3", "ln3"]."&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;The overwritten rows are&amp;nbsp;["id1", "fn1", "ln1"]&amp;nbsp; and ["id2", "fn2", "ln2"], these ones are not printed in the tLogRow. I said overwritten because for every execution, my tJavaRows create a "clean" object and is supposed to return it, but instead it runs again without printing the output and that's why i'm only getting the last row as an output.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is how my tJavaRows returns the row (row6 is my output_row)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2024-07-01 à 11.03.09.png" style="width: 946px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168692iF10531DC58F79C5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2024-07-01 à 11.03.09.png" alt="Capture d’écran 2024-07-01 à 11.03.09.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2024 09:06:16 GMT</pubDate>
    <dc:creator>JDuflot</dc:creator>
    <dc:date>2024-07-01T09:06:16Z</dc:date>
    <item>
      <title>Data format after looped tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466077#M140871</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to Talend and i'm trying to make a synchronization between two tools. First things first, i'm trying to make API calls to get objects from the first API. My problem is I can only get the objects 50 by 50. I tried to build a loop to get them all (90.000) and it's kind of working. (tJava to init the link -- (onSubjOk) -- tLoop --(Iterate)-- dummy tJava --- tRestClient -- ExtractJsonFields -- tJavaFlex to update the url).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My issue is the way i'm gathering the data. When i don't use this loop setup i get it the way I want :&lt;/P&gt;
&lt;P&gt;ID | email | firstname | lastname&lt;/P&gt;
&lt;P&gt;1 | email1 | fn1 | ln1&lt;/P&gt;
&lt;P&gt;2 | email2 | fn2 | ln2&lt;/P&gt;
&lt;P&gt;But when i work with the loop i get it like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;url to the next api page |.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; firstname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp;lastname&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | ["id1", "id2", "id3"] l&amp;nbsp; ["fn1", "fn2", "fn3"] |&amp;nbsp; ["ln1", "ln2", "ln3"] :&amp;nbsp; &amp;nbsp; &amp;nbsp;these being strings not arrays (hehe). (yes the "[ ]" are part of the strings)&lt;/P&gt;
&lt;P&gt;When i try to use the tNormalize component it sorts of multiplies the number of lines and is giving me all of the possibilities (like [id1, fn1, ln1], [id1, fn1, ln2]) which isn't right.&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;My questions are : is there a way to return the values after my ExtractJsonFields like i used to get them without the loop?&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;And if not, is there a way to normalize the data knowing that the number of objects returned by the API call will never be the same&lt;/LI&gt;
&lt;LI&gt;After i normalize the data, how can i "store" all of the rows (several thousands) before executing the remaining of the circuit ? (i need to make comparisons with other responses, so i need to do it on all of the data)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I can provide screen shots if needed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for reading and thanks even more for taking the time to answer !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jean&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT : I could rebuild clean-formatted objects in a tJavaRow but it can only return one row (the last one, after all the previous ones have been overwritten). Is there a way i can return all of the rows ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 14:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466077#M140871</guid>
      <dc:creator>JDuflot</dc:creator>
      <dc:date>2024-06-27T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Data format after looped tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466227#M140874</link>
      <description>&lt;P&gt;You need a tUnite component after tJavaRow to merge all rows.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 02:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466227#M140874</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-06-28T02:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Data format after looped tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466388#M140883</link>
      <description>&lt;P&gt;Hello and thank you for your answer,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe I didn't explain it well but a tUnite can not hep me there, unless I don't get it right. When my only row containing all of my values like [&lt;SPAN&gt;"id1", "id2", "id3"] l&amp;nbsp; ["fn1", "fn2", "fn3"] |&amp;nbsp; ["ln1", "ln2", "ln3"] get into my tJavaRow, the only row I get in output is ["id3", "fn3", "ln3"]. All of the previous iterations are overwritten before getting out of the tJavaRow component. When i run it with my loop, and if I have for example 55 rows, I only get the 50th row and the 55th (the last one for each iteration) even with tUnite.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jean&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 12:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466388#M140883</guid>
      <dc:creator>JDuflot</dc:creator>
      <dc:date>2024-06-28T12:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data format after looped tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466724#M140891</link>
      <description>&lt;P&gt;Do you print the output on the console using tLogRow or output them to file or database? I don't understand you said 'the previous row are overwritten？&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 07:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466724#M140891</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-07-01T07:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data format after looped tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466770#M140892</link>
      <description>&lt;P&gt;I print the output on the console using tLogRow. "&lt;EM&gt;When my only row containing all of my values like ["id1", "id2", "id3"] l&amp;nbsp; ["fn1", "fn2", "fn3"] |&amp;nbsp; ["ln1", "ln2", "ln3"] get into my tJavaRow,&amp;nbsp;&lt;SPAN&gt;the only row I get in output is ["id3", "fn3", "ln3"]."&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;The overwritten rows are&amp;nbsp;["id1", "fn1", "ln1"]&amp;nbsp; and ["id2", "fn2", "ln2"], these ones are not printed in the tLogRow. I said overwritten because for every execution, my tJavaRows create a "clean" object and is supposed to return it, but instead it runs again without printing the output and that's why i'm only getting the last row as an output.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here is how my tJavaRows returns the row (row6 is my output_row)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture d’écran 2024-07-01 à 11.03.09.png" style="width: 946px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168692iF10531DC58F79C5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture d’écran 2024-07-01 à 11.03.09.png" alt="Capture d’écran 2024-07-01 à 11.03.09.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 09:06:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Data-format-after-looped-tRestClient/m-p/2466770#M140892</guid>
      <dc:creator>JDuflot</dc:creator>
      <dc:date>2024-07-01T09:06:16Z</dc:date>
    </item>
  </channel>
</rss>

