<?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: How to Get multiple errors with ScriptErrorDetails in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Get-multiple-errors-with-ScriptErrorDetails/m-p/1369401#M616193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LOAD script engine uses an interpreted language. IMHO upon encountering the first error, statement interpretation and/or execution will be aborted. If you have set ErrorMode to zero, the script engine will proceed to the next statement. Otherwise script execution will be aborted altogether.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can only capture one error per statement. However using some clever code, you can capture every first error in every statement. However since the first error in a particular statement (for example "Field Not Found") usually produces a cascade of more-or-less-irrelevant errors in subsequent statements (for example "Missing table"), that may not be very useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 May 2017 07:37:15 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-05-05T07:37:15Z</dc:date>
    <item>
      <title>How to Get multiple errors with ScriptErrorDetails</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Get-multiple-errors-with-ScriptErrorDetails/m-p/1369400#M616192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I'm currently creating a script that should catch the errors using ScriptErrorDetails (eg: Field Not Found). But when using ScriptErrorDetails it only gets the first error it catches. Is there a way to get all the errors in the load statement? For example multiple missing fields. My goal is to create a table that contains all the errors in my script. Below is my sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ErrorMode=0;&amp;nbsp; //would let qlik continue if there is an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample:&lt;/P&gt;&lt;P&gt;LOAD Datesdsd, //Date (purposedly typed in an incorrect field)&lt;/P&gt;&lt;P&gt;[Application ID]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Documents\Working Hours Calendar.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is [Sample Date]);&lt;/P&gt;&lt;P&gt;Let vErrorDetails0 = ScriptErrorDetails; //just gets the 1st error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Holidays:&lt;/P&gt;&lt;P&gt;LOAD Holiday_Dtsda, //Holiday_Dt (purposedly typed in an incorrect field)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Holiday_Type&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\Documents\Working Hours Calendar.xlsx]&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Holidays);&lt;/P&gt;&lt;P&gt;Let vErrorDetails1 = ScriptErrorDetails; //just gets the 1st error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR_TABLE:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[LOAD #, ERRORS&lt;/P&gt;&lt;P&gt;LOAD 1, '$(vErrorDetails0)'&lt;/P&gt;&lt;P&gt;LOAD 2, '$(vErrorDetails1)'];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR_TABLE1:&lt;/P&gt;&lt;P&gt;LOAD [LOAD #] as LOAD_NO, ERRORS as ERROR&lt;/P&gt;&lt;P&gt;RESIDENT ERROR_TABLE&lt;/P&gt;&lt;P&gt;WHERE ERRORS &amp;lt;&amp;gt; '';&lt;/P&gt;&lt;P&gt;//whows only errors&lt;/P&gt;&lt;P&gt;//this table would be stored and will be populated incrementally&lt;/P&gt;&lt;P&gt;DROP TABLE ERROR_TABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 03:07:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Get-multiple-errors-with-ScriptErrorDetails/m-p/1369400#M616192</guid>
      <dc:creator />
      <dc:date>2017-05-05T03:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Get multiple errors with ScriptErrorDetails</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Get-multiple-errors-with-ScriptErrorDetails/m-p/1369401#M616193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LOAD script engine uses an interpreted language. IMHO upon encountering the first error, statement interpretation and/or execution will be aborted. If you have set ErrorMode to zero, the script engine will proceed to the next statement. Otherwise script execution will be aborted altogether.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you can only capture one error per statement. However using some clever code, you can capture every first error in every statement. However since the first error in a particular statement (for example "Field Not Found") usually produces a cascade of more-or-less-irrelevant errors in subsequent statements (for example "Missing table"), that may not be very useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 May 2017 07:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Get-multiple-errors-with-ScriptErrorDetails/m-p/1369401#M616193</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-05-05T07:37:15Z</dc:date>
    </item>
  </channel>
</rss>

