Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Field Data Type not getting

Hi All,

As discussed here in (Field Type not restored from QVD/QVX?) , My query here is i am loading Qvd's dynamically from one folder and i am displaying like Name of the Qvd, File Size, Data Type in dashboard but problem here is i am getting some columns data type as 'UNKNOWN' , same Columns which are having data type as Varchar in Teradata Database


My Script is as follows :

FOR each file in FileList(vShareDir&'\*.qvd')

LET vFileName = mid(file, index(file, '\', -1) + 1, 99);

     QvdFields:

   

LOAD

          1                      as FieldCount,

          '$(vFileName)'         as [File Name],

          FieldName              as [Field Name],

          NoOfSymbols            as [No Of Symbols],

         [NumberFormat/Type] as [Data Type]

       

             

     FROM [$(file)] (XmlSimple, Table is [QvdTableHeader/Fields/QvdFieldHeader]);

Kindly Help me Guys,

Regards,

Reddi Kishor

1 Reply
jonathandienst
Partner - Champion III
Partner - Champion III

The data type is set when the QVD is generated, so it would be more useful if you posted that script.

But in general, QV is only loosely typed and usually does not care that much about the data type. Unless you explicitly set the type to something in the generate script, the typing will be dynamic and dependant on the first value(s) retrieved from the data source.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein