<?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: TFTPConnection in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217879#M13296</link>
    <description>Hi 
&lt;BR /&gt;Iterate each file on ftp server with local files, it does not exist on local folder, get it using tFTPGet component. eg: 
&lt;BR /&gt;tFTPConnection 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tFTPFileList_1--iterate--tJava_1--oncomponentok---tFileList_1--iterate---tJava_2 
&lt;BR /&gt; ---runIf--tFTPGet 
&lt;BR /&gt;tFTPFileList_1: iterate each file on ftp server. 
&lt;BR /&gt;tJava_1: get the current file name on ftp server and put it to a global variable. 
&lt;BR /&gt;String currentServerFilename= 
&lt;BR /&gt;((String)globalMap.get("tFTPFileList_1_CURRENT_FILE")); 
&lt;BR /&gt;globalMap.put("serverFileName",currentServerFilename); 
&lt;BR /&gt;tFileList: iterate each file in local folder 
&lt;BR /&gt;tJava_2: 
&lt;BR /&gt;String currentLocalFilename=((String)globalMap.get("tFileList_1_CURRENT_FILE")); 
&lt;BR /&gt;if(currentLocalFilename.equals((String)globalMap.get("serverFileName"))){ 
&lt;BR /&gt;globalMap.put("isExist", true); 
&lt;BR /&gt;}else{ 
&lt;BR /&gt;globalMap.put("isExist", false); 
&lt;BR /&gt;} 
&lt;BR /&gt;set the condition of RunIf: 
&lt;BR /&gt;!(Boolean)globalMap.get("isExist") 
&lt;BR /&gt;let us know if you have any trouble. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
    <pubDate>Tue, 01 Mar 2011 02:19:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-03-01T02:19:33Z</dc:date>
    <item>
      <title>TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217878#M13295</link>
      <description>Hi there &lt;BR /&gt;Could someone help me please. I have zip files that go onto an FTP Server. I want to connect to that server and then check if the file exists in my local folder on my local machine, if the files arent there i want them added to another folder say folder C. &lt;BR /&gt;How do i do this using ftpConnection,tFTPFileList,tfileexist to compare the files on the server and those on the local folder(So that it only pics the files not on folder).</description>
      <pubDate>Sat, 16 Nov 2024 13:04:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217878#M13295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217879#M13296</link>
      <description>Hi 
&lt;BR /&gt;Iterate each file on ftp server with local files, it does not exist on local folder, get it using tFTPGet component. eg: 
&lt;BR /&gt;tFTPConnection 
&lt;BR /&gt; | 
&lt;BR /&gt;onsubjobok 
&lt;BR /&gt; | 
&lt;BR /&gt;tFTPFileList_1--iterate--tJava_1--oncomponentok---tFileList_1--iterate---tJava_2 
&lt;BR /&gt; ---runIf--tFTPGet 
&lt;BR /&gt;tFTPFileList_1: iterate each file on ftp server. 
&lt;BR /&gt;tJava_1: get the current file name on ftp server and put it to a global variable. 
&lt;BR /&gt;String currentServerFilename= 
&lt;BR /&gt;((String)globalMap.get("tFTPFileList_1_CURRENT_FILE")); 
&lt;BR /&gt;globalMap.put("serverFileName",currentServerFilename); 
&lt;BR /&gt;tFileList: iterate each file in local folder 
&lt;BR /&gt;tJava_2: 
&lt;BR /&gt;String currentLocalFilename=((String)globalMap.get("tFileList_1_CURRENT_FILE")); 
&lt;BR /&gt;if(currentLocalFilename.equals((String)globalMap.get("serverFileName"))){ 
&lt;BR /&gt;globalMap.put("isExist", true); 
&lt;BR /&gt;}else{ 
&lt;BR /&gt;globalMap.put("isExist", false); 
&lt;BR /&gt;} 
&lt;BR /&gt;set the condition of RunIf: 
&lt;BR /&gt;!(Boolean)globalMap.get("isExist") 
&lt;BR /&gt;let us know if you have any trouble. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 01 Mar 2011 02:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217879#M13296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-01T02:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217880#M13297</link>
      <description>Hi Shong,
&lt;BR /&gt;I have done as stated above and i changed the location folder for the FtpGet component to another folder. So it still searches for the files in a local folder and ftp server and if not found in local folder it gets that file. What i have realised is it is actually getting the same files that are in the local folder instead.Could you help me please.</description>
      <pubDate>Wed, 02 Mar 2011 09:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217880#M13297</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-02T09:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217881#M13298</link>
      <description>Hello 
&lt;BR /&gt;Modify the code on tJava_2 to: 
&lt;BR /&gt; 
&lt;PRE&gt;String currentLocalFilename=((String)globalMap.get("tFileList_1_CURRENT_FILE"));&lt;BR /&gt;if(currentLocalFilename.equals((String)globalMap.get("serverFileName"))){&lt;BR /&gt;globalMap.put("isExist", true);&lt;BR /&gt;break;&lt;BR /&gt;}else{&lt;BR /&gt;globalMap.put("isExist", false);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;Waiting for your feedback! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 03 Mar 2011 00:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217881#M13298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-03T00:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217882#M13299</link>
      <description>Hi Shong 
&lt;BR /&gt;For some reason i am still picking the file in local folder too. 
&lt;BR /&gt;I think i am going wrong somewhere. 
&lt;BR /&gt;I have folder Input Files. It has 2 zip files in there and i have folder Zipped2 which is the folder i want to have only the files on ftp server AND not in the input files stored. 
&lt;BR /&gt;The code for the Jave processes is exactly as you said here. Is it the way am putting the information in the propeties section for my components. 
&lt;BR /&gt;This is what i have for the components: 
&lt;BR /&gt;TFTPList_1 ---&amp;gt; Using an existing connection 
&lt;BR /&gt;Remote Directory --&amp;gt;\New "this is where the zip files r on the server" 
&lt;BR /&gt;Filemask --&amp;gt; "*.zip" 
&lt;BR /&gt; 
&lt;BR /&gt;TFileList_1 --&amp;gt; 
&lt;BR /&gt;Directory--&amp;gt;"C:/Users/Pheona.Sanyamahwe/Documents/Pheona/Talend/OPC Talend Project/InputFiles" //the local folder where my files are.. 
&lt;BR /&gt; 
&lt;BR /&gt;TFTPGet_3 --&amp;gt; 
&lt;BR /&gt;LocalDirectory --&amp;gt;"C:/Users/Pheona.Sanyamahwe/Documents/Pheona/Talend/OPC Talend Project/Zipped2"// this is the file where files on ftpserver and not in InputFile folder are stored 
&lt;BR /&gt;Remote Direcroy--&amp;gt;"/New" 
&lt;BR /&gt;OverWrite File --&amp;gt;never 
&lt;BR /&gt;FileMask --&amp;gt;"*.zip" 
&lt;BR /&gt;Is there something i am doing wrong?</description>
      <pubDate>Mon, 07 Mar 2011 16:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217882#M13299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-07T16:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217883#M13300</link>
      <description>Hi 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;TFTPGet_3 --&amp;gt;&lt;BR /&gt;LocalDirectory --&amp;gt;"C:/Users/Pheona.Sanyamahwe/Documents/Pheona/Talend/OPC Talend Project/Zipped2"// this is the file where files on ftpserver and not in InputFile folder are stored&lt;BR /&gt;Remote Direcroy--&amp;gt;"/New"&lt;BR /&gt;OverWrite File --&amp;gt;never&lt;BR /&gt;FileMask --&amp;gt;"*.zip"&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Here the file mask should be the name of current server file. eg: 
&lt;BR /&gt;(String)globalMap.put("serverFileName"); 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 08 Mar 2011 01:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217883#M13300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-08T01:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217884#M13301</link>
      <description>Shong 
&lt;BR /&gt;am i supposed to declare the string here before the code for the filemask because the code seems not to work, 
&lt;BR /&gt;i am getting this file error 
&lt;BR /&gt;the method put(String,Object) in the type Map&amp;lt;String,object&amp;gt; not applicable for this argument 
&lt;BR /&gt;my code is 
&lt;BR /&gt;(String)globalMap.put("winstanley@ftp.copdtrak.org")</description>
      <pubDate>Wed, 09 Mar 2011 10:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217884#M13301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-09T10:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217885#M13302</link>
      <description>Hi 
&lt;BR /&gt;Sorry, the file mask should be the name of current server file. eg: 
&lt;BR /&gt;(String)globalMap.get("serverFileName"); 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 09 Mar 2011 11:37:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217885#M13302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-09T11:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217886#M13303</link>
      <description>Hi Shong 
&lt;BR /&gt;thanks for the help 
&lt;BR /&gt;I have another question if you dont mind. I am getting a java null pointer exception error in one of my Tmaps. 
&lt;BR /&gt;It has a delimited file which is the input file and amysql table as a lookup. 
&lt;BR /&gt;input file Lookup table 
&lt;BR /&gt;Name Name 
&lt;BR /&gt;File Include 
&lt;BR /&gt;the inner join is on the name variable if the name is the same and the value is Y in the lookup table then i want that Name and File sent to the next output file 
&lt;BR /&gt;for those that arent = to Y r sent to an error file. The value for include can be Y or Null in the lookup table. 
&lt;BR /&gt;I tried using the following in my expression field for the right output row5(lookup table) --&amp;gt;row5.Include.equals(Y) 
&lt;BR /&gt;that will not work 
&lt;BR /&gt;i do not want the names with no Y to be sent to the next output table how can i do this, as it keeps giving me the error message</description>
      <pubDate>Wed, 09 Mar 2011 16:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217886#M13303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-09T16:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217887#M13304</link>
      <description>Hi
&lt;BR /&gt;Please report a new topic for new question and I will answer you on new topic, I do NOT want this topic to be your specifics topic for all questions.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 10 Mar 2011 01:14:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217887#M13304</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-10T01:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: TFTPConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217888#M13305</link>
      <description>what if we use tftpfileexist using file pattern?&lt;BR /&gt;what i observed is whenever we are having multiple files with same pattern it is returning false? any idea how to overcome this?&amp;nbsp;</description>
      <pubDate>Tue, 21 Jul 2015 12:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TFTPConnection/m-p/2217888#M13305</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2015-07-21T12:34:43Z</dc:date>
    </item>
  </channel>
</rss>

