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: 
yadav_anil782
Creator II
Creator II

Incremental load error

Dear All ,

i'm using this script for incrimental but this script giving error and i'm stuck to find error , if can anybody help then plz help to find the error

LOAD USER_NAME,

     USER_ID,

     LOGIN_TIME,

     LOGIN_COUNT

FROM

(qvd);

last_updated_date:

LOAD

max(LOGIN_TIME) as max_date

Resident xx_login_rev_view;

let vmax =Peek(max_date,0,'last_updated_date') ;

drop Table xx_login_rev_view;

incrimental:

LOAD

USER_NAME,

     USER_ID,

     LOGIN_TIME,

     LOGIN_COUNT

FROM APPS."XX_LOGIN_REV_VIEW"

where LOGIN_TIME > $(last_updated_date);

Concatenate

LOAD USER_NAME,

     USER_ID,

     LOGIN_TIME,

     LOGIN_COUNT

FROM

(qvd);

store incrimental into;

drop Table incrimental;

Labels (1)
23 Replies
tresB
Champion III
Champion III

Did you try what I suggested above?

Try putting a space after into, like:

store incrimental into [C:\Qlikview\QlikView Project\gl\qvd\xx_login_rev_view.qvd];

Mark_Little
Luminary
Luminary

18-11-2015 17:09:57: 0064  where LOGIN_TIME > ''

18-11-2015 17:10:11:       4 fields found: USER_NAME, USER_ID, LOGIN_TIME, LOGIN_COUNT, 0 lines fetched

Your variable isn't being populated

Not applicable

Hi

you need to use single quotes around field name in peek function while creating a variable 

let vmax =Peek('max_date',0,'last_updated_date') ;


VC.

Mark_Little
Luminary
Luminary

I would run the below only see what is populated in the the table (last_update_date)and variable

LOAD USER_NAME,

     USER_ID,

     LOGIN_TIME,

     LOGIN_COUNT

FROM

(qvd);

   

last_updated_date:

LOAD

max(LOGIN_TIME) as max_date

Resident xx_login_rev_view;

let vmax =Peek(max_date,0,'last_updated_date') ;

Trace $(vmax)

drop Table xx_login_rev_view;

Mark