Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

'Replace Only' not working correctly !!

Hey,

If i am not wrong , in Replace command the new table is created replacing old data.

I am using 'Replace Only' , but my old table1(with first load) is not deleted and new Table1(with second load) is not created on partial load. Rather both of them remains on partial load. Code is :

------------------------------------------------------------

Directory;

Table1:

LOAD Id,

     Name

FROM

Book4.xlsx

(ooxml, embedded labels, table is Sheet1);

Table1:

Replace Only LOAD Id

FROM

Book4.xlsx

(ooxml, embedded labels, table is Sheet1);

Please tell what to do.

Thanks

4 Replies
Anonymous
Not applicable

Hi Nikhil,

Write it as :

Table1:

Replace LOAD Id

FROM

Book4.xlsx

(ooxml, embedded labels, table is Sheet1);

it will append the ID column with new ID's.

Thanks

Manish Madan

Gysbert_Wassenaar

Can you post a document that demonstrates the problem?


talk is cheap, supply exceeds demand
nikhilgarg
Specialist II
Specialist II
Author

HEy,

But Replace doesnot appends anything. It only replaces old data with new data.

Check out the help.

Thanks

nikhilgarg
Specialist II
Specialist II
Author

Hey ,

I got the problem . Actually i was using two different number of fields in both load . So two different tables created. But with same no. of columns in each load it does as specified in help.

Thanks.