Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

meetmrudul
Contributor II

Restoring Script from QV Document

Hi All,

I have published one of the document through publisher and now, when I am trying to refer the Script written in the Edit Script Section, I am getting below message -

// Write your script here. Note: Reload is disabled upon distribution. Enable by changing the checkbox at Settings->Document preferences->Security->Reload.

Can anyone please let me know, how, I can restore and refer the script written in the Edit Script section.

Please let me know, as its is urgent for me.

Thanks & Regards,

MK

1 Solution

Accepted Solutions
Highlighted
MVP & Luminary
MVP & Luminary

Re: Restoring Script from QV Document

Hi,

If you enable the file then you can get the script from that, check whether you have log file enabled.

Regards,

Jagan.

View solution in original post

7 Replies
Partner
Partner

Re: Restoring Script from QV Document

The script is removed from published apps. You have to look in the source application.

Siva_Sankar
Honored Contributor

Re: Restoring Script from QV Document

Hi Mk,

This is expected behaviour of distributing documents using publisher. You will not be able to see the Script after distribution.

That's the reason you should keep folder structure like Source and Destination. Reload your document in Source folder and publish it to Destination folder and Access point should be configured to point Destination folder.
This way you will always have you native code (apps) in Source folder and publish docs (without script) destination folder. 

Use following path to set up Source Folder-->Management Console--> System--> Setup--> Distribution Services--> General--> Source Folder

To Setup Destination folder-->Management Console--> System--> Setup--> QlikView Services--> Folders--> Mounted Folders--> Name (Destination or Published Documents) and give the path C:\Folder_Name


Solution is you need to use hidden script functionality. Qlikview server won't delete hidden script while using distribute task. And it will load data properly.

meetmrudul
Contributor II

Re: Restoring Script from QV Document

Thanks for the reply.

But is there is any way I can get the original script.

meetmrudul
Contributor II

Re: Restoring Script from QV Document

In addition to that, the script in the Source document folder has also lost.

There also I am getting same message, in the Edit Script Section.

Siva_Sankar
Honored Contributor

Re: Restoring Script from QV Document

MK,

I'm afraid that you cannot restore until you have two separate folders( for source and distribution folder).

It might have overwritten the source document there by deleting the scripts.

Regards,

sivasankar

Partner
Partner

Re: Restoring Script from QV Document

In DistributionService folder look for DocumentLog.txt.

If you have added logging to your app, it will be there.

Usually: DistributionService\1\Log\<Date>\<app>\DocumentLog.txt

Highlighted
MVP & Luminary
MVP & Luminary

Re: Restoring Script from QV Document

Hi,

If you enable the file then you can get the script from that, check whether you have log file enabled.

Regards,

Jagan.

View solution in original post