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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

QVD store command error

Hi all,

I am trying to store a QVD by using store command. EVen though I am giving correct path, it is throwing error.

Here initially I am read one Qvd from the same path and renaming and saving the  QVD based on some condition.

Regards,

Kumar

1 Solution

Accepted Solutions
Colin-Albert
Partner - Champion
Partner - Champion

The   " 0 lines fetched" message shows that no data is being loaded into IncMonths

Try changing your where clause to

WHERE site_visit_updated_datetime > date($(vMinMonth));

View solution in original post

22 Replies
Colin-Albert
Partner - Champion
Partner - Champion

The source table Incmonths is causing the error not the file path.

Does the Incmonths table have any data in it?

aniketsr
Creator
Creator

Hi Kumar,

Put the qvd path in the below format

Store Incmonths into [QVD PATH]

or

Store Incmonths into "QVD PATH"

Colin-Albert
Partner - Champion
Partner - Champion

Can you post more of your script?

Are you loading the source QVD twice - you may need to use "noconcatenate" or rename the fields.

sasikanth
Master
Master

HI,

Check the table name  'Incmonths' , this might be the issue

jonathandienst
Partner - Champion III
Partner - Champion III

Comment out the STORE line and open the table viewer after the reload. You will see that IncMonths was not created or was dropped before the STORE command.

If IncMonths had the same fields as another table, the load may have auto-concatenated into the other table, as mentioned by ca above.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Your syntax looks okay..

Just check whether Incmonths exist or not?

Anonymous
Not applicable
Author

Hi All,

This is my script.

Let Vqvdpath = 'D:\QlikView\SourceDocuments\QVX\Mktg_Funnel_Reports\Retention\QVD Retention\';

Inserts:

LOAD * FROM

$(Vqvdpath)fact_site_visit.QVD (qvd);

MinMaxDates:

LOAD

     Max(Floor(Timestamp#(site_visit_updated_datetime, 'MM/DD/YYYY hh:mm:ss.fff'))) as MaxDate

Resident Inserts;

LET vMinMonth = num(AddMonths(Peek('MaxDate'),-13));

DROP TABLE MinMaxDates;

Incmonths:

LOAD *

Resident Inserts

WHERE site_visit_updated_datetime > '$(vMinMonth)';

STORE Incmonths into $(Vqvdpath)fact_site_visit_History.QVD (qvd);

DROP TABLE Incmonths;

Anonymous
Not applicable
Author

My source QVD is having more than 200 million records.

Colin-Albert
Partner - Champion
Partner - Champion

You need to add a NOCONCATENATE as the field names are the same so QlikView will add he rows to the existing Inserts table not create a new table.

Try

Incmonths:

NOCONCATENATE

LOAD *

Resident Inserts

WHERE site_visit_updated_datetime > '$(vMinMonth)';

STORE Incmonths into $(Vqvdpath)fact_site_visit_History.QVD (qvd);

DROP TABLE Incmonths;