Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
capriconuser
Creator
Creator

apply map error

I am trying to apply map but this shows an error

 

RATE_MAP:
Mapping LOAD
KEY_name,
RATE
FROM
[..\Data\Data Received\ab_file.xlsx]
(ooxml, embedded labels, table is Sheet3);


TEMP:
LOAD PRODUCT,
ID,
ApplyMap('RATE_MAP',KEY_name)as AA_RATE

FROM
[..\Data\Data Used\abc.xlsx]
(ooxml, embedded labels, table is Sheet2);

 

1 Solution

Accepted Solutions
tresesco
MVP
MVP

 

TEMP:
LOAD PRODUCT,
ID,
ApplyMap('RATE_MAP',KEY_name)as AA_RATE

FROM
[..\Data\Data Used\abc.xlsx]
(ooxml, embedded labels, table is Sheet2);

 

When you write this, qlik expects a field 'KEY_name' in abc.xlsx file. Probably your file doesn't have such field. So you have to correct the field name in applymap(). In applymap you don't have to mention the field name from a mapping table, only map table name is enough.

View solution in original post

6 Replies
capriconuser
Creator
Creator
Author

this shows an error

Field not found error

Field 'KEY_name' not found

srg99999
Partner - Contributor II
Partner - Contributor II

Hi,
The column in temp table should have the same data type as the KEY_name filed as you are trying to match the KEY_name.
Just cross check the data types of PRODUCT and ID i.e Whichever the field you are using to match
capriconuser
Creator
Creator
Author

when i comment the product and id then still error is display

tresesco
MVP
MVP

 

TEMP:
LOAD PRODUCT,
ID,
ApplyMap('RATE_MAP',KEY_name)as AA_RATE

FROM
[..\Data\Data Used\abc.xlsx]
(ooxml, embedded labels, table is Sheet2);

 

When you write this, qlik expects a field 'KEY_name' in abc.xlsx file. Probably your file doesn't have such field. So you have to correct the field name in applymap(). In applymap you don't have to mention the field name from a mapping table, only map table name is enough.

capriconuser
Creator
Creator
Author

but i apply map from rate _table  not temp  table .. so is it necessary to have key_name in  abc file ? 

tresesco
MVP
MVP

Read it here: applymap() to understand how it works.