<?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: tFileCopy doesn't work due to file in use by another process in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-doesn-t-work-due-to-file-in-use-by-another-process/m-p/2333454#M102235</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes, you are right. As tFileCopy component can be used as a standalone component, onsubjobOK connection type will be better based on your use case. In this way, it will start only when the previous subjob completely finishes.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
    <pubDate>Thu, 17 Nov 2022 05:01:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-11-17T05:01:23Z</dc:date>
    <item>
      <title>tFileCopy doesn't work due to file in use by another process</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-doesn-t-work-due-to-file-in-use-by-another-process/m-p/2333452#M102233</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first project in Talend Open Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'm trying to do:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;An external job copies CSV files to a folder PROCESSING.&lt;/LI&gt;&lt;LI&gt;tWaitForFile checks this PROCESSING folder and gives the files it finds to tFileInputDelimited.&lt;/LI&gt;&lt;LI&gt;tFileInputDelimited gives the file to tAdvancedFileOutputXML to map it to an XML structure.&lt;/LI&gt;&lt;LI&gt;The XML file has to be written to a TRANSFORMED folder.&lt;/LI&gt;&lt;LI&gt;tFileCopy needs to moved the CSV file from PROCESSING to PROCESSED.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This all works, except for moving the file from PROCESSING to PROCESSED. by tFileCopy. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When I &lt;B&gt;uncheck&lt;/B&gt; the option "Remove source file" from tFileCopy (copy), then everything works, except that the CSV file from PROCESSING is not deleted.&lt;/LI&gt;&lt;LI&gt;When I &lt;B&gt;check &lt;/B&gt;the option "Remove source file" from tFileCopy (move), then nothing works anymore and running the job fails with an exception saying: "java.nio.file.FileSystemException: C:\temp\Testfolder\Processing\70044694-13-03_sn98266620.txt -&amp;gt; C:\temp\Testfolder\Processed\20221116_133348_70044694-13-03_sn98266620.txt: Het proces heeft geen toegang tot het bestand omdat het door een ander proces wordt gebruikt.". Meaning something like "The process cannot access the file because it's being used by another process".&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Should I use another tWaitForFile to wait for the presence of the mapped XML file before trying to move/delete the original CSV file with tFileCopy? Or how can I be sure that the CSV file is not in use anymore by an earlier step?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Z1oT0AAJ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153120iD39B77F9976686EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Z1oT0AAJ.jpg" alt="0695b00000Z1oT0AAJ.jpg" /&gt;&lt;/span&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileCopy-doesn-t-work-due-to-file-in-use-by-another-process/m-p/2333452#M102233</guid>
      <dc:creator>BartG</dc:creator>
      <dc:date>2024-11-15T22:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: tFileCopy doesn't work due to file in use by another process</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-doesn-t-work-due-to-file-in-use-by-another-process/m-p/2333453#M102234</link>
      <description>&lt;P&gt;Aha, I think I've found it: changed the trigger between tAdvancedFileOutputXML and tFileCopy to "OnComponentOk", and that seems to work. I guess the file move now waits until the XML has been written completely.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Z1orCAAR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155680i31EF8D656B46E101/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Z1orCAAR.png" alt="0695b00000Z1orCAAR.png" /&gt;&lt;/span&gt;This seems to work.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 13:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileCopy-doesn-t-work-due-to-file-in-use-by-another-process/m-p/2333453#M102234</guid>
      <dc:creator>BartG</dc:creator>
      <dc:date>2022-11-16T13:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: tFileCopy doesn't work due to file in use by another process</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-doesn-t-work-due-to-file-in-use-by-another-process/m-p/2333454#M102235</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Yes, you are right. As tFileCopy component can be used as a standalone component, onsubjobOK connection type will be better based on your use case. In this way, it will start only when the previous subjob completely finishes.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 05:01:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileCopy-doesn-t-work-due-to-file-in-use-by-another-process/m-p/2333454#M102235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-17T05:01:23Z</dc:date>
    </item>
  </channel>
</rss>

