Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ApplyMap Fails with ApplyMap error:map_id not found

Using the following 2 maps on 1 table that gets qualified as well.

SCRIPT:

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

HelpdeskStatusMap:
MAPPING LOAD Helpdesk.Status AS Status, Description as ID
FROM
(
txt, codepage is 1252, embedded labels, delimiter is ',', msq);

HelpdeskActivityStatusMap:
MAPPING LOAD Helpdesk.Activity.Status AS ActivityStatus, Description as ID
FROM
(
txt, codepage is 1252, embedded labels, delimiter is ',', msq);

HelpDesk:
QUALIFY

Status,

ActivityStatus,;

LOAD

ApplyMap('HelpdeskStatusMap',Status,'Unknown') as Status,

ApplyMap(HelpdeskActivityStatusMap,ActivityStatus,'Unknown') as ActivityStatus
SQL SELECT *
FROM ARSystem.dbo.HelpDeskJoinSolution;

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

And I get ApplyMap error:map_id not found.

Attached find the CSV's as well.

Must be a syntax thing someone HELP!

4 Replies
adamdavi3s
Master
Master

Your second applymap needs the apostrophes around the table name

Anonymous
Not applicable
Author

Hi,

i think,in second apply map statement you forgoted the table name to put in Quotes.

this is what you posted:

ApplyMap(HelpdeskActivityStatusMap,ActivityStatus,'Unknown') as ActivityStatus,

i think this is correct statement:

ApplyMap('HelpdeskActivityStatusMap',ActivityStatus,'Unknown') as ActivityStatus


Thanq.

sunny_talwar

Is this a typo? Missing single quotes around the table name in your second ApplyMap function?

ApplyMap('HelpdeskStatusMap',Status,'Unknown') as Status,

ApplyMap('HelpdeskActivityStatusMap',ActivityStatus,'Unknown') as ActivityStatus,

Anil_Babu_Samineni

Might be here is the typo error, Check for me and then see

HelpdeskStatusMap:
MAPPING LOAD Helpdesk.Status AS Status, Description as ID
FROM
(
txt, codepage is 1252, embedded labels, delimiter is ',', msq);

HelpdeskActivityStatusMap:
MAPPING LOAD Helpdesk.ActivityStatus AS ActivityStatus, Description as ID // I've removed one Dot here for Activity.Status
FROM
(
txt, codepage is 1252, embedded labels, delimiter is ',', msq);

HelpDesk:
QUALIFY

Status,

ActivityStatus,; // I've removed Camma Here

LOAD

ApplyMap('HelpdeskStatusMap',Status,'Unknown') as Status,

ApplyMap('HelpdeskActivityStatusMap',ActivityStatus,'Unknown') as ActivityStatus,  // I've added apostrophes / Single colon here
SQL
SELECT *
FROM ARSystem.dbo.HelpDeskJoinSolution;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful