<?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 About tfileexists and tfilelist in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/About-tfileexists-and-tfilelist/m-p/2341453#M109405</link>
    <description>Hello, I want to check files from a directory and I need to check that these files have a certain name (always the same, sales_date, soc_date, etc...) concatenated with the actual date. I need to check this and only if all files are in the directory then launch a job that makes the ETL process. If some file or files doesn't exists, the ETL wouldn't be launched.
&lt;BR /&gt;I'm trying to make a test job with tfilelist ---iterate--&amp;gt; tfileexists -----&amp;gt; if (Boolean)globalMap.get("tFileExists_EXISTS") --&amp;gt; tmessagebox (success, file found)
&lt;BR /&gt; |
&lt;BR /&gt; if !(Boolean)globalMap.get("tFileExists_EXISTS") 
&lt;BR /&gt; |
&lt;BR /&gt; v
&lt;BR /&gt; tmessagebox (error, file not found)
&lt;BR /&gt;with the tfileexists filename field with ((String)globalMap.get("tFileList_1_CURRENT_FILE"))
&lt;BR /&gt;Now I have in tfilelist one directory to search and one filename with "file.txt" and the job gives me an error in tfileexists
&lt;BR /&gt; connecting to socket on port 4009
&lt;BR /&gt;Exception in component tFileExist_1
&lt;BR /&gt;java.lang.NullPointerException
&lt;BR /&gt; at aquagest.prueba_0_1.prueba.tFileList_1Process(prueba.java:417)
&lt;BR /&gt; at aquagest.prueba_0_1.prueba.runJobInTOS(prueba.java:818)
&lt;BR /&gt; at aquagest.prueba_0_1.prueba.main(prueba.java:692)
&lt;BR /&gt; connected
&lt;BR /&gt; disconnected
&lt;BR /&gt;Please, ¿what am I doing wrong? Thanks.</description>
    <pubDate>Sat, 16 Nov 2024 12:41:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:41:52Z</dc:date>
    <item>
      <title>About tfileexists and tfilelist</title>
      <link>https://community.qlik.com/t5/Talend-Studio/About-tfileexists-and-tfilelist/m-p/2341453#M109405</link>
      <description>Hello, I want to check files from a directory and I need to check that these files have a certain name (always the same, sales_date, soc_date, etc...) concatenated with the actual date. I need to check this and only if all files are in the directory then launch a job that makes the ETL process. If some file or files doesn't exists, the ETL wouldn't be launched.
&lt;BR /&gt;I'm trying to make a test job with tfilelist ---iterate--&amp;gt; tfileexists -----&amp;gt; if (Boolean)globalMap.get("tFileExists_EXISTS") --&amp;gt; tmessagebox (success, file found)
&lt;BR /&gt; |
&lt;BR /&gt; if !(Boolean)globalMap.get("tFileExists_EXISTS") 
&lt;BR /&gt; |
&lt;BR /&gt; v
&lt;BR /&gt; tmessagebox (error, file not found)
&lt;BR /&gt;with the tfileexists filename field with ((String)globalMap.get("tFileList_1_CURRENT_FILE"))
&lt;BR /&gt;Now I have in tfilelist one directory to search and one filename with "file.txt" and the job gives me an error in tfileexists
&lt;BR /&gt; connecting to socket on port 4009
&lt;BR /&gt;Exception in component tFileExist_1
&lt;BR /&gt;java.lang.NullPointerException
&lt;BR /&gt; at aquagest.prueba_0_1.prueba.tFileList_1Process(prueba.java:417)
&lt;BR /&gt; at aquagest.prueba_0_1.prueba.runJobInTOS(prueba.java:818)
&lt;BR /&gt; at aquagest.prueba_0_1.prueba.main(prueba.java:692)
&lt;BR /&gt; connected
&lt;BR /&gt; disconnected
&lt;BR /&gt;Please, ¿what am I doing wrong? Thanks.</description>
      <pubDate>Sat, 16 Nov 2024 12:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/About-tfileexists-and-tfilelist/m-p/2341453#M109405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: About tfileexists and tfilelist</title>
      <link>https://community.qlik.com/t5/Talend-Studio/About-tfileexists-and-tfilelist/m-p/2341454#M109406</link>
      <description>Hi Sbiky,
&lt;BR /&gt;Your job design seems good, could you do a screenshot of the tFile exists properties and of the tFileList properties?</description>
      <pubDate>Thu, 08 Sep 2011 20:45:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/About-tfileexists-and-tfilelist/m-p/2341454#M109406</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-08T20:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: About tfileexists and tfilelist</title>
      <link>https://community.qlik.com/t5/Talend-Studio/About-tfileexists-and-tfilelist/m-p/2341455#M109407</link>
      <description>You RunIf conditions are incorrect: they should be something like (Boolean)globalMap.get("tFileExist_1_EXISTS")</description>
      <pubDate>Sun, 11 Sep 2011 11:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/About-tfileexists-and-tfilelist/m-p/2341455#M109407</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-09-11T11:54:38Z</dc:date>
    </item>
  </channel>
</rss>

