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: 
Not applicable

unwanted incomplete load of a datafile

Hello,

i have a very simple but large csv file to load, with around 48M lines.

The script below always stops at 25,380,219 with no error, saying load is complete, which is false.

LOAD @1,@2, @3, @4, @5 FROM lines.csv (txt, codepage is 1252, no labels, delimiter is ';', msq);

My QlikView installation is new, and no special options have been set.

Has anyone already faced this issue ?

Thanks

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I've seen these problems before caused by data problems, usually improper quoting. For example a " mark appearing within a field. This is common in the US where " in used to mean "inches", such as " 19" monitor ".

Look at the data around line 25,380,219, even delete some lines before and after to see if you can isolate the bad line(s).

View solution in original post

6 Replies
Not applicable
Author

Precision : QlikView personnal Edition v 9.00.7502.8 SR5

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I've seen these problems before caused by data problems, usually improper quoting. For example a " mark appearing within a field. This is common in the US where " in used to mean "inches", such as " 19" monitor ".

Look at the data around line 25,380,219, even delete some lines before and after to see if you can isolate the bad line(s).

Not applicable
Author

Hi,

Easiest way to get rid of unbalanced quotes is to drop them from a batch file . Get the command line tools from GnuWin32 (or Cygwin)

cat file.csv | tr -d \042 | tr -d \047 > filterred_file.csv

-Alex

Not applicable
Author

You could also change the quoting options. Instead of:

LOAD @1,@2, @3, @4, @5 FROM lines.csv (txt, codepage is 1252, no labels, delimiter is ';', msq);

Use:

LOAD @1,@2, @3, @4, @5 FROM lines.csv (txt, codepage is 1252, no labels, delimiter is ';', None);

-Alex

Not applicable
Author

Hello Rob

I haven't found the extra '"', but by using "no quote" instead of MSQ, it works fine

Thanks for your help !

Smile

Bye

Not applicable
Author

Hello Alexandru

It works !

Thanks !