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: 
kunkumnaveen
Specialist
Specialist

what this error is about

Hello ,

i am am trying to apply transformation but unfortunatelly i am getting error can any explain what this error is about ? do the way i doing transformation is correct ..?

Untitled.png

temp:

Mapping  LOAD OBJECTID as PRUEFLOS,

    VALUE_OLD

FROM

(qvd);

qave:

LOAD

ApplyMap('temp',PRUEFLOS,NULL()) AS VALUE_OLD,

PRUEFLOS,

    VCODE

FROM

(qvd);

LOAD VALUE_OLD,PRUEFLOS,VCODE,

VALUE_OLD&VCODE AS VCODE                                     //i think i am getting error over here

Resident qave;

drop Fields VALUE_OLD,VCODE;

Decision:

LOAD VCODE,

    Decision

  

FROM

(ooxml, embedded labels, table is Sheet1);

9 Replies
vikasmahajan

you have some duplicate field names in script.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
alexandros17
Partner - Champion III
Partner - Champion III

Name fields must be unique so you have declared twice "VCODE" field

kunkumnaveen
Specialist
Specialist
Author

will it be ok if i do this



LOAD VALUE_OLD,PRUEFLOS,VCODE,

VALUE_OLD&VCODE AS vcode                                

Resident qave;

drop Fields VALUE_OLD,VCODE;

vikasmahajan

yes

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
vikasmahajan

it should not duplicate across the script


Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
alexandros17
Partner - Champion III
Partner - Champion III

Yes

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Field names can be the same but must have capital letter (fields are different VCODE and vcode).

Lets say in your example the script will load even without drop fields statement.

Chanty4u
MVP
MVP

it will not allow duplicate.

but

Qlikview: is case sensitive

Qlikview Functions: Not case sensitive

jonas_rezende
Specialist
Specialist

Hi, navee kumar.

The your problem is in Mapping. Alter name of field VALUE_OLD that will solve.

temp:

Mapping  LOAD OBJECTID as PRUEFLOS,

   VALUE_OLD  AS MAP_VALUE_OLD //Rename only for acept in ApplyMap();

FROM

(qvd);

qave:

LOAD

ApplyMap('temp',PRUEFLOS,NULL()) AS VALUE_OLD,

PRUEFLOS,

    VCODE

FROM

(qvd);

Regards,

Jonas Melo