<?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: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344128#M111815</link>
    <description>&lt;P&gt;Thanks for pointing out the tNormalize, I actually didn't know that component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That being said in my today's job, while I need to "normalizie" a column I also need to mute others. Let's say each line contains shopping informations such as the id of the buyer, total shopping price and the coma separated list of purchased items. Even though I don't have the detailed price for each item I need to render a line per item, but when doing so I would like to keep the other fields only on the first line and mute them for the remainig lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;("bob", "10$", "cake,tea")&lt;/P&gt;&lt;P&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;("bob", "10$", "cake")&lt;/P&gt;&lt;P&gt;(, , "tea")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJavaFlex still seems a natural way to perform that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furtermore, last time I used a tJavaFlex I had to deal with something a bit more tricky where a part of the job was about storing manager related information in a HashMap, and the other part of the job was about running through this HashMap to extract and list this "per-manager" information. To date I still can't see any other way to do that than using a tJavaFlex.&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 06:50:56 GMT</pubDate>
    <dc:creator>schwarben</dc:creator>
    <dc:date>2021-05-20T06:50:56Z</dc:date>
    <item>
      <title>'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344122#M111809</link>
      <description>&lt;P&gt;I still experience troubles using &lt;I&gt;tJavaFlex&lt;/I&gt; component. Using a &lt;I&gt;main&lt;/I&gt; flow as an input, sometimes everything runs smoothly but there are cases when the &lt;I&gt;tJavaFlex&lt;/I&gt; only gets &lt;I&gt;null&lt;/I&gt; values in all fields. I managed to find a workaround by using a &lt;I&gt;tFlowToIterate &lt;/I&gt;component to transcode the &lt;I&gt;main&lt;/I&gt; flow in an &lt;I&gt;iterate&lt;/I&gt; flow, but I would like to understand what is happening here.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Why is &lt;I&gt;tJavaFlex&lt;/I&gt; sometimes ok with &lt;I&gt;main &lt;/I&gt;flows, and why sometimes it gets only &lt;I&gt;null&lt;/I&gt;  values ?&lt;/LI&gt;&lt;LI&gt;Why using an &lt;I&gt;iterate &lt;/I&gt;flow helps ?&lt;/LI&gt;&lt;LI&gt;And finaly, I realized I don't really get what an &lt;I&gt;iterate&lt;/I&gt; flow does and when to use it compared to a &lt;I&gt;main&lt;/I&gt; flow.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Any explanation on any of these topics would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 12:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344122#M111809</guid>
      <dc:creator>schwarben</dc:creator>
      <dc:date>2021-05-19T12:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344123#M111810</link>
      <description>&lt;P&gt;Hi, why are you using tJavaFlex ?&lt;/P&gt;&lt;P&gt;Could you send screens of the tJavaFlex ?&lt;/P&gt;&lt;P&gt;and also screens of the tFixedFlowinput.&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 13:31:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344123#M111810</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-19T13:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344124#M111811</link>
      <description>&lt;P&gt;flow to iterate will execute the rest of the subjob after the iterate link for one iteration of the main flow, so if you have 3 rows in the main flow it will execute the rest 3 times (one for each row of the main flow). It can also stock in globalVar the value of the fields of one row. So you can reuse them at each moment of the iteration.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 15:17:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344124#M111811</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-19T15:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344125#M111812</link>
      <description>&lt;P&gt;Hello Jeremy, and thanks for your interest.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I typically use a tJavaFlex when I need to "insert" lines in a flow. This can happen in various cases.&lt;/P&gt;&lt;P&gt;In the toy exemple above I have a flow with three String fields (N, P, T). The last field contains a coma separated list of tokens and I want a new line for each token : (N, P, S) where N an P are simply repeated and S contains the token extracted from T.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, a stream composed of these two lines :&lt;/P&gt;&lt;P&gt;[("x", "y", "0"), ("a" ,"b" , "1,2,3")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would result in 4 lines :&lt;/P&gt;&lt;P&gt;[("x","y","0"), ("a","b","1"), ("a","b","2"), ("a","b","3")]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code seems straightforward, tell me if I misunderstood something.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000F7iO1AAJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147650iDBF9FE3EAE8734B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000F7iO1AAJ.png" alt="0695b00000F7iO1AAJ.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 15:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344125#M111812</guid>
      <dc:creator>schwarben</dc:creator>
      <dc:date>2021-05-19T15:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344126#M111813</link>
      <description>&lt;P&gt;ok just use the tNormalize component , you don't have to use a tJavaflex for this.&lt;/P&gt;&lt;P&gt;tAggegateRow --&amp;gt;main--&amp;gt;tNormalize--&amp;gt;main --&amp;gt;the rest of the job&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 16:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344126#M111813</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-19T16:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344127#M111814</link>
      <description>&lt;P&gt;Makes perfect sense. Thanks.&lt;/P&gt;&lt;P&gt;Actually, everythink became clear when my last component in the subjob was a file writer. With an iterate, unless I specifically ask for an appending behaviour, the file is overwritten at each iteration.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 06:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344127#M111814</guid>
      <dc:creator>schwarben</dc:creator>
      <dc:date>2021-05-20T06:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344128#M111815</link>
      <description>&lt;P&gt;Thanks for pointing out the tNormalize, I actually didn't know that component.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That being said in my today's job, while I need to "normalizie" a column I also need to mute others. Let's say each line contains shopping informations such as the id of the buyer, total shopping price and the coma separated list of purchased items. Even though I don't have the detailed price for each item I need to render a line per item, but when doing so I would like to keep the other fields only on the first line and mute them for the remainig lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;("bob", "10$", "cake,tea")&lt;/P&gt;&lt;P&gt;--&amp;gt;&lt;/P&gt;&lt;P&gt;("bob", "10$", "cake")&lt;/P&gt;&lt;P&gt;(, , "tea")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tJavaFlex still seems a natural way to perform that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furtermore, last time I used a tJavaFlex I had to deal with something a bit more tricky where a part of the job was about storing manager related information in a HashMap, and the other part of the job was about running through this HashMap to extract and list this "per-manager" information. To date I still can't see any other way to do that than using a tJavaFlex.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 06:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344128#M111815</guid>
      <dc:creator>schwarben</dc:creator>
      <dc:date>2021-05-20T06:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344129#M111816</link>
      <description>&lt;P&gt;All that aside, do you have any idea if an explanation to why tJavaFlex would read null values from a main flow ? I can provide a toy example if needed.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344129#M111816</guid>
      <dc:creator>schwarben</dc:creator>
      <dc:date>2021-05-20T07:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344130#M111817</link>
      <description>&lt;P&gt;for the tJavaflex i think it's because you use the for clause in the begining and not in the loop, the beginning is launched at first and then it loop for each iteration of the main row in the main part of the tJavaflex.Thats why it's working with tflowtoiterate.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344130#M111817</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-20T07:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344131#M111818</link>
      <description>&lt;P&gt;you could use tnormalize to separate the values then add an order number with a sequence by exemple and then set to null each values for N and P  if order is different to 1.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:33:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344131#M111818</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-20T07:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344132#M111819</link>
      <description>&lt;P&gt;This actually was my first idea, but I didn't find how to do that. I was expecting to do that with a 'rank' operation in the tAggregateRow component to emulate the row_number() function in SQL, but there is none.&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344132#M111819</guid>
      <dc:creator>schwarben</dc:creator>
      <dc:date>2021-05-20T07:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344133#M111820</link>
      <description>&lt;P&gt;Thank you ! Thank you ! Thank you !&lt;/P&gt;&lt;P&gt;Now I will be able to sleep !&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344133#M111820</guid>
      <dc:creator>schwarben</dc:creator>
      <dc:date>2021-05-20T07:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344134#M111821</link>
      <description>&lt;P&gt;my idea : tflowtoiterate --&amp;gt; iterate --&amp;gt;tjava with a globalMap.put (name counter type int set to 0 )--&amp;gt; on component ok --&amp;gt;rowgenerator with the globalvar of the tflowtoiterate --&amp;gt; main --&amp;gt; tnormalize --&amp;gt; tjavarow with a new column (named order value : counter +1 --&amp;gt; tjavarow (if value of counter !=1 then null for N and P)&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344134#M111821</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-20T07:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344135#M111822</link>
      <description>&lt;P&gt;Ps you could do the both tjavarow code in one like --&amp;gt; (if value of counter + 1 !=1 then null for N and P else N = N ,P =P)&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 07:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344135#M111822</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-20T07:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: 'null' values received when using a tJavaFlex with a main flow. Fixed by using an iterate flow.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344136#M111823</link>
      <description>&lt;P&gt;so good night &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 08:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/null-values-received-when-using-a-tJavaFlex-with-a-main-flow/m-p/2344136#M111823</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-20T08:05:14Z</dc:date>
    </item>
  </channel>
</rss>

