Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
fatihsahin
Partner - Contributor
Partner - Contributor

Loading problem Excel file

Hi community,

I have a strage Problem during loading from an Excel file:

I have one field "category":

In following structure:

Category

"1.ABC"

"2.BCD"

"3.ABD & BCD"

Now after the reload I have only the last part of the third value --> in specific only BCD instead of "3.ABD & BCD"

I dont have a clue how this Comes - in the Excel file it is correct.

Any idea?

Thanks

16 Replies
lironbaram
Partner - Master III
Partner - Master III

how exactly is your script written

because  on a simple load i can't reproduce your error

fatihsahin
Partner - Contributor
Partner - Contributor
Author

No Transformation - nothing. Just straight loading.

petter
Partner - Champion III
Partner - Champion III

It might be that QlikView interprets this a bit too much ... the values from Excel. I am not able to reproduce it.

But you could try to do this in your load - as the Text() function will effectively prevent Excel from doing the possibly error prone interpretation:

LOAD

     Text( Category ) AS Category

FROM

     yourExcelFile.xls (ooxml .... ) ;

fatihsahin
Partner - Contributor
Partner - Contributor
Author

Hi Petter,

thanks for the tip but I have already tried "text" but no success.

The only difference to the rest of the values is , that this value has a "&" sign but really not sure what the Problem here is.

sunny_talwar

Like the other mentioned, I did not have any issue loading the complete value ("3.ABD & BCD") with a simple load statement. This is what I used:

Table:

LOAD Category

FROM

[Community_186332.xlsx]

(ooxml, embedded labels, table is Sheet1);

Capture.PNG

I don't know if that is going to help, but try creating another qvw file and re- add this particular Excel file using Table Files... and see if this problem persist for you. 

petter
Partner - Champion III
Partner - Champion III

Then it seems like your load have the field number 1 mispelled. QlikView is case sensitive when it comes to field and column names. And it seems that you get an empty string ...

petter
Partner - Champion III
Partner - Champion III

Could you please share the part of the load script where you have your load statement and possible attach the Excel-file or the first few rows...

fatihsahin
Partner - Contributor
Partner - Contributor
Author

I have now observed that this Problem always occurs if the value contains "&".

Whenever a "&" occurs it is only taking the part after the "&".

Could someone help based on that help?

Would it help to replace this sign with chr() ?

Regards

petter
Partner - Champion III
Partner - Champion III

You need to share the script and a sample Excel file with us...