<?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: Script Issue in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1803184#M65177</link>
    <description>&lt;P&gt;You need to figure out where the issue lies. What happens if you load without the where statement. Do you get any output then?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;for each FoundFile in filelist( 'lib://ServerLogFolder/Script ' &amp;amp; '\*.log' )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;left(Right('$(FoundFile)', len('$(FoundFile)') -index('$(FoundFile)','/',-1)),36) as App_ID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,Replace(@1,'/','\') as QVD_FILES&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,FileTime('$(FoundFile)') as ReloadTime&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM '$(FoundFile)'(txt, utf8, no labels, delimiter is ',', msq)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;next FoundFile;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 14:52:48 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2021-04-27T14:52:48Z</dc:date>
    <item>
      <title>Script Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1802863#M65131</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I have a very simple script as below and not returning any data. I can see log files under&amp;nbsp;ServerLogFolder/Script&amp;nbsp;&lt;/P&gt;&lt;P&gt;for each FoundFile in filelist( 'lib://ServerLogFolder/Script ' &amp;amp; '\*.log' )&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;left(Right('$(FoundFile)', len('$(FoundFile)') -index('$(FoundFile)','/',-1)),36) as App_ID&lt;BR /&gt;,Replace(@1,'/','\') as QVD_FILES&lt;BR /&gt;,FileTime('$(FoundFile)') as ReloadTime&lt;BR /&gt;FROM '$(FoundFile)'(txt, utf8, no labels, delimiter is ',', msq)&lt;BR /&gt;where Upper(@1) like '*.QVD*';next FoundFile&lt;/P&gt;&lt;P&gt;Can some one please help me to identify the cause for this issue?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 20:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1802863#M65131</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-04-26T20:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Script Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1802918#M65135</link>
      <description>&lt;P&gt;Upper(@1) like '*.QVD*'&amp;nbsp; could be your issue.&lt;/P&gt;&lt;P&gt;Try using wildmatch instead.&lt;/P&gt;&lt;P&gt;WildMatch(@1, '*.QVD*')&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 04:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1802918#M65135</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-04-27T04:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Script Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1803131#M65166</link>
      <description>&lt;P&gt;Still don't work.&lt;/P&gt;&lt;P&gt;for each FoundFile in filelist( 'lib://ServerLogFolder/Script ' &amp;amp; '\*.log' )&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;left(Right('$(FoundFile)', len('$(FoundFile)') -index('$(FoundFile)','/',-1)),36) as App_ID&lt;BR /&gt;,Replace(@1,'/','\') as QVD_FILES&lt;BR /&gt;,FileTime('$(FoundFile)') as ReloadTime&lt;BR /&gt;FROM '$(FoundFile)'(txt, utf8, no labels, delimiter is ',', msq)&lt;BR /&gt;where WildMatch(@1, '*.QVD*');&lt;BR /&gt;//where Upper(@1) like '*.QVD*';&lt;/P&gt;&lt;P&gt;next FoundFile;&lt;/P&gt;&lt;P&gt;Attached is the screen shot of the log files under the script folder.&lt;/P&gt;&lt;P&gt;Thanks&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ScriptLogs.jpg" style="width: 721px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/53806iF45481610DCAD6F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="ScriptLogs.jpg" alt="ScriptLogs.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 12:47:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1803131#M65166</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-04-27T12:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Script Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1803184#M65177</link>
      <description>&lt;P&gt;You need to figure out where the issue lies. What happens if you load without the where statement. Do you get any output then?&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;for each FoundFile in filelist( 'lib://ServerLogFolder/Script ' &amp;amp; '\*.log' )&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Load&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;left(Right('$(FoundFile)', len('$(FoundFile)') -index('$(FoundFile)','/',-1)),36) as App_ID&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,Replace(@1,'/','\') as QVD_FILES&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,FileTime('$(FoundFile)') as ReloadTime&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;FROM '$(FoundFile)'(txt, utf8, no labels, delimiter is ',', msq)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;next FoundFile;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 14:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1803184#M65177</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2021-04-27T14:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Script Issue</title>
      <link>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1803198#M65178</link>
      <description>&lt;P&gt;Well, I did tried with out the where condition and still no records.&lt;/P&gt;&lt;P&gt;Will do some additional debugging..&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 15:14:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Script-Issue/m-p/1803198#M65178</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-04-27T15:14:31Z</dc:date>
    </item>
  </channel>
</rss>

