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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

incremental load

Hi,

I am doing incremental load and here is my script

LET Vqvdpath = 'D:\QlikView\SourceDocuments\QVX\Mktg_Funnel_Reports\';

Inserts:

SQL SELECT *

FROM "Stage_Three_DW".dbo."dim_geography";

date_dim_geography:

LOAD Max(geography_updated_datetime) as dim_geography_Maxdate

Resident Inserts;

LET VDate_dim_geography = Peek('dim_geography_Maxdate',0,'date_dim_geography');

DROP Table date_dim_geography;

STORE Inserts into $(Vqvdpath)dim_geography.QVD(qvd);

DROP Table Inserts;

Updates:

load * From Where geography_updated_datetime >$(VDate_dim_geography);

SQL SELECT *

FROM "Stage_Three_DW".dbo."dim_geography";

Concatenate

LOAD *

FROM

$(Vqvdpath)dim_geography.qvd(qvd)

Where not Exists(geography_key);

STORE Updates into $(Vqvdpath)dim_geography.QVD(qvd);

   

DROP Table Updates;

I am getting below error

Please give me any suggestions

Regards,

Kumar

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Updates:

load * From Where geography_updated_datetime >$(VDate_dim_geography);

SQL SELECT *

FROM "Stage_Three_DW".dbo."dim_geography";

Remove the From. You're using a preceding load where the data comes from the SQL SELECT so you don't need a FROM to specify where the data comes from. By using the From Qlikview treats what follows as the name of a source file.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Updates:

load * From Where geography_updated_datetime >$(VDate_dim_geography);

SQL SELECT *

FROM "Stage_Three_DW".dbo."dim_geography";

Remove the From. You're using a preceding load where the data comes from the SQL SELECT so you don't need a FROM to specify where the data comes from. By using the From Qlikview treats what follows as the name of a source file.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Thanks Gysbert. It is working fine