<?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: Loading Script output shows huge no of lines fetch's in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105307#M7149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you loading only one file then this should not happen. &lt;/P&gt;&lt;P&gt;Try loading the CSV file directly in a different qvf and check the number of records. If the records are 1000, as expected then there is something wrong with the code &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt; Activity.qvd already has data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2018 20:32:30 GMT</pubDate>
    <dc:creator>vamsee</dc:creator>
    <dc:date>2018-11-05T20:32:30Z</dc:date>
    <item>
      <title>Loading Script output shows huge no of lines fetch's</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105301#M7143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my loading script, i'm loading .CSV files on daily basis and incremental basis. I observed in the output when loading my script like the no. of lines fetched from .CSV file is showing as Lakh's &amp;amp; Crore's but the particular .CSV is having only around 100's &amp;amp; 1000's of records only. Also attached the output files here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to identify the issue and fix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nandhakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 05:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105301#M7143</guid>
      <dc:creator>nandhaadjame200</dc:creator>
      <dc:date>2018-11-05T05:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Script output shows huge no of lines fetch's</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105302#M7144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have looked at you attached script and also the log. I do see some of the statements where the activity QVD loads more than a 1 lakh files.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217555_pastedImage_2.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the qvd's and also you could write a trace statements and sub counters like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&lt;STRONG&gt;SUB&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;Counter&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;TableName&lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;Let&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;vCount&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;='Rows fetched for table ' &amp;amp; '$(TableName)' &amp;amp; ': ' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Num&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('$(TableName)'),'#,##0');&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;Trace&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 10pt;"&gt;$(vCount)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;ENDSUB&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;CALL&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;Counter&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;('Activity'); /** Inside the for loop and after IF statements **/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 16:28:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105302#M7144</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2018-11-05T16:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Script output shows huge no of lines fetch's</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105303#M7145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF the issue still persists, try loading some handful of files into a different folder, change the $(vRoot), $(vQVDRoot)&amp;nbsp; and check.&lt;/P&gt;&lt;P&gt;This way you could also test your if statements for Activity file not found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 16:31:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105303#M7145</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2018-11-05T16:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Script output shows huge no of lines fetch's</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105304#M7146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamsee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tested based on your guidance and found like - I've a csv file with 1000 records but it is showing as "Lines Fetched: 1529" in output. I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to fix this. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nandhakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 18:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105304#M7146</guid>
      <dc:creator>nandhaadjame200</dc:creator>
      <dc:date>2018-11-05T18:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Script output shows huge no of lines fetch's</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105305#M7147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you are concatenating your CSV's the value shown is a sum of records in the current file and the previously loaded files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg:&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;LOAD 'Test' as Column&lt;/P&gt;&lt;P&gt;Autogenerate(100);&lt;/P&gt;&lt;P&gt;Concantenate(A)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD 'Test' as Column&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Autogenerate(200);&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Would result in 300 records for Table A;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 18:40:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105305#M7147</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2018-11-05T18:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Script output shows huge no of lines fetch's</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105306#M7148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, objective is to do incremental loading of CSV files which comes in on daily basis. But here i'm i tested with single CSV file for now and it is still showing excess record fetched in output but file is actually having less records than shown count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 20:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105306#M7148</guid>
      <dc:creator>nandhaadjame200</dc:creator>
      <dc:date>2018-11-05T20:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Script output shows huge no of lines fetch's</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105307#M7149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you loading only one file then this should not happen. &lt;/P&gt;&lt;P&gt;Try loading the CSV file directly in a different qvf and check the number of records. If the records are 1000, as expected then there is something wrong with the code &lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt; Activity.qvd already has data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2018 20:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105307#M7149</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2018-11-05T20:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loading Script output shows huge no of lines fetch's</title>
      <link>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105308#M7150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vamsee&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found the bug. I've to drop the "Activity" Table after the reload process for each metric because the same table is used in another metric script with same headers, so the records remains in the table and duplicated until script ends. So, i've dropped the "Activity" table in each metric script and finally fixed the bug and now it is all working good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your prompt reply and your guidance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Nandhakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 09:51:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loading-Script-output-shows-huge-no-of-lines-fetch-s/m-p/105308#M7150</guid>
      <dc:creator>nandhaadjame200</dc:creator>
      <dc:date>2018-11-06T09:51:13Z</dc:date>
    </item>
  </channel>
</rss>

