Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Cannot load qvd if field does not exist

I would like to load qvd files, some with a particular field, some without.  When I try to load qvd files without the field, the file does not load.  How can I load a qvd that has a missing field?

4 Replies
IAMDV
Luminary Alumni
Luminary Alumni

Hi Nancy,

I'm not sure why you wanted to load the fields when they are not available in the QVD files. However, you can create psuedo fields by using the static values or NULL() function if you want them as NULLs. Here is the example...

LOAD

      CustomerKey,
     GeographyKey,
     CustomerLabel,
     Title,
     FirstName,
     MiddleName,
     LastName,
     EmailAddress,
     NULL() as DV_Test
FROM
[..\Test.QVD]
(qvd);

I hope this helps!

Cheers,

DV

www.QlikShare.com

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     What i understood is while fetching the data you want to list down the fields which you want in some cases and in some cases you dont want.

     Try this way.

     Load Field1, Field2 from xyz;  For listing field name.

     Or

     Load * from xyz; for fetching all fields.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

I have the same problem.

You cannot load all files in a directory, if a single one is missing a single field that all others have.

A quite common thing to happen during developement.

Where is the solution?

prieper
Master II
Master II

LOAD * FROM A ....

CONCATENATE LOAD * FROM B ...

etc.

fields not needed might be dropped or renamed.

Peter