<?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: tJava to tFileOutputDelimited returns null for initial value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219679#M14374</link>
    <description>&lt;P&gt;My fault.&lt;BR /&gt;This design works:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xxxxxxx.png" style="width: 828px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6oq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156493i46FF2C20E457DE7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6oq.png" alt="0683p000009M6oq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Fill in the fields in tJavaFlex and set filename using global variables from tFlowToIterate.&lt;/P&gt; 
&lt;P&gt;In my case I use (String)globalMap.get("row17.data").&lt;/P&gt; 
&lt;P&gt;tFixedFlowInput is there to replace your tExtractJSONFields (4 rows with 1 field each = 01, 02, 03, 04).&lt;/P&gt;</description>
    <pubDate>Thu, 29 Aug 2019 12:58:18 GMT</pubDate>
    <dc:creator>TRF</dc:creator>
    <dc:date>2019-08-29T12:58:18Z</dc:date>
    <item>
      <title>tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219670#M14365</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job which parses a CSV output from an API. I am trying to dynamically set the file name, however, the first result of order number is always null, and then rest is 1 off.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The orderNumber shows correctly using System.out.println() in the tJava, so I'm assuming its something to do with the order that things are executed?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have attached screenshots of both components &amp;amp; the workflow of the job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way around this? I can't extract the order number directly from the JSON because its just a data object with csv inside of it.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 10:54:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219670#M14365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T10:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219671#M14366</link>
      <description>Because tJava is the 1rst component fired when the subjob starts.
&lt;BR /&gt;Replacing tJava by a tIterateToFlow should be enough to avoid null value for the filename.</description>
      <pubDate>Thu, 29 Aug 2019 11:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219671#M14366</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-29T11:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219672#M14367</link>
      <description>&lt;P&gt;Thanks for the quick reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tJava is responsible for using substring to get the filename.&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;String orderString = row1.data.toString();
String orderNumber = orderString.substring(0, orderString.indexOf(','));&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there a way to replicate this inside a tIterateToFlow? I tried below but it only returns null. Is this because of how I'm referencing row3.fileName in the tFileOutputDelimited or something else?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="tfileoutputdelimited2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6ob.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130047iC982156617E6C426/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6ob.png" alt="0683p000009M6ob.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&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-center" image-alt="titeratetoflow.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6QQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141423i2376CCA57C42B5C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6QQ.png" alt="0683p000009M6QQ.png" /&gt;&lt;/span&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>Thu, 29 Aug 2019 11:11:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219672#M14367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T11:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219673#M14368</link>
      <description>Can you share the new job design?</description>
      <pubDate>Thu, 29 Aug 2019 11:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219673#M14368</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-29T11:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219674#M14369</link>
      <description>&lt;P&gt;Job currently looks like below;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="titeratetoflow.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Zn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147947i14749CA5C9F1B193/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Zn.png" alt="0683p000009M6Zn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 11:22:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219674#M14369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T11:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219675#M14370</link>
      <description>If you have used default for tFlowToIterate, try to replace row1.data by (String)globalMap.get("row1.data"). If you don't have used default, use your variable name instead of "row1.data" for the globalMap.get.</description>
      <pubDate>Thu, 29 Aug 2019 11:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219675#M14370</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-29T11:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219676#M14371</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tFlowToIterate is set to default, I've managed to get the fileName passing through row3 using below;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1155.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6og.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156152iDDDD33F6CB12E614/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6og.png" alt="0683p000009M6og.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I can see it using trace debug, but when ALL of the files are created now, they are created as null.csv.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="1154.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6ol.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139985iC3C7B89190599E76/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6ol.png" alt="0683p000009M6ol.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any idea why it doesn't seem to want to use the value even though we can see it during trace debug?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 11:57:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219676#M14371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T11:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219677#M14372</link>
      <description>Try to reuse (String)globalMap.get("row1.data") for the tFileOutputDelimited too</description>
      <pubDate>Thu, 29 Aug 2019 12:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219677#M14372</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-29T12:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219678#M14373</link>
      <description>&lt;P&gt;if I put;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;File Name: "C:/Users/user/Desktop/Ax_Orders/" + (String)globalMap.get("row1.data").toString().substring(0, globalMap.get("row1.data").toString().indexOf(',')) + ".csv"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;inside of the tFileOutputDelimited then it just creates one CSV, with the name of 27.csv. Interestingly, it now seems to only be evaluating this once rather than once per row.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need a CSV per row which was the original reason for trying to use tJava to handle the row &amp;amp; filename &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 12:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219678#M14373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219679#M14374</link>
      <description>&lt;P&gt;My fault.&lt;BR /&gt;This design works:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xxxxxxx.png" style="width: 828px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6oq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156493i46FF2C20E457DE7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6oq.png" alt="0683p000009M6oq.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Fill in the fields in tJavaFlex and set filename using global variables from tFlowToIterate.&lt;/P&gt; 
&lt;P&gt;In my case I use (String)globalMap.get("row17.data").&lt;/P&gt; 
&lt;P&gt;tFixedFlowInput is there to replace your tExtractJSONFields (4 rows with 1 field each = 01, 02, 03, 04).&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 12:58:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219679#M14374</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-29T12:58:18Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219680#M14375</link>
      <description>&lt;P&gt;Doesn't this have the same issue as before? The tJavaFlex returns the following files..&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="csvlist.png" style="width: 605px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6ov.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136600i2C4A67F71DDFAA6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6ov.png" alt="0683p000009M6ov.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;instead of 1 to 27.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;What does your file name look like in the job above? Mine is currently set to&amp;nbsp;"C:/Users/users/Desktop/Ax_Orders/" + row2.fileName + ".csv"&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219680#M14375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T13:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219681#M14376</link>
      <description>The value for the 27th row is probably null</description>
      <pubDate>Thu, 29 Aug 2019 13:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219681#M14376</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-29T13:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219682#M14377</link>
      <description>&lt;P&gt;It's not, I can see the data clearly using postman, and if I open the file which has been saved as null.csv, the row starts as below...&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="nullcsv.png" style="width: 288px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6p0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152922i1745A7ECF612BBFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6p0.png" alt="0683p000009M6p0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is this not the same problem that we had at the start, where you said that tJava runs first?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm open to changing the layout of the job I just need a resolution, I don't feel like this should be as hard as its proving to be!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your help so far, I appreciate it&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;edit; the first row it coming through as "null" and then the following ones are a number off, eg 1.csv SHOULD be 2 if you do the substring manually&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 13:20:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219682#M14377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T13:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219683#M14378</link>
      <description>&lt;P&gt;"&lt;EM&gt;Is this not the same problem that we had at the start, where you said that tJava runs first?&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;No, when using tJavaFlex, initial code starts first and only once, main code starts for each row and final code starts last and only once.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Well... can you share your JSON?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 14:47:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219683#M14378</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-08-29T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219684#M14379</link>
      <description>&lt;P&gt;Here's a snippet of the JSON, the first two records (of the 27 which were being used previously)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
    "message": "Fetched order(s)",
    "data": [
        "1,,,,,,,,,,,\"Admin Test\",\"11 Avenue\",City,UK,,POSTCODE,,2019-07-26T09:39:21+00:00,,,,,,,,,,,,,,2019-07-26T09:39:21+00:00,Y,,,,,Y,,,,,,,,,,,,\n1,,DELIVERY,DELIVERY,1,,,5.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n2,,SUPPu18024,AXb98017,1,,,12.54,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n3,,SUPPLEFTSLEEVE,LEFTSLEEVE,1,,,2.50,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n4,,LOGOSETUPFEE,LOGOSETUPFEE,1,,,10.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n",
        "2,,,,,,,,,,,\"Admin Test\",\"11 Avenue\",City,UK,,POSTCODE,,2019-07-26T09:39:21+00:00,,,,,,,,,,,,,,2019-07-26T09:39:21+00:00,Y,,,,,Y,,,,,,,,,,,,\n1,,DELIVERY,DELIVERY,1,,,5.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n2,,SUPPu18024,AXb98017,1,,,12.54,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n3,,SUPPLEFTSLEEVE,LEFTSLEEVE,1,,,2.50,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n4,,LOGOSETUPFEE,LOGOSETUPFEE,1,,,10.00,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,\n"
    ]
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 15:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219684#M14379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T15:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219685#M14380</link>
      <description>&lt;P&gt;It looks like this is caused by your filename naming method. You say you have used this....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"C:/Users/users/Desktop/Ax_Orders/" + row2.fileName + ".csv"&lt;/PRE&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;used this....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"C:/Users/users/Desktop/Ax_Orders/" + ((String)row2.fileName) + ".csv"&lt;/PRE&gt; 
&lt;P&gt;If this fixes the problem please accept&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;'s solution&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219685#M14380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T16:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219686#M14381</link>
      <description>Unfortunate this still has the same issue. The first row is exported as null.csv, second row is 1.csv.. etc.
&lt;BR /&gt;
&lt;BR /&gt;They are all off by one number</description>
      <pubDate>Thu, 29 Aug 2019 16:10:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219686#M14381</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T16:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219687#M14382</link>
      <description>&lt;P&gt;Can you take a screenshot of your job, your tJavaFlex and your file component settings please?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:20:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219687#M14382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T16:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219688#M14383</link>
      <description>&lt;P&gt;No problem.. A few of the row names have changed since this morning but the job is still the same. See below;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Full job,&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="fulljob.png" style="width: 834px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Zo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143099i277166B36443B722/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Zo.png" alt="0683p000009M6Zo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tFlowToIterate;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFlowToIterate.png" style="width: 436px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6dy.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137197i80D121687032DD03/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6dy.png" alt="0683p000009M6dy.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlexSchema.png" style="width: 537px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6oh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143824i72F31BE18B9F88D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6oh.png" alt="0683p000009M6oh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tJavaFlex;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlex.png" style="width: 955px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6nA.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134006iB8FC3AF74807FDE1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6nA.png" alt="0683p000009M6nA.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tJavaFlexSchema.png" style="width: 537px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6jI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156988i40E0923FD770D119/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6jI.png" alt="0683p000009M6jI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;OutputDelimited;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="outputdelim.png" style="width: 971px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6pe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133762iE892E61E66EEF024/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6pe.png" alt="0683p000009M6pe.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="outputdelimschema.png" style="width: 988px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6pj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144528i25659C08ED263818/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6pj.png" alt="0683p000009M6pj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:28:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219688#M14383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T16:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: tJava to tFileOutputDelimited returns null for initial value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219689#M14384</link>
      <description>&lt;P&gt;OK, I see the issue. It's caused by the way in which file components work. When you iterate, everything after the iterate link is treated as a subjob in its own right. A file component is initiated at the beginning of a subjob....before any data has been processed. So, as you are creating your filename at the beginning of the subjob, the file component for the first run is not given a name (the data has not been processed by the tJavaFlex component. The way to get around this is to put a tJava before your tJavaFlex and link to the tJavaFlex with an iterate link. You there therefore have two iterate links; one before your tJava and one before your tJavaFlex. In the tJava component put the following code.....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;String orderString = ((String)globalMap.get("extractedDate.data"));
String orderNumber = orderString.substring(0, orderString.indexOf(','));
globalMap.put("filename", orderNumber);&lt;/PRE&gt; 
&lt;P&gt;Then you can either leave the tJavaFlex data exactly the same (maybe remove the filename bit) and use this in your filename field....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;"C:/Users/users/Desktop/Ax_Orders/" + ((String)globalMap.get("filename")) + ".csv"&lt;/PRE&gt; 
&lt;P&gt;That should do it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Again, this is what&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;was suggesting, so it is probably only fair to give him the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2019 16:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tJava-to-tFileOutputDelimited-returns-null-for-initial-value/m-p/2219689#M14384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-29T16:48:57Z</dc:date>
    </item>
  </channel>
</rss>

