Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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
jagan
Luminary Alumni
Luminary Alumni

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
jerrysvensson
Partner - Specialist II
Partner - Specialist II

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

Siva_Sankar
Master II
Master II

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.

Anonymous
Not applicable
Author

Thanks for the reply.

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

Anonymous
Not applicable
Author

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
Master II
Master II

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

jerrysvensson
Partner - Specialist II
Partner - Specialist II

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

jagan
Luminary Alumni
Luminary Alumni

Hi,

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

Regards,

Jagan.