<?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: FileNotFoundException when using tOutputDelimited after a tFixedFlowInput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198370#M1733</link>
    <description>&lt;P&gt;Hello thanks for answering,&lt;/P&gt;&lt;P&gt;In fact, I want one file per "COD_CMP", not one file per row. (For example : COD_CMP = ICI, So I want all row with COD_CMP ICI in one file, then, for another COD_CMP, I want the same but in another file), All same COD_CMP from my query need to be stored in the same file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that doc :&amp;nbsp;&lt;A href="https://makina-corpus.com/blog/metier/2014/tutorial-talend-decomposer-le-contenu-dun-fichier-flux-vers-plusieurs-fichiers" target="_blank" rel="nofollow noopener noreferrer"&gt;https://makina-corpus.com/blog/metier/2014/tutorial-talend-decomposer-le-contenu-dun-fichier-flux-vers-plusieurs-fichiers&lt;/A&gt;&lt;BR /&gt;And I used the solution 3 for solved my problem. All is working because the file stay open while the process isn't done. Unlike my old solution which open the file for one row, store that row, close the file, and, re-open for next row, etc... That why I had a problem.&lt;/P&gt;&lt;P&gt;But I'm storing in a .csv, and I want if possible a solution to store in a xls file. I found Apache POI for that, but I don't know how to use it in Talend, I can't import the nedded package for using it in tJavaFlex.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jun 2020 10:51:29 GMT</pubDate>
    <dc:creator>Deewens</dc:creator>
    <dc:date>2020-06-08T10:51:29Z</dc:date>
    <item>
      <title>FileNotFoundException when using tOutputDelimited after a tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198368#M1731</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to get data from a db and then store them into an xlsx file with one file per "COD_CMP" as described in my tFlowIterate component.&lt;/P&gt; 
&lt;P&gt;First problem : storing data into xls or xlsx file take realy too long. I got almost 138 000 rows from my DB and it'll take between 9 and 10 hour to store all data into an xls or xlsx file. Because the storing is doing one by one or idk why.&lt;/P&gt; 
&lt;P&gt;So, I tried to store it into a csv file which is much faster. And then after I want to re-store everyting into an xls (which will be quick because it won't be line by line). That's the only way I found to have enough performance for my job.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;But, I got a problem as described in screenshots. When I'm store data into the csv file, at some point, the job stop and I got an Exception&amp;nbsp;FileNotFoundException which tell me that my file is already used by another process. But it's not. I searched all the day to solve that, but I can't find any solution.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So, i'm looking for a solution for my second problem, or by miracle, my first if you have a best solution.&lt;/P&gt; 
&lt;P&gt;Thanks by advance.&lt;/P&gt; 
&lt;P&gt;(sorry for english)&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="talend3.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZnZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151204i82F7573A402FA510/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZnZ.png" alt="0683p000009MZnZ.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="talend_bug2.png" style="width: 748px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZdB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156004iB6DFFF69329B9244/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZdB.png" alt="0683p000009MZdB.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="talend_help.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZne.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152213i5858B44F024B73DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZne.png" alt="0683p000009MZne.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:15:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198368#M1731</guid>
      <dc:creator>Deewens</dc:creator>
      <dc:date>2024-11-16T02:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundException when using tOutputDelimited after a tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198369#M1732</link>
      <description>Hi 
&lt;BR /&gt;Do you create one new file for each line? If so, simply check the 'Split output in several files' box in the advanced settings of tFileOutputDelimited, and set the Rows in each output file as 1, you don't need to use tFlowToIterate to iterate each row.
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 08 Jun 2020 04:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198369#M1732</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-08T04:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundException when using tOutputDelimited after a tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198370#M1733</link>
      <description>&lt;P&gt;Hello thanks for answering,&lt;/P&gt;&lt;P&gt;In fact, I want one file per "COD_CMP", not one file per row. (For example : COD_CMP = ICI, So I want all row with COD_CMP ICI in one file, then, for another COD_CMP, I want the same but in another file), All same COD_CMP from my query need to be stored in the same file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found that doc :&amp;nbsp;&lt;A href="https://makina-corpus.com/blog/metier/2014/tutorial-talend-decomposer-le-contenu-dun-fichier-flux-vers-plusieurs-fichiers" target="_blank" rel="nofollow noopener noreferrer"&gt;https://makina-corpus.com/blog/metier/2014/tutorial-talend-decomposer-le-contenu-dun-fichier-flux-vers-plusieurs-fichiers&lt;/A&gt;&lt;BR /&gt;And I used the solution 3 for solved my problem. All is working because the file stay open while the process isn't done. Unlike my old solution which open the file for one row, store that row, close the file, and, re-open for next row, etc... That why I had a problem.&lt;/P&gt;&lt;P&gt;But I'm storing in a .csv, and I want if possible a solution to store in a xls file. I found Apache POI for that, but I don't know how to use it in Talend, I can't import the nedded package for using it in tJavaFlex.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 10:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198370#M1733</guid>
      <dc:creator>Deewens</dc:creator>
      <dc:date>2020-06-08T10:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundException when using tOutputDelimited after a tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198371#M1734</link>
      <description>If you other solution from your link , you could crease xls file using tfileoutputexcel&lt;BR /&gt;&lt;BR /&gt;For tjavaflex , you need to manage your own lib and routine/java code.</description>
      <pubDate>Mon, 08 Jun 2020 12:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198371#M1734</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-08T12:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundException when using tOutputDelimited after a tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198372#M1735</link>
      <description>I know, but when I'm using tfileoutputexcel, the data transfer take too 
&lt;BR /&gt;long (almost 10 hour) because the file is always open, transfer, close, 
&lt;BR /&gt;open, transfer, close, etc. 
&lt;BR /&gt; 
&lt;BR /&gt;That's why I'm trying to use a tJavaFlex to close file only when job is 
&lt;BR /&gt;finished. But I have trouble to make it work 
&lt;IMG id="smileysad" class="emoticon emoticon-smileysad" src="https://community.qlik.com/" alt="Smiley Sad" title="Smiley Sad" /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jun 2020 12:51:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198372#M1735</guid>
      <dc:creator>Deewens</dc:creator>
      <dc:date>2020-06-08T12:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundException when using tOutputDelimited after a tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198373#M1736</link>
      <description>I got some code on internet For create xla file&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.tutorialspoint.com/javaexamples/write_data_into_excel_sheet.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.tutorialspoint.com/javaexamples/write_data_into_excel_sheet.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You need to add tLibrary ( at the start of job) and load apache poi jars to make it work.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Jun 2020 13:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198373#M1736</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2020-06-08T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundException when using tOutputDelimited after a tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198374#M1737</link>
      <description>&lt;P&gt;Thanks, I'm trying to make it works..&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 09:02:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198374#M1737</guid>
      <dc:creator>Deewens</dc:creator>
      <dc:date>2020-06-10T09:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: FileNotFoundException when using tOutputDelimited after a tFixedFlowInput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198375#M1738</link>
      <description>&lt;P&gt;So, I tried the solution with Apache POI, but, it's take also too long... I can't append to the xlsx file without read the file, so each time the file size is up, the file reader take more time to read it&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I abandoned this solution, and I do the following :&lt;/P&gt; 
&lt;P&gt;- store all data in .csv file (because I can append directly with Java Class FileWriter, without need to read the file each row) so it's realy quick&lt;/P&gt; 
&lt;P&gt;- then, store all this .csv into a tFileOutputExcel (realy quick also, because it's not line by line)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;That's not the best, but that's the only solution I found.&lt;/P&gt; 
&lt;P&gt;Thanks for your time&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jun 2020 10:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/FileNotFoundException-when-using-tOutputDelimited-after-a/m-p/2198375#M1738</guid>
      <dc:creator>Deewens</dc:creator>
      <dc:date>2020-06-12T10:58:42Z</dc:date>
    </item>
  </channel>
</rss>

