<?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 tFileOutput dynamically filename in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330199#M99295</link>
    <description>Hello everyone, 
&lt;BR /&gt;i am stuck within a simple? problem. 
&lt;BR /&gt;If have a small process to extract data from a big xml file and save the output it in several small files. 
&lt;BR /&gt;the filename of each output file is dependent of the actual data. 
&lt;BR /&gt;example inputfile: 
&lt;BR /&gt;&amp;lt;PLANT&amp;gt; 
&lt;BR /&gt; &amp;lt;COMMON&amp;gt;Bloodroot&amp;lt;/COMMON&amp;gt; 
&lt;BR /&gt;&amp;lt;/PLANT&amp;gt; 
&lt;BR /&gt;&amp;lt;PLANT&amp;gt; 
&lt;BR /&gt; &amp;lt;COMMON&amp;gt;Columbine&amp;lt;/COMMON&amp;gt; 
&lt;BR /&gt;&amp;lt;/PLANT&amp;gt; 
&lt;BR /&gt;output files: 
&lt;BR /&gt;bloodroot.xml 
&lt;BR /&gt;columbine.xml 
&lt;BR /&gt;I extract the 'common' property into the context variable : context.FILENAME 
&lt;BR /&gt;But at execution time i only get one file: null.xml 
&lt;BR /&gt; 
&lt;B&gt;How can i dynamically set the filename of the tfileoutput component?&lt;/B&gt; 
&lt;BR /&gt;Thanks your help 
&lt;BR /&gt; Michael</description>
    <pubDate>Sat, 16 Nov 2024 13:29:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:29:24Z</dc:date>
    <item>
      <title>tFileOutput dynamically filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330199#M99295</link>
      <description>Hello everyone, 
&lt;BR /&gt;i am stuck within a simple? problem. 
&lt;BR /&gt;If have a small process to extract data from a big xml file and save the output it in several small files. 
&lt;BR /&gt;the filename of each output file is dependent of the actual data. 
&lt;BR /&gt;example inputfile: 
&lt;BR /&gt;&amp;lt;PLANT&amp;gt; 
&lt;BR /&gt; &amp;lt;COMMON&amp;gt;Bloodroot&amp;lt;/COMMON&amp;gt; 
&lt;BR /&gt;&amp;lt;/PLANT&amp;gt; 
&lt;BR /&gt;&amp;lt;PLANT&amp;gt; 
&lt;BR /&gt; &amp;lt;COMMON&amp;gt;Columbine&amp;lt;/COMMON&amp;gt; 
&lt;BR /&gt;&amp;lt;/PLANT&amp;gt; 
&lt;BR /&gt;output files: 
&lt;BR /&gt;bloodroot.xml 
&lt;BR /&gt;columbine.xml 
&lt;BR /&gt;I extract the 'common' property into the context variable : context.FILENAME 
&lt;BR /&gt;But at execution time i only get one file: null.xml 
&lt;BR /&gt; 
&lt;B&gt;How can i dynamically set the filename of the tfileoutput component?&lt;/B&gt; 
&lt;BR /&gt;Thanks your help 
&lt;BR /&gt; Michael</description>
      <pubDate>Sat, 16 Nov 2024 13:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330199#M99295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutput dynamically filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330200#M99296</link>
      <description>Does nobody have a tip or workaround for that?</description>
      <pubDate>Mon, 29 Mar 2010 10:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330200#M99296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-29T10:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutput dynamically filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330201#M99297</link>
      <description>You are using correct file name but I think context variable are not initialized with proper values 
&lt;BR /&gt;You are using two context variables context.OUTPUTPATH, context.FILENAME 
&lt;BR /&gt;Try displaying data contained in 'common' property and context variables 
&lt;BR /&gt;Also select check box Append in tFileOutputDelimited so exisiting files are appended</description>
      <pubDate>Tue, 28 Dec 2010 14:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330201#M99297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-28T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutput dynamically filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330202#M99298</link>
      <description>The output file is initialised before the flow starts i.e. before the input file is even opened so you can't use values from the input for the output file name. There are other posts about how to achieve this e.g. 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCk9kCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/spliting-files-an-renaming-files/td-p/72252&lt;/A&gt;.</description>
      <pubDate>Wed, 29 Dec 2010 05:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330202#M99298</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-12-29T05:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: tFileOutput dynamically filename</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330203#M99299</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;The output file is initialised before the flow starts i.e. before the input file is even opened so you can't use values from the input for the output file name.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Thats correct!&lt;BR /&gt;I used this approach:&lt;BR /&gt;Write the data to tempfiles and at the end rename your files to the appropiate name.</description>
      <pubDate>Wed, 29 Dec 2010 08:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileOutput-dynamically-filename/m-p/2330203#M99299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-29T08:58:09Z</dc:date>
    </item>
  </channel>
</rss>

