<?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: Creating a Failure Warning When Exporting a CSV in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682213#M247356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you have an example to export to csv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2014 19:49:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-12-16T19:49:08Z</dc:date>
    <item>
      <title>Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682205#M247348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of creating a warning in my QV application so that, should any of the several csv exports I have fail, then it will create a warning message/flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had an issue recently whereby a couple of the csv files were not generated, but I did not know anything about this until it was raised to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks guys!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682205#M247348</guid>
      <dc:creator />
      <dc:date>2014-08-14T13:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682206#M247349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as far as I understand you're creating csv exports in the script ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, what do you mean by fail ? The file is not created ? The file is empty ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the file is not created, you could create a for each loop with fileexist('yourfile'). If the file exists the script will enter the loop and you can set a variable that says that your file was created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable is not set then log it and exit gracefully or engage corrective action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It the file is created, load it into a temporary table, check its number of rows compared to what is expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it fails then log it and exit gracefully or engage corrective action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would that work ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682206#M247349</guid>
      <dc:creator>lft</dc:creator>
      <dc:date>2014-08-14T13:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682207#M247350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe checking if the file exists?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF len(FileSize('somefile.csv')) &amp;gt; 0 THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; trace 'found';&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp; trace 'not found';&lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:19:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682207#M247350</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-08-14T13:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682208#M247351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Loic,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for getting back to me so quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I am creating csv's which are output to a location where this is picked up by FTP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The csv files are generated each week, on a Monday and are post-fixed with the date of the file - eg: FILENAME-DDMMYYYY.csv (TXT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my scenario, the files were not generated one Monday, so I wondered if, in case this happened again, I could create a warning message or flag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understand you correctly, are you suggesting to create a loop so if the csv files have been generated, then exit gracefully, but if they haven't, then to engage corrective action?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:26:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682208#M247351</guid>
      <dc:creator />
      <dc:date>2014-08-14T13:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682209#M247352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - thanks for getting back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested this and it returns 'no found' even though a csv file has been generated - odd!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might work - I'll have a think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682209#M247352</guid>
      <dc:creator />
      <dc:date>2014-08-14T13:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682210#M247353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following on from Massimo's answer, it got me thinking...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for Qlikview to send a warning email to a person/people/group if the csv has not been generated - I'm thinking it may be linked to &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF len(FileSize('somefile.csv')) &amp;gt; 0 THEN&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; trace 'found';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;else&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; trace 'not found';&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ENDIF;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then if result is 'not found' to send the warning email?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 13:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682210#M247353</guid>
      <dc:creator />
      <dc:date>2014-08-14T13:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682211#M247354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I have found this link which may help me - thanks again for your responses guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-3556" title="http://community.qlik.com/docs/DOC-3556"&gt;http://community.qlik.com/docs/DOC-3556&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682211#M247354</guid>
      <dc:creator />
      <dc:date>2014-08-14T14:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682212#M247355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in my test I get found / not found, below the script I used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;directory;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;t:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * inline [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RevenueCategory, Sales&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Category 1,50&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Category 2,40&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Contracts,110&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;store t into t.txt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// this returns found&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF len(FileSize('t.txt')) &amp;gt; 0 THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace 'found';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;else&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace 'not found';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;// this not fund&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;IF len(FileSize('notexists.txt')) &amp;gt; 0 THEN&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace 'found';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;else&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; trace 'not found';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ENDIF;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Aug 2014 14:05:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682212#M247355</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-08-14T14:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Failure Warning When Exporting a CSV</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682213#M247356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you have an example to export to csv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 19:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Failure-Warning-When-Exporting-a-CSV/m-p/682213#M247356</guid>
      <dc:creator />
      <dc:date>2014-12-16T19:49:08Z</dc:date>
    </item>
  </channel>
</rss>

