<?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: dynamic write file name in tFileOutputDelimited in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270979#M48732</link>
    <description>The same problem is coming for me too. Not able to include a dynamic name for tFileOutputRaw.&amp;nbsp;</description>
    <pubDate>Tue, 14 Apr 2015 08:46:06 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2015-04-14T08:46:06Z</dc:date>
    <item>
      <title>dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270969#M48722</link>
      <description>Hi,
&lt;BR /&gt;I am working on dynamically write the file name in tFileOutputDelimited.
&lt;BR /&gt;My design is as:
&lt;BR /&gt;tFileInputDelimited--&amp;gt;tMap--row1--&amp;gt;tJava--&amp;gt;tFileOutputDelimited.
&lt;BR /&gt;I want to write the file name in tFileOutputDelimited with:
&lt;BR /&gt;"c:/test/test1_"+context.fileName+".csv"
&lt;BR /&gt;In my tMap, I have the output:
&lt;BR /&gt;row1.dateTime
&lt;BR /&gt;row1.ID
&lt;BR /&gt;row1.value
&lt;BR /&gt;row1.input
&lt;BR /&gt;row2.output
&lt;BR /&gt;all row1.dateTime values are the same
&lt;BR /&gt;In my tJava, I have the simple code:
&lt;BR /&gt;context.fileName=row1.dateTime;
&lt;BR /&gt;I want the output file of tFileOutputDelimited as:
&lt;BR /&gt;test1_dateTime.csv with the contents of:
&lt;BR /&gt;dateTime,ID,value,input,output
&lt;BR /&gt;When using my design, I got the test1_null.csv. The contents of the file is correct.
&lt;BR /&gt;I am wondering where is wrong.
&lt;BR /&gt;Thanks,</description>
      <pubDate>Tue, 24 Jul 2012 07:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270969#M48722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-24T07:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270970#M48723</link>
      <description>Hi&lt;BR /&gt;Please use tJavaRow instead of tjava.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 24 Jul 2012 07:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270970#M48723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-24T07:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270971#M48724</link>
      <description>I tried to use jJavaRow. I still got the test1_null.csv file.</description>
      <pubDate>Tue, 24 Jul 2012 07:25:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270971#M48724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-24T07:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270972#M48725</link>
      <description>Hi 
&lt;BR /&gt;The expression should be like this. 
&lt;BR /&gt;context.fileName=input_row.dateTime; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 24 Jul 2012 07:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270972#M48725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-24T07:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270973#M48726</link>
      <description>I did have the same code. but the file name is still test1_null.csv.</description>
      <pubDate>Tue, 24 Jul 2012 07:29:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270973#M48726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-24T07:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270974#M48727</link>
      <description>Hi&lt;BR /&gt;Are you sure?&lt;BR /&gt;It's not row1. It's input_row.&lt;BR /&gt;If it still doesn't work, please send me an email and attach this job.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Tue, 24 Jul 2012 07:33:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270974#M48727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-24T07:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270975#M48728</link>
      <description>You cannot use flow values in the file name as the output file is created before the input file starts reading.  You need a tFlowToIterate and tFixedFlowInput instead of tJavaRow to achieve this.  Search the forum for many many posts on doing this.</description>
      <pubDate>Wed, 25 Jul 2012 00:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270975#M48728</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2012-07-25T00:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270976#M48729</link>
      <description>It is still not working. I can get the print out context.fileName in the tJavaRow. 
&lt;BR /&gt;The print out in tJavaRow is looked like:
&lt;BR /&gt;context.fileName2012-07-16 23:00
&lt;BR /&gt;context.fileName2012-07-16 23:00
&lt;BR /&gt;context.fileName2012-07-16 23:00
&lt;BR /&gt;context.fileName2012-07-16 23:00
&lt;BR /&gt;context.fileName2012-07-16 23:00
&lt;BR /&gt;context.fileName2012-07-16 23:00
&lt;BR /&gt;context.fileName2012-07-16 23:00
&lt;BR /&gt;context.fileName2012-07-16 23:00
&lt;BR /&gt;In my tJavaRow, the codes are:
&lt;BR /&gt;output_row.PSI = input_row.PSI;
&lt;BR /&gt;output_row.Type = input_row.Type;
&lt;BR /&gt;output_row.DateTime = input_row.DateTime;
&lt;BR /&gt;output_row.Value = input_row.Value;
&lt;BR /&gt;context.fileName=input_row.DateTime;
&lt;BR /&gt;System.out.println("context.fileName"+context.fileName);
&lt;BR /&gt;In my tFileOutputDelimited, I have the file name: "d:/test/test1_"+context.fileName+".csv"
&lt;BR /&gt;From the print out, I can see the contextfileName is assigned in every row, which having 8 rows in this case. Is the contextfileName in the file name will be written 8 times?</description>
      <pubDate>Wed, 25 Jul 2012 00:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270976#M48729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-25T00:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270977#M48730</link>
      <description>my context.fileName intial value is null. I changed the intial value to be "abc", I then get the test1_abc.csv file. It's looked like the context.fileName that is defined my Context hasn't been over-written my the tJavaRow. I am wondering if I have done something is not correct in the Context definition, or I need to do something else.</description>
      <pubDate>Wed, 25 Jul 2012 00:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270977#M48730</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-25T00:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270978#M48731</link>
      <description>use a flow to iterate &amp;amp; tfixed flow as shown in the pic, your prob with null is solved 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 25 Jul 2012 06:58:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270978#M48731</guid>
      <dc:creator>djugal</dc:creator>
      <dc:date>2012-07-25T06:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: dynamic write file name in tFileOutputDelimited</title>
      <link>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270979#M48732</link>
      <description>The same problem is coming for me too. Not able to include a dynamic name for tFileOutputRaw.&amp;nbsp;</description>
      <pubDate>Tue, 14 Apr 2015 08:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/dynamic-write-file-name-in-tFileOutputDelimited/m-p/2270979#M48732</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-04-14T08:46:06Z</dc:date>
    </item>
  </channel>
</rss>

