<?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: what is wrong in my script? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/2034672#M1222489</link>
    <description>&lt;P&gt;You could use the RegEx connector with the replace function:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm" target="_blank"&gt;https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 23:41:06 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2023-02-06T23:41:06Z</dc:date>
    <item>
      <title>what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525290#M438348</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I got a table called CASES_PEGA in which there is a field called PYDESCRIPTION which contains HTML tags&lt;BR /&gt;I'm trying to strip HTML codes and keep the text of PYDESCRIPTION field&lt;BR /&gt;I'm using the following script:&lt;BR /&gt;&lt;BR /&gt;HtmlTag_Map:Mapping&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;'&amp;lt;' &amp;amp; TextBetween('&amp;lt;' &amp;amp; SubField(PYDESCRIPTION, '&amp;lt;', IterNo()),'&amp;lt;','&amp;gt;') &amp;amp; '&amp;gt;' as HtmlTag,&lt;BR /&gt;'' as Substitute&lt;BR /&gt;Resident CASES_PEGA&lt;BR /&gt;While NOT IsNull(SubField(PYDESCRIPTION, '&amp;lt;', IterNo()));&lt;BR /&gt;&lt;BR /&gt;Left Join(CASES_PEGA)&lt;BR /&gt;temp:&lt;BR /&gt;Load Distinct&lt;BR /&gt;CASE_ID&lt;BR /&gt;,MapSubstring('HtmlTag_Map', PYDESCRIPTION) as Field_Cleansed&lt;BR /&gt;Resident CASES_PEGA;&lt;/P&gt;&lt;P&gt;However I'm getting a GENERAL SCRIPT ERROR when executing the MapSubstring&lt;/P&gt;&lt;P&gt;kindly advise&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 12:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525290#M438348</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2019-01-02T12:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525396#M438357</link>
      <description>Would you be able to share few rows of data to test this out? or share your logfile?</description>
      <pubDate>Wed, 02 Jan 2019 12:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525396#M438357</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-02T12:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525412#M438363</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&lt;BR /&gt;check attached Excel file&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the source of my data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 12:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525412#M438363</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2019-01-02T12:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525430#M438364</link>
      <description>&lt;P&gt;I am not sure what might be going on here... may be&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;can comment on this as he mentioned a similar problem here&amp;nbsp;&lt;A href="https://qlikviewcookbook.com/2015/04/those-uncaught-store-errors/" target="_blank"&gt;those uncaught store errors &lt;/A&gt;&lt;/P&gt;&lt;P&gt;For reference, I tried using this script&lt;/P&gt;&lt;PRE&gt;CASES_PEGA:
LOAD PYDESCRIPTION
FROM [..\..\Downloads\tages_2.xlsx]
(ooxml, embedded labels, table is Sheet1);

HtmlTag_Map:
Mapping
LOAD DISTINCT
	 '&amp;lt;' &amp;amp; TextBetween('&amp;lt;' &amp;amp; SubField(PYDESCRIPTION, '&amp;lt;', IterNo()),'&amp;lt;','&amp;gt;') &amp;amp; '&amp;gt;' as HtmlTag,
	 '' as Substitute
Resident CASES_PEGA
While NOT IsNull(SubField(PYDESCRIPTION, '&amp;lt;', IterNo()));

TRACE I AM HERE 1;

SET ErrorMode = 0;

FinalCASES_PEGA:
LOAD RowNo() as RowNum,
	 PYDESCRIPTION,
	 MapSubString('HtmlTag_Map', PYDESCRIPTION) as Field_Cleansed
Resident CASES_PEGA;

TRACE I AM HERE 2;

DROP Table CASES_PEGA;

SET ErrorMode = 1;&lt;/PRE&gt;&lt;P&gt;and even though I have set the errormode to 0, the script errors out.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 13:18:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525430#M438364</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-02T13:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525566#M438375</link>
      <description>&lt;P&gt;MapSubstring() tends to throw errors when you use a mapping table that has keys longer than about 18k characters.&amp;nbsp; I'm not sure of the exact number, it seems to vary by a few hundred depending on circumstances.&amp;nbsp; In the example used in this thread there a number of keys &amp;gt; 26K chars.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A simpler way, using a module function, to extract the contents of HTML elements can be found here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Qlikview Cookbook: Strip HTML From Text &lt;A href="http://qlikviewcookbook.com/recipes/download-info/strip-html-from-text/" target="_blank"&gt;http://qlikviewcookbook.com/recipes/download-info/strip-html-from-text/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 19:03:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525566#M438375</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-01-02T19:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525569#M438376</link>
      <description>Thanks Rob!! You are the best.&lt;BR /&gt;Is this issue discussed in more details elsewhere? I would like to read more about it if possible.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Sunny</description>
      <pubDate>Wed, 02 Jan 2019 19:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525569#M438376</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-02T19:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525577#M438377</link>
      <description>&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thanks for the compliment.&amp;nbsp; I have not seen it discussed anywhere except in my own head.&amp;nbsp; Here's a test script that demonstrates the issue.&amp;nbsp; Note that 18000 sometimes works for me, sometimes not. 20000 never works.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Map:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Mapping&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Repeat('A',RecNo())&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,' '&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;AutoGenerate 20000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;LOAD &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;'A' as Key&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;,MapSubString('Map', 'A') as Mapped&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;AutoGenerate 1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 19:34:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525577#M438377</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-01-02T19:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525579#M438378</link>
      <description>&lt;P&gt;This is strange... it did work for me with 20000, but started to error out after 20,500.... Is this a problem with just MapSubString() or have you noticed a similar issue with ApplyMap()?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 19:46:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525579#M438378</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-02T19:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525587#M438379</link>
      <description>&lt;P&gt;I've only observed it with MapSubstring().&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 20:09:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525587#M438379</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-01-02T20:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525592#M438380</link>
      <description>&lt;P&gt;Thank you Rob!!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 20:24:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525592#M438380</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-02T20:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525691#M438390</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;, and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;for your replies&lt;/P&gt;&lt;P&gt;So the problem is in the MapSubstring() function&lt;/P&gt;&lt;P&gt;the thing is that I posted the question in QlikView related space but I'm actually running this script in Qlik Sense so I cannot use the suggested alternative of writing a macro&lt;/P&gt;&lt;P&gt;Kindly advise&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 08:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1525691#M438390</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2019-01-03T08:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1526013#M438418</link>
      <description>&lt;P&gt;You may be able to use the RexEx Connector&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm&amp;nbsp;" target="_blank"&gt;https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm&amp;nbsp;&lt;/A&gt; using the pattern I gave in the macro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 19:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1526013#M438418</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-01-03T19:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1818573#M1213238</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Just wanted to check the alternative approach in the above case. I am facing the same issue and looking for another approach to remove all the HTML tags &amp;lt;&amp;gt; from a field. Could you please help me out????&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jaswanth P&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 13:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/1818573#M1213238</guid>
      <dc:creator>polisetti</dc:creator>
      <dc:date>2021-06-29T13:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/2034620#M1222488</link>
      <description>&lt;P&gt;Rob, in your example you use the StripHtml function.&lt;/P&gt;
&lt;P&gt;qlik sense does not exist this function,&lt;BR /&gt;do you know if there is an alternative?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 19:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/2034620#M1222488</guid>
      <dc:creator>Felipe_Violin</dc:creator>
      <dc:date>2023-02-06T19:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: what is wrong in my script?</title>
      <link>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/2034672#M1222489</link>
      <description>&lt;P&gt;You could use the RegEx connector with the replace function:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm" target="_blank"&gt;https://help.qlik.com/en-US/connectors/Subsystems/Web_Connectors_help/Content/Connectors_QWC/Data-Source-Connectors/RegEx-Connector.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 23:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/what-is-wrong-in-my-script/m-p/2034672#M1222489</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2023-02-06T23:41:06Z</dc:date>
    </item>
  </channel>
</rss>

