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: 
kamielrajaram
Creator III
Creator III

File extentions

Good day all,

in my script, I store a table as a txt file for specific days. This works fine. is it possible to store as an excel file from within the script. I have tried and the files is saved to the specif directory, but I can not open it. Error - file or extention is not valid. I am not to sure whta the extention should be.

Thank you in advance

Kamiel

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi Kamiel,

QlikView only allows you to store QVD and TXT files. The extension you want to use is irrelvant, though, meaning that you can store a TXT file with a XLS extension. Obviously, Excel will likely not recognize the file format, therefore showing an error.

// This will work, although you will need to right click to open the file

STORE Table INTO File.ZZZ (TXT);

// This will work too, and will open fine

STORE Table INTO File.csv (TXT);

Usually saving as TXT but ending the file with CSV allows you to open with Excel, but it will depend on the application by default to open CSV files.

Hope that helps.

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hi Kamiel,

QlikView only allows you to store QVD and TXT files. The extension you want to use is irrelvant, though, meaning that you can store a TXT file with a XLS extension. Obviously, Excel will likely not recognize the file format, therefore showing an error.

// This will work, although you will need to right click to open the file

STORE Table INTO File.ZZZ (TXT);

// This will work too, and will open fine

STORE Table INTO File.csv (TXT);

Usually saving as TXT but ending the file with CSV allows you to open with Excel, but it will depend on the application by default to open CSV files.

Hope that helps.

Miguel

kamielrajaram
Creator III
Creator III
Author

Thank you Miguel,

The second option worked for me.

Regards

Kamiel