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

Incremental Load , Field Not Found

Hi,

i was  working  on this script :

Fait_Qualite_GPRS_PDCH:

LOAD id_Date,

     id_Fournisseur,

     id_Objectif,

     PDCH_Allocation_Success,

     PDCH_Allocation_Failure,

     [IP_Transfer_Interrupt_DL _mn]

FROM

D:\PFE-TT\Qlick\BD\Fait_Qualite_GPRS_PDCH.qvd

(qvd);

Last_Update_PDCH :

LOAD max(id_Date) as maxdatePdchh

Resident Fait_Qualite_GPRS_PDCH ;

////store last modified date to a variaable

LET Last_Update_PDCH = Peek ('maxdatePdchh',0,'Last_Update_PDCH') ;

DROP Table Fait_Qualite_GPRS_PDCH ;

incremental:

LOAD id_Date,

     id_Fournisseur,

     id_Objectif,

     PDCH_Allocation_Success,

     PDCH_Allocation_Failure,

     [IP_Transfer_Interrupt_DL _mn]

FROM

D:\PFE-TT\Qlick\gprs.xlsx

(ooxml, embedded labels, table is Fait_Qualite_GPRS_PDCH) Where id_Date >= $(Last_Update_PDCH);

Concatenate

LOAD id_Date,

     id_Fournisseur,

     id_Objectif,

     PDCH_Allocation_Success,

     PDCH_Allocation_Failure,

     [IP_Transfer_Interrupt_DL _mn]

FROM

D:\PFE-TT\Qlick\BD\Fait_Qualite_GPRS_PDCH.qvd

(qvd) Where not Exists (id_Date);

STORE incremental into D:\PFE-TT\Qlick\BD\Fait_Qualite_GPRS_PDCH.qvd;

DROP Table incremental ;

But i keep getting the "field not found "error for "Last_Update_PDCH" on "incremental" table

Could anyone please help me with this?

Regards,

Ameni

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

try

'$(Last_Update_PDCH)'

View solution in original post

3 Replies
MK_QSL
MVP
MVP

try

'$(Last_Update_PDCH)'

jonathandienst
Partner - Champion III
Partner - Champion III

The variable is not being populated. Does the first QVD contain any rows? Is the id_Date field populated? The peek does not appear to be returning anything.

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

it works , Thank you