How to recover Layout and Script from a corrupt Document

000002664 |28/11/2018
Did this article help solve your issue?

   

Description

QlikView application (QVW) file can get corrupted by many reasons, for example:
  • 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.

 

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"
      User-added image
    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 layout and 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 LayoutRescue.
    6. Type 1 on the value textbox.
    7. Click the set button.
    8. Select another variable on the list and then the LayoutRescue again and check that the value is still set to 1.
    9. Close the QlikView desktop client.
    10. Open the QlikView document with the QlikView Desktop client. If the process succeeds you will get the document back but without data.
    11. Save the document with a new name
    12. Repeat steps 2-10 this time with the setting ScriptRescue instead of LayoutRescue.
    13. If the process succeeds a file will be generated containing only the script.
    User-added image

    Note:

    • ScriptRescue  and LayoutRescue  parameters are available in some old versions of Qlikview (ex:ver 9.00.xx & 10.00.xx).
    • 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

    Disclaimer

    Access to this article is provided to you as part of your subscription to Qlik Maintenance. This article is deemed to be “Documentation” under the terms of the license agreement applicable to your Qlik software. All rights reserved © QlikTech International AB.

    Use the quick links or the search bar on the front page for quick answers.

    Selecting one or several business profiles ensures you get the most valid information presented to you.

    A new self-service feature enables you to download a LEF or Request a control number with the click of a button.

    A completely new element! Create and manage your Qlik environments for a great overview and to ease the case submission process. Add in your licenses and products and have a full view of your own environment setup.

    Add stakeholders who should receive updates to the case. See the latest status of your case and if any actions are needed.

    Submit your cases to us with ease using the new case logging wizard.

    We would really appreciate your feedback which would help us improve the experience on the Support Portal. Please email us on SupportPortal@qlik.com