Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Join “Do More With Qlik” with Mike Tarallo to get a first-hand look at the New Authoring Experience, June 29th: REGISTER HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Restore load script from corrupt QVF file

Hi!

We just had a short power failure, and the server hosting Qlik Sense Server went down. When started again, it seems like some (I haven't checked all yet) apps are corrupt, and can't load anymore. I have backups, but for various reasons they are a few days old, and I just wrote a big chunk of complicated code in the load script.

Is there any way to save the load script from a corrupt QVF file? I mean, it is a bit annoying that the scripts (being text only and read by the server very seldom I guess) can get corrupted beyond repair by a simple shutdown.

1 Solution

Accepted Solutions
Levi_Turner
Employee
Employee

As far as I am aware the primary option here will be to try to open the QVFs in Qlik Sense Desktop without loading the data (right click on the file and open without data).

If you're having issues exporting the Apps from the QMC then the binaries should be in C:\ProgramData\Qlik\Sense\Apps. Matching the names of the files in that directory (GUIDs) with the actual names of files can be done in the QMC by adding in the ID field on the filter (there's a toggle in the upper right hand side of the Apps screen in the QMC).

View solution in original post

4 Replies
Levi_Turner
Employee
Employee

As far as I am aware the primary option here will be to try to open the QVFs in Qlik Sense Desktop without loading the data (right click on the file and open without data).

If you're having issues exporting the Apps from the QMC then the binaries should be in C:\ProgramData\Qlik\Sense\Apps. Matching the names of the files in that directory (GUIDs) with the actual names of files can be done in the QMC by adding in the ID field on the filter (there's a toggle in the upper right hand side of the Apps screen in the QMC).

Not applicable
Author

There is nothing we can do when the app gets corrupted. Probably we can recover the code of the app from the scripts folder and redesign the visualizations from that than to write the entire code again. When you open the app you see the URL of the app consisting of alphanumeric combination. Check for the same name in the C:\ProgramData\Qlik\Sense\Log\Script folder. Remove the timestamps in the file and run it again to have the code of the app. But the Visualizations have to be rebuilt again.

In my case the scripts were located at C:\ProgramData\Qlik\Sense\Log\Script, and the files had names like e1efc098-0ad5-4d7d-af2f-7d6b700c91f3.2015_10_20_13_12_28.807093E78F4B66863F4A.log.  I had to find the one relating to the corrupted app, and then strip the scripts content from this file with a text editor.


I hope this helps you get your code back.

Not applicable
Author

thanks Levi, you've saved my bacon ... (about 18 days work), thank you

capriconuser
Creator
Creator

my qvf file is corrupt and i am try to open without data but also this did not open . how i get my script of this qvf file