Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help with incremental load

Hi ALL,

whats wrong in my script?  what i need:

load data from qvd file

check qvd for last update

check sql db for new products by update date,

then load from sql only new products,

and update qvd file with new products

thanks

7 Replies
Anonymous
Not applicable
Author

Sigitas

Can you share the symptoms of the problem you are having ?

Best Regards,     Bill

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Make sure you're giving maxdate the date format that your sql database expects.

And I suggest you take a look at the Qlikview Components library. See this blog post for more information: Qlikview Notes: Incremental Load using Qlikview Components


talk is cheap, supply exceeds demand
Not applicable
Author

attached to my first post

senpradip007
Specialist III
Specialist III

try this:

SET vQvdFile='Purchase.qvd';   

SET vTableName='Test';       

SET vPK='PurchaseID';           

LET vQvdExists = if(FileSize('$(vQvdFile)') > 0, -1, 0);

IF $(vQvdExists) THEN       

    maxdateTab:

    LOAD Max(Date(Date#(ModifiedOn,'YYYY.MM.DD'))) as maxdate   

    FROM $(vQvdFile) (qvd);

   

    LET vIncrementalExpression = 'WHERE ModifiedOn >=' & peek('maxdate',0,'maxdateTab');

    DROP table maxdateTab;

   

ELSE                       

    exit script ;

END IF

Not applicable
Author

Hi,

Pls find the attachment..

ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Sigitas.

If you need help with incremental loads, have a look at this blog.

http://www.quickintelligence.co.uk/qlikview-incremental-load/

Regards,

Neil

Not applicable
Author

thanks for help