<?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: MapSubstring, HTML, Clob, script load error no error message. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45649#M7609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Peter that's exactly it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MapSubString() part ends the script, no error message or anything saying why it just terminates and then I get the usual script has failed do you wish to reload error.&amp;nbsp; But as far as I can see the syntax is correct.&amp;nbsp; I have an idea that the map table seems to contain two blank values so I'm going to test if that is an issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2018 08:35:43 GMT</pubDate>
    <dc:creator>weephil76</dc:creator>
    <dc:date>2018-02-06T08:35:43Z</dc:date>
    <item>
      <title>MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45641#M7601</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 fairly new to Qlikview so apologies if any of this is just me being silly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the MapSubstring function to remove HTML formatting from a Oracle CLOB field retrieved from a QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the mapping table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRLD_HtmlTag_Map:&amp;nbsp; &lt;/P&gt;&lt;P&gt;mapping LOAD&lt;/P&gt;&lt;P&gt;DISTINCT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&amp;lt;' &amp;amp; TextBetween('&amp;lt;' &amp;amp; SubField([PRLD Asset Long Desc], '&amp;lt;'),'&amp;lt;','&amp;gt;') &amp;amp; '&amp;gt;' as HtmlTag, '' as Substitute&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\7.Maintenance\Data\PR_LONGDESC.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I am trying to apply that to the following load from the same QVD:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[PRLDESC]: &lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PRLD Key] as [%PRLDKeyID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MapSubstring('PRLD_HtmlTag_Map',[PRLD Asset Long Desc]) as PRLD_Resolved, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [PRLD ContentUID]&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\7.Maintenance\Data\PR_LONGDESC.qvd]&lt;/P&gt;&lt;P&gt;(qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked and if I change the mapping load to just a load then I can see HtmlTag and Substitute are populated as expected.&amp;nbsp; When I try and excute the LOAD for PRLDESC then I get no error displayed it just says that the script is finished and then says there has been an error do I wish to reload the last data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me what I am doing wrong?&amp;nbsp; Have been stuck on this for days now.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 15:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45641#M7601</guid>
      <dc:creator>weephil76</dc:creator>
      <dc:date>2018-02-02T15:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45642#M7602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Care to post some example data? A single column in a QVD? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 16:52:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45642#M7602</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-02T16:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45643#M7603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No can do I'm afraid, sensitive company data so won't be able to post. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you feel this is due to the data, if you can tell me what to look for then I can try and fix this myself?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 08:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45643#M7603</guid>
      <dc:creator>weephil76</dc:creator>
      <dc:date>2018-02-05T08:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45644#M7604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting !! Can you post few rows how DB carrying?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 13:40:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45644#M7604</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-02-05T13:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45645#M7605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not completely sure what you are asking but if its to post data then no I cannot do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy to answer any questions anyone has but I'd be astonished if anyone working with company confidential data actually posted their data so I'm pretty astonished that people ask for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2018 14:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45645#M7605</guid>
      <dc:creator>weephil76</dc:creator>
      <dc:date>2018-02-05T14:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45646#M7606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We never ask data from live, but to interpret or decipher the some input atleast we need to look some data set even dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 00:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45646#M7606</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-02-06T00:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45647#M7607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understand the idea of what you are trying to accomplish, but can't understand your script. Can you post at least one line of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[PRLD Asset Long Desc] data to give us an idea? You can anonymize the contained data, I just want to understand the structure. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 03:48:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45647#M7607</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-02-06T03:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45648#M7608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PRLD Asset Long Desc] value contains multiple HTML tags (e.g. according to the script "them things enclosed in &amp;lt; and &amp;gt;"). Using an ingenious (although not very efficient) trick, Philip maps every (because of the 2-parameter SubField() call) occurence of an HTML tag to an empty string and stores unique copies in a Mapping Table (after reattaching the &amp;lt; &amp;amp; &amp;gt; markers that were lost by calling TextBetween()). He then uses this same mapping table in a MapSubString() call to (try to) obliterate all HTML tags in each [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;PRLD Asset Long Desc] value.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I do apologise if I am explaining the obvious. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 08:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45648#M7608</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-06T08:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45649#M7609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Peter that's exactly it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;MapSubString() part ends the script, no error message or anything saying why it just terminates and then I get the usual script has failed do you wish to reload error.&amp;nbsp; But as far as I can see the syntax is correct.&amp;nbsp; I have an idea that the map table seems to contain two blank values so I'm going to test if that is an issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 08:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45649#M7609</guid>
      <dc:creator>weephil76</dc:creator>
      <dc:date>2018-02-06T08:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45650#M7610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's assume that your script indeed runs until the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you now add a STORE PRLDESC statement immediately after the LOAD of PRLDESC, what do you find in the PRLD_Resolved field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 08:44:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45650#M7610</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-02-06T08:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45651#M7611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation. It wasn't obvious to me &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another alternative is to use a bit of macro code as a script function as shown in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://qlikviewcookbook.com/recipes/download-info/strip-html-from-text/" title="http://qlikviewcookbook.com/recipes/download-info/strip-html-from-text/"&gt;Search Recipes | Qlikview Cookbook&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 15:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45651#M7611</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-02-06T15:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: MapSubstring, HTML, Clob, script load error no error message.</title>
      <link>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45652#M7612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that was my first attempt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Didn't work when I scheduled a refresh so i guess there are either issues with macros in scheuled reports or some sort of config\settings required to get these to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2018 15:37:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MapSubstring-HTML-Clob-script-load-error-no-error-message/m-p/45652#M7612</guid>
      <dc:creator>weephil76</dc:creator>
      <dc:date>2018-02-06T15:37:21Z</dc:date>
    </item>
  </channel>
</rss>

