<?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] Log details on files copied in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-Log-details-on-files-copied/m-p/2363996#M127798</link>
    <description>Hi, 
&lt;BR /&gt; 
&lt;BR /&gt;The global variables can be used exactly the same way you used the ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")) in your tFileCopy component. 
&lt;BR /&gt; 
&lt;BR /&gt;For exemple, you can use them in a tJava to display the values (use the autocompletion to have the correct name) : 
&lt;BR /&gt;System.out.println("destination directory: "+((String)globalMap.get("tFileCopy_1_DESTINATION_DIRECTORY"))); 
&lt;BR /&gt; 
&lt;BR /&gt;In order to debug your issue, you add a tJava somwhere (for exemple, you can replace the tFileCopy with a tJava) and use it to print some debug information such as: 
&lt;BR /&gt;System.out.println("current file: "+((String)globalMap.get("tFileList_2_CURRENT_FILEPATH"))); 
&lt;BR /&gt; 
&lt;BR /&gt;This code should display the current file of the tFileList loop when you run your job. 
&lt;BR /&gt; 
&lt;BR /&gt;If you cannot see the previous log, try displaying others tFileList variables in order to ensure they are correct: 
&lt;BR /&gt;System.out.println(context.archiveSentDir + context.currentDateTime); 
&lt;BR /&gt; 
&lt;BR /&gt;If you see the log, the problem must be on the tFileCopy component. 
&lt;BR /&gt; 
&lt;BR /&gt;You can also check that the job iterates on your tFileList (it should show the number of iteration when started from the studio). 
&lt;BR /&gt; 
&lt;BR /&gt;Regards.</description>
    <pubDate>Fri, 20 Jul 2018 12:48:57 GMT</pubDate>
    <dc:creator>lennelei</dc:creator>
    <dc:date>2018-07-20T12:48:57Z</dc:date>
    <item>
      <title>[tFileCopy] Log details on files copied</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-Log-details-on-files-copied/m-p/2363995#M127797</link>
      <description>&lt;P&gt;Hello folks,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have 2 environments, namely qualification and recette&lt;/P&gt; 
&lt;P&gt;Contexts are configured for each one of them&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The last part of my job simply copy files from one folder to another on the same machine.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture1.JPG" style="width: 286px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz3H.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128258i74770DE521520694/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz3H.jpg" alt="0683p000009Lz3H.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 436px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzKq.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130156iA89B8362B2D7BEB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzKq.jpg" alt="0683p000009LzKq.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.JPG" style="width: 458px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzL0.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134351i11BC950054BEE77B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzL0.jpg" alt="0683p000009LzL0.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;When i run on qualification, all the files are copied successfully but on recette nothing has been copied.&lt;/P&gt; 
&lt;P&gt;context.archiveSentDir + context.currentDateTime + "/" has already been tested; i have retrieved the file path and it looks good.&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="Capture6.JPG" style="width: 609px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzL5.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150148i9E122C42313E393E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzL5.jpg" alt="0683p000009LzL5.jpg" /&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-inline" image-alt="Capture4.JPG" style="width: 666px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzKm.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156574iBBB48FC6C76FACF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzKm.jpg" alt="0683p000009LzKm.jpg" /&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; 
&lt;P&gt;Is there a way i can check what is wrong?&lt;/P&gt; 
&lt;P&gt;Or how to use the global variable of tFileCopy component?&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="Capture7.JPG" style="width: 590px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz5n.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138936iD115BFA5F14E6F81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz5n.jpg" alt="0683p000009Lz5n.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;/P&gt; 
&lt;P&gt;asadasing&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:55:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileCopy-Log-details-on-files-copied/m-p/2363995#M127797</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2024-11-16T07:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: [tFileCopy] Log details on files copied</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileCopy-Log-details-on-files-copied/m-p/2363996#M127798</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BR /&gt;The global variables can be used exactly the same way you used the ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")) in your tFileCopy component. 
&lt;BR /&gt; 
&lt;BR /&gt;For exemple, you can use them in a tJava to display the values (use the autocompletion to have the correct name) : 
&lt;BR /&gt;System.out.println("destination directory: "+((String)globalMap.get("tFileCopy_1_DESTINATION_DIRECTORY"))); 
&lt;BR /&gt; 
&lt;BR /&gt;In order to debug your issue, you add a tJava somwhere (for exemple, you can replace the tFileCopy with a tJava) and use it to print some debug information such as: 
&lt;BR /&gt;System.out.println("current file: "+((String)globalMap.get("tFileList_2_CURRENT_FILEPATH"))); 
&lt;BR /&gt; 
&lt;BR /&gt;This code should display the current file of the tFileList loop when you run your job. 
&lt;BR /&gt; 
&lt;BR /&gt;If you cannot see the previous log, try displaying others tFileList variables in order to ensure they are correct: 
&lt;BR /&gt;System.out.println(context.archiveSentDir + context.currentDateTime); 
&lt;BR /&gt; 
&lt;BR /&gt;If you see the log, the problem must be on the tFileCopy component. 
&lt;BR /&gt; 
&lt;BR /&gt;You can also check that the job iterates on your tFileList (it should show the number of iteration when started from the studio). 
&lt;BR /&gt; 
&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 20 Jul 2018 12:48:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileCopy-Log-details-on-files-copied/m-p/2363996#M127798</guid>
      <dc:creator>lennelei</dc:creator>
      <dc:date>2018-07-20T12:48:57Z</dc:date>
    </item>
  </channel>
</rss>

