Qlik Community

Knowledge

Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team

Announcements
Q&A with Qlik! New Case Portal, Chat Bot and Qlik Community. Oct. 19th REGISTER TODAY

How to recover Layout and Script from a corrupt QlikView Document

Sonja_Bauernfeind
Digital Support
Digital Support

How to recover Layout and Script from a corrupt QlikView Document

A QlikView application (QVW) file may be corrupted due to: 

  • File write operation to network disk has been interrupted by network failure
  • Power failure, leading to incomplete file write operation
  • QlikView process ended during file write operation
  • Hardware error, where disk storage has broken or has corrupt sector

Most common symptoms that the file can not be opened, with a "Failed to load" message, or that the QlikView application suddenly behaves in an unexpected way.

 

Environment:

 

Resolution:


The issue may be possible to recover by either opening the QlikView application without data or by trying to rescue the file by rebuilding its structure. 

Open Reload application without data in desktop client

  1. Open the QlikView Desktop client.
  2. Go to Help > Show Start Page
  3. On the start page go to Recent Documents
  4. Locate the QlikView document that should be opened without data
    1. If the QlikView document can be found in the Recent Document list, right click on the document and select "Open <document> Without Data"

      Open file without data.png

    2. If the QlikView document can not be found in the Recent Document list, go to next section "Open Reload application without data from command prompt"
  5. The document is opened without data
  6. If the document is opened without data Save the document with a new name, and continue work from this new copy of the file
Open Reload application without data from command prompt
 
  1. Open a Windows Command Prompt
  2. Launch QlikView Desktop client with the /nodata switch;
    C:\Program Files\QlikView\qv.exe /nodata C:\QlikVew\SourceDocs\qvd_generator.qvw
  3. Save the document with a new name, and continue work from this new copy of the file

Recover application script 
  1. Open the QlikView Desktop client.
  2. Chose Help->About QlikView from the menu bar.
  3. Position the mouse pointer on top of the QlikView logo on the left down corner.
  4. Right -Click on the logo to open the Settings box .
  5. Scroll down the list and choose ScriptRescue 
  6. Type 1 on the value textbox.
  7. Click the set button.
  8. Select another variable on the list and then the ScriptRescue again and check that the value is still set to 1.

    script rescue 01.png

  9. Close the QlikView desktop client.
  10. Open the QlikView document with the QlikView Desktop client. If the process succeeds a file will be generated containing only the script.
  11. Save the document with a new name
 

Note:

  • It is advised to backup your QlikView documents.
  • It is good practice to work with multiple copies of the document to be able to revert back to an earlier one if needed.
  • Before any recovery process, backup the document
Labels (2)
Version history
Revision #:
2 of 2
Last update:
‎2021-04-19 05:19 AM
Updated by:
 
Contributors