<?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 Issue with TFileProperties in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280858#M55582</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm new with Talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have the following issue ; I want to store files with their properties (specially modification date) in a database table. For that, I use&lt;/P&gt; 
&lt;P&gt;TFileList ---&amp;gt; Iterate ----&amp;gt; TFileProperties --&amp;gt;main ---&amp;gt; TDBOutPut&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The file propertie of my TFileList is ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my TDBOutput, f I parameter the "table action" to default, it works but I want to delete table before each run so I parameter the 'table action" to "delete the table" and then, after running I only get information for the last file treated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Someone can explain it to me why ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks by advance for your help.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2020 12:33:22 GMT</pubDate>
    <dc:creator>Jeff__FR_</dc:creator>
    <dc:date>2020-02-03T12:33:22Z</dc:date>
    <item>
      <title>Issue with TFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280858#M55582</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm new with Talend.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have the following issue ; I want to store files with their properties (specially modification date) in a database table. For that, I use&lt;/P&gt; 
&lt;P&gt;TFileList ---&amp;gt; Iterate ----&amp;gt; TFileProperties --&amp;gt;main ---&amp;gt; TDBOutPut&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The file propertie of my TFileList is ((String)globalMap.get("tFileList_1_CURRENT_FILEPATH"))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In my TDBOutput, f I parameter the "table action" to default, it works but I want to delete table before each run so I parameter the 'table action" to "delete the table" and then, after running I only get information for the last file treated.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Someone can explain it to me why ?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks by advance for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 12:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280858#M55582</guid>
      <dc:creator>Jeff__FR_</dc:creator>
      <dc:date>2020-02-03T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280859#M55583</link>
      <description>&lt;P&gt;This is because your tFileList is iterating over your files. When an iterator link is used, everything after it is run from component start to component complete for every iteration. So, you are deleting and creating a new table for every file that is found.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To get around this, simply add a tHashOutput where your DB component is, then in a subjob below your current subjob, add a tHashInput joining to your DB component. What this does is fill your Hash component with your file details, then it sends them to the DB component all in one go after the files have been analysed. You must set the tHashOutput component to "append" for this to work.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 12:40:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280859#M55583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-03T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280860#M55584</link>
      <description>&lt;P&gt;Thanks a lot ; it works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In parallel, I tried another solution. I added a TDBRow which delete the table before my job (TDBRow - TFileList -- TFileProperties -- TDBOutput). It works too.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you think about this alternative way of doing (I see a difference on stats: with your solution we easily can see the number of files inserted in the table) ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your attention.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 22:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280860#M55584</guid>
      <dc:creator>Jeff__FR_</dc:creator>
      <dc:date>2020-02-03T22:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with TFileProperties</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280861#M55585</link>
      <description>&lt;P&gt;Whichever way suits you will be fine. This pointer will hopefully help you when dealing with similar situations in the future. Getting used to how Iteration links work can give you a great deal of power when working with Talend. Understanding the flow is key to unlocking the full power of a Talend job &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2020 22:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Issue-with-TFileProperties/m-p/2280861#M55585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-03T22:52:52Z</dc:date>
    </item>
  </channel>
</rss>

