Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
43918084
Creator II
Creator II

Applymap error field not found

I have below script using applymap. But I get error that Field Nomaff not found. Hope I can get some advice why on how to fix it.

[GRCA]:
Mapping
LOAD
    NomAff as NomAff,
    grca_acct
FROM [lib://Fusion/Qlik Logic.xlsx]
(ooxml, embedded labels, table is [grca map]);



[Fusion]:
LOAD
     Month(ACCOUNTING_DATE)&Year(ACCOUNTING_DATE) as period,
  
     NOMINAL&'_'&AFFILIATE as NomAff,
   Applymap('GRCA', NomAff) as GRCA,
  
// Below fields are originally from transaction list
    LEGAL_ENTITY,
    SERVICE,
    COST_CENTRE,
    NOMINAL,
    AFFILIATE,
    AFFILIATE_FUNCTION,
    ANALYSIS,
    SPARE1,
    SPARE2,

FROM [lib://Fusion/GL Transaction Extract LM.xlsm]
(ooxml, embedded labels, table is HBAP);
12 Replies
Taoufiq_Zarra

It's the same error as before.

for that reason i use 2 load

DATA:

load ...

load ...

Fusion:
load *,ApplyMap('GRCA', CCode,'Null') As GRCA;
LOAD *,NOMINAL&'_'&AFFILIATE as CCode,
Month(...
...
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
43918084
Creator II
Creator II
Author

When I use 2 load line, it only returns the field GRCA, all other fields disappeared.

43918084
Creator II
Creator II
Author

Thank you very much for your help.  I finally get it fixed using the below script that seems to be your first advice.

Somehow I did not get the result previously.

Apply.JPG