<?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: tFTPPut with filemask from row in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFTPPut-with-filemask-from-row/m-p/2287339#M60940</link>
    <description>Hi MarkGordonMcNicholas,&lt;BR /&gt;&lt;BR /&gt;Would you mind posting your job design screenshots into forum? In this way, we can see if there is something wrong with your global variable usage.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Sun, 06 Sep 2015 09:05:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-09-06T09:05:39Z</dc:date>
    <item>
      <title>tFTPPut with filemask from row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPPut-with-filemask-from-row/m-p/2287338#M60939</link>
      <description>Hi, 
&lt;BR /&gt;I am trying to use tFTPPut with a file mask generated and new filename provided by a main flow. I have tried using row2.FILENAME for the filemask, and verified that it was set correctly. I have also tried using tSetGlobalVar to put it in a global and using that (I used the autocomplete to grab the reference to the global variable to prevent typos by me), but either way it doesn't work. Stepping through in the JAva debugger I got to this piece of code... 
&lt;BR /&gt;&amp;nbsp;/** 
&lt;BR /&gt;&amp;nbsp; * [tFTPPut_2 main ] start 
&lt;BR /&gt;&amp;nbsp; */ 
&lt;BR /&gt;&amp;nbsp;currentComponent = "tFTPPut_2"; 
&lt;BR /&gt;&amp;nbsp;try { 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;globalMap.put( 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"tFTPPut_2_CURRENT_STATUS", 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;"No file transfered."); 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;java.util.Set&amp;lt;String&amp;gt; keySettFTPPut_2 = maptFTPPut_2 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.keySet(); 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;for (String keytFTPPut_2 : keySettFTPPut_2) { 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (keytFTPPut_2 == null 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;|| "".equals(keytFTPPut_2)) { 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;System.err 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.println("file name invalid!"); 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;continue; 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;} 
&lt;BR /&gt; 
&lt;BR /&gt;and found that keytFTPPut_2 was always being set to null even when I could see that the row and global were both set to the correct strings. 
&lt;BR /&gt; 
&lt;BR /&gt;Further up in the generated code I have found this... 
&lt;BR /&gt;&amp;nbsp;// becasue there is not the same method in JSch class as 
&lt;BR /&gt;&amp;nbsp;// FTPClient class, define a list here 
&lt;BR /&gt;&amp;nbsp;java.util.List&amp;lt;String&amp;gt; msg_tFTPPut_2 = new java.util.ArrayList&amp;lt;String&amp;gt;(); 
&lt;BR /&gt;&amp;nbsp;com.jcraft.jsch.SftpProgressMonitor monitortFTPPut_2 = new MyProgressMonitor_tFTPPut_2(); 
&lt;BR /&gt;&amp;nbsp;java.util.List&amp;lt;java.util.Map&amp;lt;String, String&amp;gt;&amp;gt; listtFTPPut_2 = new java.util.ArrayList&amp;lt;java.util.Map&amp;lt;String, String&amp;gt;&amp;gt;(); 
&lt;BR /&gt;&amp;nbsp;java.util.Map&amp;lt;String, String&amp;gt; maptFTPPut_20 = new java.util.HashMap&amp;lt;String, String&amp;gt;(); 
&lt;BR /&gt;&amp;nbsp;maptFTPPut_20.put(((String) globalMap.get("FILENAME")), 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;((String) globalMap.get("newFile"))); 
&lt;BR /&gt;&amp;nbsp;listtFTPPut_2.add(maptFTPPut_20); 
&lt;BR /&gt; 
&lt;BR /&gt;So to someone like me not that familiar with Talend it looks like it is storing the values in the wrong place!</description>
      <pubDate>Sat, 16 Nov 2024 11:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPPut-with-filemask-from-row/m-p/2287338#M60939</guid>
      <dc:creator>MarkGordonMcN</dc:creator>
      <dc:date>2024-11-16T11:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: tFTPPut with filemask from row</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFTPPut-with-filemask-from-row/m-p/2287339#M60940</link>
      <description>Hi MarkGordonMcNicholas,&lt;BR /&gt;&lt;BR /&gt;Would you mind posting your job design screenshots into forum? In this way, we can see if there is something wrong with your global variable usage.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Sun, 06 Sep 2015 09:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFTPPut-with-filemask-from-row/m-p/2287339#M60940</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-06T09:05:39Z</dc:date>
    </item>
  </channel>
</rss>

