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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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!

Labels (1)
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
MVP
MVP

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
MVP
MVP

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