<?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 Storing Errors from script into table or qvd in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39169#M6609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that QlikView can only catch one error at a time and and even store the number of times errors has occurred as a flag into a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new requirement needs me to store the type of errors that have occurred - file not found, field not found and wrong file format into a table or QVD so I can binary load it to the main app which contains the interface. I am implementing this in the QVD generation app. Any thoughts on how to accomplish this. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 20:54:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-01T20:54:55Z</dc:date>
    <item>
      <title>Storing Errors from script into table or qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39169#M6609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that QlikView can only catch one error at a time and and even store the number of times errors has occurred as a flag into a variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My new requirement needs me to store the type of errors that have occurred - file not found, field not found and wrong file format into a table or QVD so I can binary load it to the main app which contains the interface. I am implementing this in the QVD generation app. Any thoughts on how to accomplish this. Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 20:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39169#M6609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T20:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Errors from script into table or qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39170#M6610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can set the ErrorMode variable to 0&lt;/P&gt;&lt;P&gt;check if there is an error &lt;/P&gt;&lt;P&gt;and trace the error in the log file or in a different log file&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/message/1386414"&gt;Re: Error handling in script&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 21:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39170#M6610</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2018-02-01T21:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Errors from script into table or qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39171#M6611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info. I am working on resolving it. Will post the solution when I get it. It should be helpful to the community&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 17:07:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39171#M6611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-07T17:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Storing Errors from script into table or qvd</title>
      <link>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39172#M6612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;its imprtent to understand that qlik checks for errors for each "STATEMENT" it executes&lt;/P&gt;&lt;P&gt;when using a line like this: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set vErrorVar = $(ScriptError);&lt;/P&gt;&lt;P&gt;to catch the error in the variable, this is also a "STATEMENT", so after its succesfull execution, the ScriptError variable&lt;/P&gt;&lt;P&gt;gets reseted to 0(zero), thats why you cannot keep it anymore.&lt;/P&gt;&lt;P&gt;what i do is use it inside a load......autogenerate statement like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Errormode= 0; // to turn on error capture&lt;/P&gt;&lt;P&gt;//{put your statement/s you want to test if it had errors}&lt;/P&gt;&lt;P&gt;//notice that only an error in&amp;nbsp; last statement will be captured if you use more then one statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;MyScriptErros:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; '$(#ScriptError)' as [Error Number],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; '$(ScriptErrorDetails)'&amp;nbsp; as [Error Details],&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; 'Insert here Text about this specific load and any remarks you have' as [Desc]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; AutoGenerate 1 where not '$(#ScriptError)'=0; //the where here prevents lines been added if no error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SET ErrorMode = 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;now at the end of your script you can store/show the "MyScriptErros" table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;of course this is very simplistic and you can evolve it further:)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;hope it helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Wizardo&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 20:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Storing-Errors-from-script-into-table-or-qvd/m-p/39172#M6612</guid>
      <dc:creator>wizardo</dc:creator>
      <dc:date>2018-02-07T20:49:16Z</dc:date>
    </item>
  </channel>
</rss>

