<?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: Error Handling - Add Error Type to a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243539#M847687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got your problem but we don't have efficient way to record this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this once &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/27744"&gt;Error handling in script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Mar 2017 14:43:36 GMT</pubDate>
    <dc:creator>avinashelite</dc:creator>
    <dc:date>2017-03-20T14:43:36Z</dc:date>
    <item>
      <title>Error Handling - Add Error Type to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243536#M847684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script that loads a large quantity of Excel files and I'm trying to the create a table with all the errors (if any) that was encountered during the script load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14900177233445040" jivemacro_uid="_14900177233445040"&gt;
&lt;P&gt;//Create Error Handling List&lt;/P&gt;
&lt;P&gt;Set ErrorMode=0;&lt;/P&gt;
&lt;P&gt;Set ScriptErrorListed=0;&lt;/P&gt;
&lt;P&gt;ErrorList:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename, ErrorType&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;/*&lt;/P&gt;
&lt;P&gt;REST OF SCRIPT HERE&lt;/P&gt;
&lt;P&gt;*/&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//ERROR HANDLING START&lt;/P&gt;
&lt;P&gt;IF ScriptErrorCount &amp;gt; ScriptErrorListed THEN&lt;/P&gt;
&lt;P&gt;CONCATENATE (ErrorList)&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename, ErrorType&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(File), $(ScriptError)&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;ScriptErrorListed = ScriptErrorCount;&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;P&gt;//ERROR HANDLING END&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the code about the ErrorList table is being created and I see the filenames of the files with errors but I cant see the error types (e.g. "Field not found").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully I'm missing something small&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243536#M847684</guid>
      <dc:creator>pjn123pjn123</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling - Add Error Type to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243537#M847685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5342"&gt;Error Handling in Qlikview&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3733"&gt;ErrorHandling in Qlikview&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 13:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243537#M847685</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-03-20T13:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling - Add Error Type to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243538#M847686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply&lt;/P&gt;&lt;P&gt;I did read those files before hand.&lt;/P&gt;&lt;P&gt;My problem is not the way error handling works - My problem is how can I add the last error to an inline table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 14:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243538#M847686</guid>
      <dc:creator>pjn123pjn123</dc:creator>
      <dc:date>2017-03-20T14:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling - Add Error Type to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243539#M847687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got your problem but we don't have efficient way to record this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this once &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/27744"&gt;Error handling in script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 14:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243539#M847687</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2017-03-20T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error Handling - Add Error Type to a table</title>
      <link>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243540#M847689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got the error list to work:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14901609818093079 jive_text_macro" jivemacro_uid="_14901609818093079"&gt;
&lt;P&gt;//ERROR HANDLING START //////////////////////////////////////////////&lt;/P&gt;
&lt;P&gt;LET ErrorTemp123 = replace(replace(ScriptErrorList,chr(10),' | '),chr(13),'');&lt;/P&gt;
&lt;P&gt;ScriptErrorList='';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IF ScriptErrorCount &amp;gt; ScriptErrorListed THEN&lt;/P&gt;
&lt;P&gt;CONCATENATE (ErrorList)&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Filename, ErrorType&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(File), $(ErrorTemp123)&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;ScriptErrorListed = ScriptErrorCount;&lt;/P&gt;
&lt;P&gt;ENDIF&lt;/P&gt;
&lt;P&gt;//ERROR HANDLING END ///////////////////////////////////////////////&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this gives me a nice table with all the files + error message/type of the errors that was found during the load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is very useful if you are loading all the xls files in a folder and you need to know if there where any errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 05:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-Handling-Add-Error-Type-to-a-table/m-p/1243540#M847689</guid>
      <dc:creator>pjn123pjn123</dc:creator>
      <dc:date>2017-03-22T05:39:18Z</dc:date>
    </item>
  </channel>
</rss>

