<?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 failed and their reason should capture in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95625#M15359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The free Script Log Analyzer tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Qlikview Cookbook: Script Log Analyzer &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/recipes/download-info/script-log-analyzer/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com/recipes/download-info/script-log-analyzer/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loads logs and flags those that are failing.&amp;nbsp; You could use that as a base, Should be easy enough to update to capture some error reasons by looking for "Error:" in the script text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also consider a different approach and read the C:\ProgramData\QlikTech\DistributionService\TaskResults files instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.easyqlik.com" rel="nofollow" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2018 17:38:25 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-10-08T17:38:25Z</dc:date>
    <item>
      <title>script failed and their reason should capture</title>
      <link>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95621#M15355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a requirement where I will load all server logs like (qvd extractor document logs).If my script execution is failed then I wil create flag Script_Failed ='Y' else N.If flag Y then I want to fetch the error like syantax error or anything .But if it is&amp;nbsp; succsful then null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="119" style="border: 1px solid rgb(0, 0, 0); width: 318px; height: 84px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Script failed&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Header 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Sctipt Failed&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Error&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;sysntax error &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Y&lt;/TD&gt;&lt;TD&gt;Unknown statement&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;N&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rupali Ethape.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/34510"&gt;kaushik.solanki&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌&lt;A href="https://community.qlik.com/qlik-users/285908"&gt;vatr841029&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 08:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95621#M15355</guid>
      <dc:creator>rupaliqlik</dc:creator>
      <dc:date>2018-09-21T08:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: script failed and their reason should capture</title>
      <link>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95622#M15356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Set &lt;STRONG&gt;ErrorMode=0;&lt;/STRONG&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;&amp;lt;Your Script here&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len('$(ScriptError)')=0, 'N', 'Y') as &lt;STRONG&gt; [Script failed]&lt;/STRONG&gt;,&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(ScriptError)' as Header2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;AutoGenerate 1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 10:21:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95622#M15356</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-09-21T10:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: script failed and their reason should capture</title>
      <link>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95623#M15357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Hi Tresesco B ,&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; My main concern is that how to load log file and captur error .I want to write a script.How to write a script to capture error flag?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2018 18:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95623#M15357</guid>
      <dc:creator>rupaliqlik</dc:creator>
      <dc:date>2018-09-21T18:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: script failed and their reason should capture</title>
      <link>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95624#M15358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Difficult to load your log files into Qlik platform. Instead, We have tools to understand where that error occurs. Moreover, We can skip that error using &lt;STRONG&gt;SET ErrorMode = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 13:54:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95624#M15358</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-10-08T13:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: script failed and their reason should capture</title>
      <link>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95625#M15359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The free Script Log Analyzer tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Qlikview Cookbook: Script Log Analyzer &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com/recipes/download-info/script-log-analyzer/" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com/recipes/download-info/script-log-analyzer/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loads logs and flags those that are failing.&amp;nbsp; You could use that as a base, Should be easy enough to update to capture some error reasons by looking for "Error:" in the script text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also consider a different approach and read the C:\ProgramData\QlikTech\DistributionService\TaskResults files instead. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.easyqlik.com" rel="nofollow" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2018 17:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/script-failed-and-their-reason-should-capture/m-p/95625#M15359</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-10-08T17:38:25Z</dc:date>
    </item>
  </channel>
</rss>

