Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW

Reloading a script in QlikView 12 fails with "ApplyMap error: map_id not found" error. "ApplyMap error: map_id not found" error.

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Sonja_Bauernfeind
Digital Support
Digital Support

Reloading a script in QlikView 12 fails with "ApplyMap error: map_id not found" error. "ApplyMap error: map_id not found" error.

Last Update:

May 18, 2021 8:01:00 AM

Updated By:

Sonja_Bauernfeind

Created date:

Apr 16, 2017 4:43:13 AM

Reloading a script in QlikView fails with ApplyMap error: map_id not found error.

Example script:

// 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';

 

Environment: 

QlikView 

 

Resolution

 

Avoid the error by ensuring that a mapping table is already loaded before using the ApplyMap() function.

Labels (1)
Contributors
Version history
Last update:
‎2021-05-18 08:01 AM
Updated by: