<?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: Problem in storing ScriptErrorList to QVD in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156301#M377193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="logfile.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/130578_logfile.PNG" style="width: 620px; height: 199px;" /&gt;&lt;/P&gt;&lt;P&gt;why not generate a logfile and use that as input?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Joris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Jul 2016 19:44:17 GMT</pubDate>
    <dc:creator>joris_lansdaal</dc:creator>
    <dc:date>2016-07-07T19:44:17Z</dc:date>
    <item>
      <title>Problem in storing ScriptErrorList to QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156300#M377192</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 facing a problem right now where I need to log the errors that we're getting from our QVWs. I don't have any problem in storing the ScriptErrorCount and ScriptErrorDetails but having a problem on storing the ScriptErrorList to QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ScriptErrorList value look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field Not Found&lt;/P&gt;&lt;P&gt;General Error&lt;/P&gt;&lt;P&gt;General Error&lt;/P&gt;&lt;P&gt;Table Not Found&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to store it using the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14654457383969542" jivemacro_uid="_14654457383969542" modifiedtitle="true"&gt;
&lt;P&gt;LET vErrorDetail = ScriptErrorDetails;&lt;/P&gt;
&lt;P&gt;LET vScriptErrorCount = ScriptErrorCount;&lt;/P&gt;
&lt;P&gt;LET vErrorList = ScriptErrorList;&lt;/P&gt;
&lt;P&gt;LET vErrorDate = Date(Now(),'YYYY-MM-DD hh:mm:ss');&lt;/P&gt;
&lt;P&gt;LET vQVWName = DocumentName();&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;ErrorLogs:&lt;/P&gt;
&lt;P&gt;LOAD '$(vQVWName)' AS [QVWName],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; '$(vScriptErrorCount)' AS [ErrorCount],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Replace($(vErrorList),chr(10),chr(44)) AS [ErrorList],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; '$(vErrorDetail)' AS [ErrorDetail],&lt;/P&gt;
&lt;P&gt;&amp;nbsp; '$(vErrorDate)' AS ErrorDate&lt;/P&gt;
&lt;P&gt;AutoGenerate (1)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;STORE ErrorLogs INTO QVWErrorLogs.qvd;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the result in QVD looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;QVWName&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ErrorCount&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ErrorList&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ErrorDetail&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ErrorDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;QVWName.qvw&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Field Not Found&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Table not found&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2016-06-09 10:22:56&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to see is somewhat looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333px; text-align: center;"&gt;QVWName&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333px; text-align: center;"&gt;ErrorCount&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333px; text-align: center;"&gt;ErrorList&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333px; text-align: center;"&gt;ErrorDetail&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG style="color: #ffffff; font-size: 13.3333px; text-align: center;"&gt;ErrorDate&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;QVWName.qvw&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Field Not Found, General Error, General Error, Table Not Found&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Table not found&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2016-06-09 10:22:56&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatlty appreciated. &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, 09 Jun 2016 05:24:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156300#M377192</guid>
      <dc:creator />
      <dc:date>2016-06-09T05:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in storing ScriptErrorList to QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156301#M377193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="logfile.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/130578_logfile.PNG" style="width: 620px; height: 199px;" /&gt;&lt;/P&gt;&lt;P&gt;why not generate a logfile and use that as input?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards Joris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 19:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156301#M377193</guid>
      <dc:creator>joris_lansdaal</dc:creator>
      <dc:date>2016-07-07T19:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in storing ScriptErrorList to QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156302#M377194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;replace(ScriptErrorList,chr(13) &amp;amp; chr(10), chr(44))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 20:10:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156302#M377194</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2016-07-07T20:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in storing ScriptErrorList to QVD</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156303#M377195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will need '' around the $(vErrorList) and as Rakesh suggested, if your intent is to replace the newlines with commas, use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace('$(vErrorList)',chr(13)&amp;amp; chr(10),chr(44)) AS [ErrorList]&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 20:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-in-storing-ScriptErrorList-to-QVD/m-p/1156303#M377195</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-07-07T20:30:20Z</dc:date>
    </item>
  </channel>
</rss>

