Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
sangland2
Partner - Creator
Partner - Creator

Excel files wont load unless saved

Hi, I have xlsx files loading into a QV model. The script allows for 12 header lines:

(ooxml, embedded labels, header is 12 lines,table is [$(vSheetName)] ).

My problem is that unless the excel file is first opened and saved, QV cannot work out how many header rows there are and the script errors with fields not found. I assume this is problem with different Excel versions. I am preprocessing files with a vbscript, but is there another option ?

11 Replies
HirisH_V7
Master
Master

Hi,

I think your excel files are generated from database Excel export Service ,

This may  vary due to daily changes of Header Lines OR Sheet-name OR The file name may also change .

Check out the above.

Hope this helps.

regards,

Hirish

HirisH
“Aspire to Inspire before we Expire!”
Not applicable

Steps to load data from Excel:

1. Open the desktop version.

2. Press Ctrl+E . On the lower part go to 'Data' Tab.

3. Click on Table Files. Browse and load the data from excel.

avinashelite

If your excels are in opened in edit mode and then QV cannot load such file . Excel version might has impact in loading the file unless if it corrupted, and follow the steps mentioned by  anjali12gupta  you should be able to load . If your still facing any issues please share the sample excel file.

jonathandienst
Partner - Champion III
Partner - Champion III

I don't really understand. If the file does not have 12 header lines, then adjust that parameter. It will look for field names as column titles in the first row after it has skipped the header lines. It seems that the field names / column titles are not in that row.

There is not normally a need to first open and save the file. What is your vbscript doing?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
jonathandienst
Partner - Champion III
Partner - Champion III

>>If your excels are in opened in edit mode and then QV cannot load such file

I am not sure what you mean by opening in "edit" mode. I have never had a problem loading Excel files while the file is open in Excel.

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

jontydkpi‌‌ sir , I mean if some one has opened the excel file and editing the fields than Qlikview load will fail rite

sangland2
Partner - Creator
Partner - Creator
Author

Interesting, same problem. If I open the file I receive the wizard does not find column names at all when specifying 12 lines of heading. If I firstly open the file in excel and save it, then the wizard works as expected.

sangland2
Partner - Creator
Partner - Creator
Author

The vbscript is just opening and saving the file which solves the problem. I suspect that the file I receive is not entirely compatible with QV, but opening in and saving it in Excel locally seems to correct whatever the problem is.

Not applicable

Can u capture a screen and explain what it shows?

Regards,

Anjali