Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

New Contributor

Field 'a' not found


I'm getting the following error in my Qlik load

Qlik error.PNG

I've searched through the script and there's no 'a' leftover anywhere. Error appears to be happening in the Master Cal script. I've attached the script below.

Anyone any ideas how to resolve it?



6 Replies
Esteemed Contributor III

Re: Field 'a' not found


did you debug the script line by line?

check where exactly it is stopping?

even if you dont found.  

each and every table put exit script and reload each table then you come to know where exactly you are wrong

Contributor III

Re: Field 'a' not found

Follow Chanty's suggestion and verify the actual values stored in varMinDate and varMaxDate

Re: Field 'a' not found

Before anyone can tell you how to resolve "it", we need to know what is causing this problem.

Put an

Exit Script;

right after the let varMaxDate = Peek(...); statement. Reload your document and check the content of varMinDate and varMaxDate in the Settings->Variable Overview dialog. Do they contain numerical values?

New Contributor

Re: Field 'a' not found

The error is occuring here:



$(varMinDate) + Iterno()-1 as Num, 

Date($(varMinDate) + IterNo() - 1) as TempDate 

AutoGenerate 1 While $(varMinDate) + IterNo() -1 <= $(varMaxDate); 

Set vFM = 4 ;                                                          // First month of fiscal year

I'm using Microsoft Visual Studio so myself and a colleague can co-develop. When he reloads he doesn't get any errors and has the exact same script that I have!

Esteemed Contributor III

Re: Field 'a' not found

Basically this error will occur with the resident table  not referring the exact table

kindly check the  all resident table used in your script.

New Contributor III

Re: Field 'a' not found

I am getting the same error with a very similar script:

$(varMinDate) + Iterno()-1 As Num,
Date($(varMinDate) + IterNo() - 1) as TempDate
AutoGenerate '1' While $(varMinDate) + IterNo()-1 <= $(varMaxDate)

I don't understand what should be checked about resident tables. This load statement isn't loading from a table. Its just loading from variables. I tried putting a comma after TempDate and it doesn't like it. I tried putting 'Resident [existing table name]' before the semicolon ; and it didn't like that either.

Community Browser