<?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 How to interrupt reload and throw error if field is empty? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223220#M75755</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In order to interrupt script execution you can use "&lt;B&gt;exit script&lt;/B&gt;".&lt;BR /&gt;With the &lt;B&gt;trace&lt;/B&gt; statement you can write error messages into log file and script execution progress window.&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Apr 2010 09:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-04-23T09:19:17Z</dc:date>
    <item>
      <title>How to interrupt reload and throw error if field is empty?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223218#M75753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;BR /&gt;&lt;BR /&gt;I load data from excel files and I want to interrupt reload and throw error if some of column cell is empty.&lt;BR /&gt;&lt;BR /&gt;Some ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 08:49:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223218#M75753</guid>
      <dc:creator />
      <dc:date>2010-04-23T08:49:32Z</dc:date>
    </item>
    <item>
      <title>How to interrupt reload and throw error if field is empty?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223219#M75754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this dont throw error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;load&lt;BR /&gt;if(len(column1)=0, 1/0, column1) as Column1&lt;BR /&gt;from ......&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 09:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223219#M75754</guid>
      <dc:creator />
      <dc:date>2010-04-23T09:07:04Z</dc:date>
    </item>
    <item>
      <title>How to interrupt reload and throw error if field is empty?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223220#M75755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In order to interrupt script execution you can use "&lt;B&gt;exit script&lt;/B&gt;".&lt;BR /&gt;With the &lt;B&gt;trace&lt;/B&gt; statement you can write error messages into log file and script execution progress window.&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 09:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223220#M75755</guid>
      <dc:creator />
      <dc:date>2010-04-23T09:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt reload and throw error if field is empty?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223221#M75756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't found a command to throw exceptions but instead i use a dummy call to a sub that does not exist:&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;if someError then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call ThrowException('Error: some kind of error');&amp;nbsp; // the sub doesn't exist ==&amp;gt; qv error&lt;BR /&gt; end if&lt;/BLOCKQUOTE&gt;&lt;P&gt;This will propagate an error back to the publisher and report the task as failed. If sometime in the future qliktech will implement a (or I learn how of) way to throw exceptions, for instance by letting us set "ScriptError", then it is easy to create the sub ThrowException to use that feature. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 13:33:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223221#M75756</guid>
      <dc:creator />
      <dc:date>2012-07-05T13:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt reload and throw error if field is empty?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223222#M75757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(len(column1)=0, 'error', '') as event&amp;nbsp;&amp;nbsp; // this won't pickup null values.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let idxevent=FieldIndex('event','error');&lt;/P&gt;&lt;P&gt;if idxevent&amp;gt;0 then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from 'field is zero'(qvd); // should be a non existing file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 09:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-interrupt-reload-and-throw-error-if-field-is-empty/m-p/223222#M75757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-10-09T09:30:59Z</dc:date>
    </item>
  </channel>
</rss>

