Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Beginner_Qlik1
Partner - Contributor III
Partner - Contributor III

Getting error in executing script

Hi ,

 

Could someone help me rectify the error in following script(Attached screenshot).

Getting error 'ValueCategoryGlobal' and 'ProcessTypeGlobal' not found. Though these fields are present in residents tables Valuecategory and ProcessType respectively.

I am expecting Fields Value, ValueCategoryGlobal and ProcessTypeGlobal in temp table. But only field coming is Value.

Beginner_Qlik1_5-1715684786843.png

Beginner_Qlik1_6-1715684903949.png

 

 

 

 

Beginner_Qlik1_0-1715684525831.png

Beginner_Qlik1_1-1715684576145.png

 

Beginner_Qlik1_4-1715684724578.png

 

 

Beginner_Qlik1_3-1715684624001.png

 

Labels (1)
9 Replies
steeefan
Luminary
Luminary

Your WHERE clause is only applied to the table ProcessType, not to Temp. You need to perform another LOAD on that table to filter on ValueCategoryGlobal.

Temp2:
NOCONCATENATE LOAD
  *
RESIDENT
  Temp
WHERE
  Match(ValueCategoryGlobal., ...);

 

Beginner_Qlik1
Partner - Contributor III
Partner - Contributor III
Author

Hi Stefan,

I modified the script

Beginner_Qlik1_0-1715697594724.png

But, still getting same error

  • Beginner_Qlik1_1-1715697663104.png
jelzo_nl
Contributor II
Contributor II

It seems like Temp contains fields that are used earlier in the script and is therefore concatenated to another table. 

Can you change the top row:

Temp:
LOAD _ProcessKey,

To:

Temp:
NoConcatenate
LOAD _ProcessKey,
Beginner_Qlik1
Partner - Contributor III
Partner - Contributor III
Author

tried this also

Beginner_Qlik1_0-1715698855834.png

But, still got same error

Beginner_Qlik1_1-1715698933527.png

 

BrunPierre
Partner - Master
Partner - Master

@Beginner_Qlik1 The field in question is appended to the 'Value' Table, not the 'Temp'.

Beginner_Qlik1
Partner - Contributor III
Partner - Contributor III
Author

@BrunPierre I intend to store the result of join of Value, ValueCategory, Process and ProcessType in Temp table. So my understanding is, if the field "ValueCategoryGlobal" is appended to Value, the result of joining all tables should get stored in table "Temp".

 

Please le me know what I am doing wrong here. 

 

BrunPierre
Partner - Master
Partner - Master

If my understanding is correct, then it would be something along these lines.

/*---Append ValueCategoryGlobal to Value---*/
Left Join(Value)
LOAD _ValueCategoryKey,
ValueCategoryGlobal

Resident ValueCategory;

/*---Append Process to Value---*/
Left Join(Value)
LOAD ...
Resident Process;

/*---Append ProcessType to Value---*/
Left Join(Value)
LOAD ...
Resident ProcessType

/*---Load relevant fields from Value into Temp ---*/
NoConcatenate
Temp:
LOAD ...
Resident Value
Where Match(ValueCategoryGlobal,'...','...','...');

DROP Table Value;
DROP Fields _ProcessKey,_ProcessTypeKey, ValueCategoryKey from Temp;

Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Myt assumption is that you may have used "Temp" table names somewhere earlier in your load  or binary hence the one you are trying to create may have suffix like Temp-1 and your resident load cannot load from it. Try and rename Temp to different table name.

cheers

cheers Lech, 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 to the problem.
SunilChauhan
Champion II
Champion II

replace  with 

Left Join(Value)
Load _ValueCategoryKey,
ValueCategoryGlobal,
1 as junk
resident ValueCategory;

Sunil Chauhan