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

Dynamic Schema

We have requirement where we need to process and load a file without column heading and may be field seperater  for all column also will not there for each row.

 

For example0683p000009M9p6.pnguppose we have table TAB1 with five coulmns and following input files need to load into that table.

Input File :

ab~df~fgh~yui~wer

xc~cc~~jjki~sdr

nmf~dxc~dc

 

If you see third row is not having complete data and field seperator .As we have five columns thus four feild seperator is must to maintain data for each columns.

If we process this type of file with DYNAMIC schema (bec we need to process so many files and not sure about file structure) then we are getting error.

 

However,once we correct the input file and provide all database column names as header and complete third row data with filed seperator then that file process successfully.

 

So we need assistance to process this type of file where column heading will not exist and data and field seperator also will not exist for each column.

Please assist ,How to load this type of file with DYNAMIC schema type.

 

Regards,

Vivek

Labels (2)
2 Replies
fdenis
Master
Master

do not use dynamic.
use one string then parse data in db side.
you cannot know format before inserting if's not define by the first line.

if you want to use dynamic you have to manage number of columns manually. adding column and restarting after each error or read to define number of columns and one to load.
Anonymous
Not applicable
Author

ok,Will Try.

So ,just to know,below mentioned two observation related to dynamic schema is correct ?