Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
arulsettu
Master III
Master III

incremental load - insert only

hi

i am trying to do incremental load only in my app.

ODBC CONNECT32 TO [Excel Files;DBQ=C:\Users\Arul\Desktop\my project\CUSTOMERS.xls];

Customer:

SQL SELECT *

FROM `C:\Users\Arul\Desktop\my project\CUSTOMERS.xls`.`CUSTOMERS$`;

STORE Customer into C:\Users\Arul\Desktop\my project\Customer.qvd(qvd);

Customer:

LOAD [Address Number],

  [Business Family],

  [Business Unit],

  Customer,

  [Customer Number],

  [Customer Type],

  Division,

  Phone,

  [Region Code],

  [Regional Sales Mgr],

  [Search Type];

SQL SELECT * FROM `C:\Users\Arul\Desktop\my project\CUSTOMERS.xls`.`CUSTOMERS$`

WHERE [Customer Number] >='10027629'; 

while loading this i am getting error. can anyone help?

thanks...

19 Replies
its_anandrjs

What error you get and before full load try to debug the application

arulsettu
Master III
Master III
Author

Capture.PNG.png

its_anandrjs

Try like Drop the table first

ODBC CONNECT32 TO [Excel Files;DBQ=C:\Users\Arul\Desktop\my project\CUSTOMERS.xls];

Customer:

SQL SELECT *

FROM `C:\Users\Arul\Desktop\my project\CUSTOMERS.xls`.`CUSTOMERS$`;

 

STORE Customer into C:\Users\Arul\Desktop\my project\Customer.qvd(qvd);

Drop Table Customer;

//And then load the excel file

Customer:

LOAD [Address Number],

  [Business Family],

  [Business Unit],

  Customer,

  [Customer Number],

  [Customer Type],

  Division,

  Phone,

  [Region Code],

  [Regional Sales Mgr],

  [Search Type];

SQL SELECT * FROM `C:\Users\Arul\Desktop\my project\CUSTOMERS.xls`.`CUSTOMERS$`

WHERE [Customer Number] >='10027629';

tresesco
MVP
MVP

Try where clause without quotes like:

WHERE [Customer Number] >=10027629;

alexandros17
Partner - Champion III
Partner - Champion III

this is your mistake:

SQL SELECT * FROM `C:\Users\Arul\Desktop\my project\CUSTOMERS.xls`.`CUSTOMERS$`


select is from tables, instead of sql select write load

its_anandrjs

In the where condition remove the single quotes (,)

WHERE [Customer Number] >= 10027629;

arulsettu
Master III
Master III
Author

my QVD is getting update without concatenate how?

Not applicable

Cause you store select * into your QVD file

arulsettu
Master III
Master III
Author

Hi Thomas

can u elaborate?