<?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: Load an application logfile to check for errors in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895188#M311634</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried something, but it won't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorPrep:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(@1, '*exception*', '*error*'), @1, 'N/A') as Log&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (txt, codepage is 1252, no labels, delimiter is ';', msq)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that the application six rows (you can also see those in the table viewer), but you cannot access more than one row in the script or data itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2015 11:04:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-02T11:04:39Z</dc:date>
    <item>
      <title>Load an application logfile to check for errors</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895187#M311633</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;I'm using the User Manager tool to remove licenses that are not in use anymore. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On success, it creates a CSV file that looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No CALs to remove on QVS@Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No Document CALs to remove from 'Dashboard - 150320.qvw' on QVS@Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Removed 6 Document CALs from 'Dashboard.qvw' on QVS@Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Removed 1 Document CALs from 'Dashboard_SH.qvw' on QVS@Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No Document CALs to remove from Dashboard_UAT.qvw' on QVS@Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No Document CALs to remove from 'QVSystemMonitor.qvw' on QVS@Test&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No Document CALs to remove from 'QVSystemMonitor_v5.1.23_sec.qvw' on QVS@Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, errors don't get caught, instead the content of the CSV might look like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.NullReferenceException: Object reference not set to an instance of an object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at PIX.CalInfo.WriteXml(XmlWriter w)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Wrappers.QVSWrapper.CallFunction(String methodName, String iStartElement, String iStartAttribute, IXmlSerializable&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arguments, IXmlSerializable outpar, String&amp;amp; message, Byte[][] attachments)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Wrappers.QVSWrapper.SetCalInfo(CalInfo i_CalInfo)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at QMSBackendCore.Communication.QlikViewServer.SetCalInfo(QlikViewServerResource qvsResource, CalInfo calInfo)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at QMSBackendCore.Service.ServiceImpl.SaveCALConfiguration(CALConfiguration calConfiguration)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to load the csv into my dashboard and check if an error occured or not, How can I?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 11:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895187#M311633</guid>
      <dc:creator />
      <dc:date>2015-06-02T11:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Load an application logfile to check for errors</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895188#M311634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried something, but it won't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ErrorPrep:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; if(wildmatch(@1, '*exception*', '*error*'), @1, 'N/A') as Log&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; (txt, codepage is 1252, no labels, delimiter is ';', msq)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that the application six rows (you can also see those in the table viewer), but you cannot access more than one row in the script or data itself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 11:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895188#M311634</guid>
      <dc:creator />
      <dc:date>2015-06-02T11:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load an application logfile to check for errors</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895189#M311635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A workaround would be to load it as a fixed record file, which can contain several lines.&lt;/P&gt;&lt;P&gt;Then you can do a resident load to pick out the errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;log:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "@1:n" As Log&lt;/P&gt;&lt;P&gt;FROM [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;C:\_QLIKVIEW\CENT.QV\Tickets\18\data\removecal.csv&lt;/SPAN&gt;]&lt;/P&gt;&lt;P&gt;(fix, codepage is 1252, no labels, record is 6 lines);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;errors:&lt;/P&gt;&lt;P&gt;Load Log As Error Resident log where wildmatch(Log, '*exception*', '*error*');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table log;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 11:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895189#M311635</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-06-02T11:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Load an application logfile to check for errors</title>
      <link>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895190#M311636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Ralf, this is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering a bit, as I tried to load with a fixed record, too, and it didn't work. No clue what I did different than you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 06:15:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-an-application-logfile-to-check-for-errors/m-p/895190#M311636</guid>
      <dc:creator />
      <dc:date>2015-06-03T06:15:22Z</dc:date>
    </item>
  </channel>
</rss>

