<?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 Email notification on reload error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217663#M70849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I see the script didn't paste properly. It is:&lt;/P&gt;&lt;P&gt;Set ErrorMode = '0' ;&lt;/P&gt;&lt;P&gt;SQL SELECT Colors, Color_ID FROM SMDSA.dbo.tbl_Colors&lt;/P&gt;&lt;P&gt;Set ErrorMode ='1' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Dec 2010 15:05:02 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-08T15:05:02Z</dc:date>
    <item>
      <title>Email notification on reload error</title>
      <link>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217662#M70848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I have just read a post where Gordon Savage has answered the question of setting up email notification for reload errors. I tried his response, set up the Mail on User Preferences and added an alert through the tools menu but I'm unable to get an error with this sample code:&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;&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;&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;BR /&gt;&lt;BR /&gt; &lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;SET&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SET&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;ErrorMode = '1' ; ErrorMode = '0';&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;SQL&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;SELECT&lt;/B&gt; Colors, "Color_ID" &lt;B&gt;FROM&lt;/B&gt; SMDSA.dbo."tbl_Colors";&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;IMG height="514" src="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.08.92.57/scripterror.JPG" width="629" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my Alert, I set it up as above&lt;/P&gt;&lt;P&gt;I'm probably doing something stupid wrong but please could someone help me.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217662#M70848</guid>
      <dc:creator />
      <dc:date>2010-12-08T15:02:06Z</dc:date>
    </item>
    <item>
      <title>Email notification on reload error</title>
      <link>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217663#M70849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I see the script didn't paste properly. It is:&lt;/P&gt;&lt;P&gt;Set ErrorMode = '0' ;&lt;/P&gt;&lt;P&gt;SQL SELECT Colors, Color_ID FROM SMDSA.dbo.tbl_Colors&lt;/P&gt;&lt;P&gt;Set ErrorMode ='1' ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217663#M70849</guid>
      <dc:creator />
      <dc:date>2010-12-08T15:05:02Z</dc:date>
    </item>
    <item>
      <title>Email notification on reload error</title>
      <link>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217664#M70850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The alert is set for batch reloads only - are you reloading it interactively?&lt;/P&gt;&lt;P&gt;It shouldnt make any difference but set ErrorMode as a numeric value rather than as a string literal ie&lt;/P&gt;&lt;P&gt;SET ErrorMode=0; // ignore any script errors&lt;/P&gt;&lt;P&gt;(load statements for which to trap errors but continue processing here)&lt;/P&gt;&lt;P&gt;SET ErrorMode=1; // reset to default (halt and prompt)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;P&gt;PS! Hope I dont get your errors - forgot to hide my email address in the original post!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217664#M70850</guid>
      <dc:creator />
      <dc:date>2010-12-08T15:17:43Z</dc:date>
    </item>
    <item>
      <title>Email notification on reload error</title>
      <link>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217665#M70851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gordon,&lt;/P&gt;&lt;P&gt;thanks for the response.&lt;/P&gt;&lt;P&gt;I just want to test the functionality of the Error Alert but loading something simple in the script and intentionally creating a reload error which will then send the email.&lt;/P&gt;&lt;P&gt;Would that be done in a different way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217665#M70851</guid>
      <dc:creator />
      <dc:date>2010-12-08T15:28:14Z</dc:date>
    </item>
    <item>
      <title>Email notification on reload error</title>
      <link>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217666#M70852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use it for when an expected file is missing, so you could use something like:&lt;/P&gt;&lt;P&gt;SET ErrorMode=0; // ignore any script errors&lt;/P&gt;&lt;P&gt;LOAD *&lt;BR /&gt;FROM&lt;BR /&gt;[nonexistant.xls]&lt;BR /&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;&lt;P&gt;SET ErrorMode=1; // reset to default (halt and prompt)&lt;/P&gt;&lt;P&gt;to test how it works.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217666#M70852</guid>
      <dc:creator />
      <dc:date>2010-12-08T15:35:53Z</dc:date>
    </item>
    <item>
      <title>Email notification on reload error</title>
      <link>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217667#M70853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Gordon,&lt;/P&gt;&lt;P&gt;I've got it working but I have a little issue that on a scheduled task, when the reload fails, Qlikview's Script Error window (Below) doesn't close. The Batch file used in the reload closes due to the Scheduled task setting of 'Stop the task if it runs for x' minutes' but the Script Error Window remains open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get it to close automatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/1856.qvpic.bmp"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/1856.qvpic.bmp" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help, I appreciate it.&lt;/P&gt;&lt;P&gt;Shane&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 08:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217667#M70853</guid>
      <dc:creator />
      <dc:date>2010-12-09T08:15:49Z</dc:date>
    </item>
    <item>
      <title>Email notification on reload error</title>
      <link>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217668#M70854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure why that should be - I suspect its because the error comes from the ODBC driver rather than directly from the script as it works OK with a native 'LOAD' statement. Having said that, why is Qlikview reporting the error?&lt;/P&gt;&lt;P&gt;You may need to contact support for help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gordon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 11:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Email-notification-on-reload-error/m-p/217668#M70854</guid>
      <dc:creator />
      <dc:date>2010-12-09T11:09:41Z</dc:date>
    </item>
  </channel>
</rss>

