<?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>article Reloading a script in QlikView 12 fails with &amp;quot;ApplyMap error: map_id not found&amp;quot; error. &amp;quot;ApplyMap error: map_id not found&amp;quot; error. in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Reloading-a-script-in-QlikView-12-fails-with-quot-ApplyMap-error/ta-p/1715918</link>
    <description>&lt;P&gt;Reloading a script in QlikView fails with &lt;FONT face="courier new,courier"&gt;ApplyMap error: map_id not found&lt;/FONT&gt;&amp;nbsp;error.&lt;/P&gt;
&lt;P&gt;Example script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// Load mapping table of country codes:
//map1:
//mapping LOAD * 
//Inline [
//CCode, Country
//Sw, Sweden
//Dk, Denmark
//No, Norway
//] ;
// Load list of salesmen, mapping country code to country
// If the country code is not in the mapping table, put Rest of the world
Salespersons:
LOAD *, 
ApplyMap('map1', CCode,'Rest of the world') As Country 
Inline [
CCode, Salesperson 
Sw, John
Sw, Mary
Sw, Per 
Dk, Preben
Dk, Olle
No, Ole 
Sf, Risttu] ;
// We don't need the CCode anymore
Drop Field 'CCode';&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&amp;nbsp;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Avoid the error by ensuring that a mapping table is already loaded before using the &lt;SPAN&gt;ApplyMap() &lt;/SPAN&gt;function.&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 12:01:00 GMT</pubDate>
    <dc:creator>Sonja_Bauernfeind</dc:creator>
    <dc:date>2021-05-18T12:01:00Z</dc:date>
    <item>
      <title>Reloading a script in QlikView 12 fails with "ApplyMap error: map_id not found" error. "ApplyMap error: map_id not found" error.</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Reloading-a-script-in-QlikView-12-fails-with-quot-ApplyMap-error/ta-p/1715918</link>
      <description>&lt;P&gt;Reloading a script in QlikView fails with &lt;FONT face="courier new,courier"&gt;ApplyMap error: map_id not found&lt;/FONT&gt;&amp;nbsp;error.&lt;/P&gt;
&lt;P&gt;Example script:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// Load mapping table of country codes:
//map1:
//mapping LOAD * 
//Inline [
//CCode, Country
//Sw, Sweden
//Dk, Denmark
//No, Norway
//] ;
// Load list of salesmen, mapping country code to country
// If the country code is not in the mapping table, put Rest of the world
Salespersons:
LOAD *, 
ApplyMap('map1', CCode,'Rest of the world') As Country 
Inline [
CCode, Salesperson 
Sw, John
Sw, Mary
Sw, Per 
Dk, Preben
Dk, Olle
No, Ole 
Sf, Risttu] ;
// We don't need the CCode anymore
Drop Field 'CCode';&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;Environment:&amp;nbsp;&lt;/H4&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;Resolution&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Avoid the error by ensuring that a mapping table is already loaded before using the &lt;SPAN&gt;ApplyMap() &lt;/SPAN&gt;function.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 12:01:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Reloading-a-script-in-QlikView-12-fails-with-quot-ApplyMap-error/ta-p/1715918</guid>
      <dc:creator>Sonja_Bauernfeind</dc:creator>
      <dc:date>2021-05-18T12:01:00Z</dc:date>
    </item>
  </channel>
</rss>

