Qlik Community

Deployment Framework

Announcements
June 28, 10AM ET: Qlik Nation and Qlik Community present: CyberSleuth REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
vasilev
Contributor III
Contributor III

Shared-path variables do not update after reload

Hello guys,

I have updated to QDF 1.7.0 for 2 days and I found the following problem in that version. I have reloaded a QV application once via publisher and once via desktop client and I have got the problem that the Shared-path variables did not updated. Please see the attached screenshot. Could somebody of you observes the same problem?2017-08-15 11_15_51-Variable Overview.png

BR

Rumen

1 Solution

Accepted Solutions
Magnus_Berg
Employee
Employee

Hi Rumen, this could possible be a problem with the global variable cache  introduced in 1.7. Add these lines in the top of the script to clear out the cache:

set vG.BasePath=;
set vG.SharedBasePath=;


From the reference guide:


Clear Initiation Cache

To speed up initiation, a variable cache function has been introduced (v1.7 and later). The cache will validate the Home and shared container root path, if path is the same as last initiation then old global variables will be used. When the cache is used, these lines appear in log and output window.
'### QDF Info, Global Variables using cache'
'### QDF Info, Shared Global Variables using cache'

To override the cache function, add these lines before the initiation script.

set vG.BasePath=;
set vG.SharedBasePath=;

View solution in original post

5 Replies
Magnus_Berg
Employee
Employee

Hi Rumen, this could possible be a problem with the global variable cache  introduced in 1.7. Add these lines in the top of the script to clear out the cache:

set vG.BasePath=;
set vG.SharedBasePath=;


From the reference guide:


Clear Initiation Cache

To speed up initiation, a variable cache function has been introduced (v1.7 and later). The cache will validate the Home and shared container root path, if path is the same as last initiation then old global variables will be used. When the cache is used, these lines appear in log and output window.
'### QDF Info, Global Variables using cache'
'### QDF Info, Shared Global Variables using cache'

To override the cache function, add these lines before the initiation script.

set vG.BasePath=;
set vG.SharedBasePath=;

Magnus_Berg
Employee
Employee

Hi again vasilev, I added the attached 'fix' to your problem, replace the 1.Init.qvs in your containers. This will clean the shared variable cache in a better way, will introduce this fix in the framework as well.

Best regards

Magnus

aritting
Creator
Creator

I too discovered this issue after upgrading from QDF 1.5.1 to 1.7

I would not have noticed it except I attempted to use the IndexAdd function and I received an unknown error attempting to access the sharedfolder on the server instead of my local path (Q:\).

The error I got from indexAdd was:

Unknown Error

store * from [___vL.tmpTable] into '\\DWQLIKDEV\qv-docs\SourceDocs\10.DWQLIKDEV\99.shared_folders\5.Config\Index\SalesThruMargin_2.QVD_BusinessUnit.qvd.Index' (txt,delimiter is ';' )

Qv_2017-08-24_10-15-33.png

aritting
Creator
Creator

Hi Magnus, I downloaded the 1.Init.qvs file that you posted to the 23 places I had a copy in a container but I'm still not getting the desired result.  I have to go into the app and delete the Shared* variables for them to get reset to the correct path.

Magnus_Berg
Employee
Employee

Hi Andrew, try moving and reloading the app between the two environments. The cache is still available just that the shared cache is now cleaned when the base variable have been updated. To simulate this, try to delete only the basepath:

set vG.BasePath=;

This should clear the shared cache as well. Hope that this helps?

Regards

Magnus