<?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 Tracking an Error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Tracking-an-Error/m-p/1723441#M451916</link>
    <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I have following data load script in my QV file. This runs perfectly. But I am unable to track the error in file&amp;nbsp; correctly with insufficent details such as file name. Also I want to show the file name that is being run during the script execution. Kindly help me me solve those issues please.&lt;/P&gt;&lt;P&gt;Set ErrorMode = 0;&lt;BR /&gt;For each vFileName in Filelist ('Z:\CLAIMS_NEW_2020\MAY\??CLMMAY.xlsx')&lt;BR /&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD 0 as dummy AutoGenerate 0;&lt;/P&gt;&lt;P&gt;Concatenate (Data)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(vFileName)&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;Next vFileName;&lt;BR /&gt;DROP FIELD dummy;&lt;BR /&gt;ErrorList:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;First 1 Load&lt;/P&gt;&lt;P&gt;Date(today(),'YYYYMMDD') As ExecuteDate,&lt;BR /&gt;FileName() As FileName,&lt;BR /&gt;'$(ScriptErrorCount)' As Error_Seq,&lt;BR /&gt;'$(ScriptError)' As ErrorName,&lt;BR /&gt;'$(ScriptErrorDetails)' As ErrorDetail&lt;BR /&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error log file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="upaliwije_0-1593511586256.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36560iD07CB64D2649C613/image-size/medium?v=v2&amp;amp;px=400" role="button" title="upaliwije_0-1593511586256.png" alt="upaliwije_0-1593511586256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jun 2020 10:01:30 GMT</pubDate>
    <dc:creator>upaliwije</dc:creator>
    <dc:date>2020-06-30T10:01:30Z</dc:date>
    <item>
      <title>Tracking an Error</title>
      <link>https://community.qlik.com/t5/QlikView/Tracking-an-Error/m-p/1723441#M451916</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;I have following data load script in my QV file. This runs perfectly. But I am unable to track the error in file&amp;nbsp; correctly with insufficent details such as file name. Also I want to show the file name that is being run during the script execution. Kindly help me me solve those issues please.&lt;/P&gt;&lt;P&gt;Set ErrorMode = 0;&lt;BR /&gt;For each vFileName in Filelist ('Z:\CLAIMS_NEW_2020\MAY\??CLMMAY.xlsx')&lt;BR /&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD 0 as dummy AutoGenerate 0;&lt;/P&gt;&lt;P&gt;Concatenate (Data)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM&lt;BR /&gt;$(vFileName)&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;BR /&gt;Next vFileName;&lt;BR /&gt;DROP FIELD dummy;&lt;BR /&gt;ErrorList:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;First 1 Load&lt;/P&gt;&lt;P&gt;Date(today(),'YYYYMMDD') As ExecuteDate,&lt;BR /&gt;FileName() As FileName,&lt;BR /&gt;'$(ScriptErrorCount)' As Error_Seq,&lt;BR /&gt;'$(ScriptError)' As ErrorName,&lt;BR /&gt;'$(ScriptErrorDetails)' As ErrorDetail&lt;BR /&gt;AutoGenerate 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;error log file&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="upaliwije_0-1593511586256.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/36560iD07CB64D2649C613/image-size/medium?v=v2&amp;amp;px=400" role="button" title="upaliwije_0-1593511586256.png" alt="upaliwije_0-1593511586256.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 10:01:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tracking-an-Error/m-p/1723441#M451916</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2020-06-30T10:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tracking an Error</title>
      <link>https://community.qlik.com/t5/QlikView/Tracking-an-Error/m-p/1723495#M451917</link>
      <description>&lt;P&gt;I guess you should use:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Date(today(),'YYYYMMDD') As ExecuteDate,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'$(vFileName)'&lt;/FONT&gt;&lt;/STRONG&gt; As FileName,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'$(ScriptErrorCount)' As Error_Seq,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'$(ScriptError)' As ErrorName,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'$(ScriptErrorDetails)' As ErrorDetail&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AutoGenerate 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To see the files in which the error occurred in the logs you have to use:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Set ErrorMode = 0;&lt;BR /&gt;For each vFileName in Filelist ('Z:\CLAIMS_NEW_2020\MAY\??CLMMAY.xlsx')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;TRACE '$(vFileName)';&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 12:20:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Tracking-an-Error/m-p/1723495#M451917</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2020-06-30T12:20:18Z</dc:date>
    </item>
  </channel>
</rss>

