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

simple csv import

Hello,

I'm trying to import a csv File, which looks like this..

0683p000009LyVn.png

so i tryed to edit the schema for the first column to int, but get a 

Couldn't parse value for column 'BookingID' in 'row1', value is '"21367234"'. Details: java.lang.NumberFormatException: For input string: ""21367234""
Couldn't parse value for column 'BookingID' in 'row1', value is '"21367546"'. Details: java.lang.NumberFormatException: For input string: ""21367546""...

 

I think because of the ""2136"",

but how to remove these extra ""?

 

Thanks very much

 

P.S:

I tried CSV Options with standard parameters, but then all i got is this

0683p000009LyOd.png

Labels (4)
6 Replies
David_Beaty
Specialist
Specialist

Can you upload a picture of the file import component properties.

 

Thanks

 

David

Anonymous
Not applicable
Author

0683p000009LySu.png

with CSV Options on, I get this result:

 

0683p000009LyVs.png

 

thx for the fast reply

 

David_Beaty
Specialist
Specialist

HI,

 

What is the option set for "Text Enclosure" - for your data, it should be either """ (3 double quotes) or "\""

 

Thanks

 

David

Anonymous
Not applicable
Author

I have put up a small version of the csv...

0683p000009LyVx.png

and tried the """ and "\""

 

0683p000009LyTR.png

and get a new error message

 

0683p000009Ly23.png

 

What are these "boxes" between the numbers e.g?

David_Beaty
Specialist
Specialist

I have a similar tFileInputDelimited that works OK.

 

The only difference I can see is:

 

Escape char , """ (3 quotes)

Text Enclosure """  (3 quotes)

 

Note, my file has a different delimiter

 

0683p000009LyMY.jpg

Anonymous
Not applicable
Author