<?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: [resolved] unable to count file row count in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204098#M5116</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi ,&lt;BR /&gt;You can do it ,it is &amp;nbsp;pretty simple .&lt;BR /&gt;tfilelist &amp;gt; tfileinputdelimited&amp;gt;tmap &amp;gt; tfileout &amp;gt;tjava&lt;BR /&gt;In tjava component , you can use the global variable ,which will help you to print the filename and row count of file ,which is being processed by tfilelist.Below are the screenshots for the same.&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/195095/mini_blob_20170104-0939.png"&gt;195095/mini_blob_20170104-0939.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/195095/mini_blob_20170104-0940.png"&gt;195095/mini_blob_20170104-0940.png&lt;/A&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;i need to find the file count not the file row count&amp;nbsp;</description>
    <pubDate>Wed, 04 Jan 2017 17:53:26 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-04T17:53:26Z</dc:date>
    <item>
      <title>[resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204090#M5108</link>
      <description>Hello, 
&lt;BR /&gt;I have a job which captures all details of the files in a particular folder.Like file_rowcount , size or file_name, 
&lt;BR /&gt;But i am unable to capture file_rowcount 
&lt;BR /&gt;Please see my job designe:- 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCUq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141235i6A39FAE9D1B3CC06/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCUq.png" alt="0683p000009MCUq.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;tfilelist:- 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MChq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136132i90F8949FB01EDDF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MChq.png" alt="0683p000009MChq.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;tfileproperties: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MChq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136132i90F8949FB01EDDF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MChq.png" alt="0683p000009MChq.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;tfilerowcount:- 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCnW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141017iFE982895BA35B062/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCnW.png" alt="0683p000009MCnW.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;tmap: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCpl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129068i8F85687908401507/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCpl.png" alt="0683p000009MCpl.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;the output i am getting correct except count is not matching with the file , its giving any random xyz figure. 
&lt;BR /&gt;Please help here 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 04 Jan 2017 08:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204090#M5108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T08:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204091#M5109</link>
      <description>Hi&amp;nbsp;
&lt;BR /&gt;It is a job design issue, the global variable should be used after component, it should be:
&lt;BR /&gt;tfilelist--iterate--tfilerowcount--oncomponent--tfileproperties--main--tmap.....
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 04 Jan 2017 08:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204091#M5109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T08:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204092#M5110</link>
      <description>Dear Shong, 
&lt;BR /&gt;Thanks for reply, 
&lt;BR /&gt;i just did what you said , same issue , row-count coming incorrect , even if file has only header , its giving count as 44. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCZF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133340i7136C2297D6EFCD7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCZF.png" alt="0683p000009MCZF.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;All logic is same. just shifter the positions as suggested by you. 
&lt;BR /&gt;but same issue, even file has no records still it shows any random figure.</description>
      <pubDate>Wed, 04 Jan 2017 09:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204092#M5110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T09:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204093#M5111</link>
      <description>Dear Shong,
&lt;BR /&gt;Its resolved,
&lt;BR /&gt;row separator for tfilelist was wrong , default should have been "\n".
&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 04 Jan 2017 09:34:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204093#M5111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204094#M5112</link>
      <description>Great, thanks for your feedback!</description>
      <pubDate>Wed, 04 Jan 2017 11:02:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204094#M5112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T11:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204095#M5113</link>
      <description>Dear Shong,
&lt;BR /&gt;In this job , if there are 10 files in the directory , how will i find the count of files in the same job ?
&lt;BR /&gt;any global variable function ?
&lt;BR /&gt;Can you suggest?
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 04 Jan 2017 17:21:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204095#M5113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T17:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204096#M5114</link>
      <description>Hi , 
&lt;BR /&gt;You can do it ,it is &amp;nbsp;pretty simple . 
&lt;BR /&gt;tfilelist &amp;gt; tfileinputdelimited&amp;gt;tmap &amp;gt; tfileout &amp;gt;tjava 
&lt;BR /&gt;In tjava component , you can use the global variable ,which will help you to print the filename and row count of file ,which is being processed by tfilelist.Below are the screenshots for the same. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCpq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143715i1AC23FA1A346B8B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCpq.png" alt="0683p000009MCpq.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCcP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145636iF4DD44481A350DF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCcP.png" alt="0683p000009MCcP.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 04 Jan 2017 17:37:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204096#M5114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T17:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204097#M5115</link>
      <description>Dear Harkirat,&lt;BR /&gt;Thanks for reply , i want to include the logoc in the same job which i made it , please have a look at it above screen shots are attached</description>
      <pubDate>Wed, 04 Jan 2017 17:50:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204097#M5115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T17:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204098#M5116</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi ,&lt;BR /&gt;You can do it ,it is &amp;nbsp;pretty simple .&lt;BR /&gt;tfilelist &amp;gt; tfileinputdelimited&amp;gt;tmap &amp;gt; tfileout &amp;gt;tjava&lt;BR /&gt;In tjava component , you can use the global variable ,which will help you to print the filename and row count of file ,which is being processed by tfilelist.Below are the screenshots for the same.&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/195095/mini_blob_20170104-0939.png"&gt;195095/mini_blob_20170104-0939.png&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/195095/mini_blob_20170104-0940.png"&gt;195095/mini_blob_20170104-0940.png&lt;/A&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;i need to find the file count not the file row count&amp;nbsp;</description>
      <pubDate>Wed, 04 Jan 2017 17:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204098#M5116</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204099#M5117</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Dear Shong,&lt;BR /&gt;In this job , if there are 10 files in the directory , how will i find the count of files in the same job ?&lt;BR /&gt;any global variable function ?&lt;BR /&gt;Can you suggest?&lt;BR /&gt;Thanks&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Dear Shong,
&lt;BR /&gt;How can i find the total files in a particular folder?
&lt;BR /&gt;In the same job i want to find the total files , can you suggest please?</description>
      <pubDate>Fri, 06 Jan 2017 18:03:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204099#M5117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-06T18:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204100#M5118</link>
      <description>Hi 
&lt;BR /&gt;There is a global variable that counts the total number of files are found in the directory. 
&lt;BR /&gt;((Integer)globalMap.get("tFileList_1_NB_FILE")) 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 09 Jan 2017 03:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204100#M5118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T03:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204101#M5119</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt;There is a global variable that counts the total number of files are found in the directory.&lt;BR /&gt;((Integer)globalMap.get("tFileList_1_NB_FILE"))&lt;BR /&gt;Regards&lt;BR /&gt;Shong&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Dear Shong, 
&lt;BR /&gt;I used the same global variable , but its giving me sequence number for every row. 
&lt;BR /&gt;ex: if there are 40 files in the folder .&amp;nbsp; 
&lt;BR /&gt;it will give me sequence&amp;nbsp; 
&lt;BR /&gt;1 
&lt;BR /&gt;2 
&lt;BR /&gt;3 
&lt;BR /&gt;4. 
&lt;BR /&gt;. 
&lt;BR /&gt;. 
&lt;BR /&gt;.till 40 
&lt;BR /&gt;I want 40 to display to every where instead of sequence.</description>
      <pubDate>Mon, 09 Jan 2017 04:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204101#M5119</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-09T04:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] unable to count file row count</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204102#M5120</link>
      <description>Where do you use this global variable? It should be used in next subjob if you want to get the total number of files, eg:
&lt;BR /&gt;tfilelist--iterate...
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;|
&lt;BR /&gt;onsubjobok
&lt;BR /&gt;&amp;nbsp; &amp;nbsp;|
&lt;BR /&gt;tjava
&lt;BR /&gt;on tJava, print the value of this global variable.</description>
      <pubDate>Tue, 10 Jan 2017 06:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-unable-to-count-file-row-count/m-p/2204102#M5120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-10T06:16:04Z</dc:date>
    </item>
  </channel>
</rss>

