Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Aug 24, 2020 4:10:57 AM
Oct 18, 2013 11:43:12 AM
Shared user objects or bookmarks may stop working due to .shared file corruption. It's suggested to verify and clean Shared Files on occasion.
As of QlikView 11.2 SR4, QlikView includes an inbuilt functionality to run corruption reports (verification) and cleaning (purge) of any Shared file. With 12.20 (November 2017), the cleaning and verification of Tshared files was added. 12.20 also introduces the ability to convert between .shared and .tshared.
! See the Qlik Online Help > Deploying QlikView > Planning QlikView Deployments > Deployment > Cleaning and converting the shared files for more details and specific commands. Select the respective version of QlikView for commands specific to the installed version.
Because the new tool runs from a command prompt that instructs qvs.exe to perform the desired actions, it is advised to copy the qvs.exe to a temporary location where it will be utilized for reporting and cleaning. This will also ensure your production qvs.exe remains independent of these processes.
Similar to above, it is also recommended to run reports and cleaning on copies of your production Shared files. This will ensure that you are not affecting anything currently in a production state.
C:\Temp\SharedFileToolTemp>qvs.exe -x "C:\ProgramData\QlikTech\Documents\Golf Quest.qvw.shared" –v
C:\Temp\SharedFileToolTemp>qvs.exe -x "C:\ProgramData\QlikTech\Documents\Golf Quest.qvw.shared" –p
C:\Temp\SharedFileToolTemp>qvs.exe -x "C:\ProgramData\QlikTech\Documents\Golf Quest.qvw.shared" –p -rBM 1000000
C:\Temp\SharedFileToolTemp>qvs.exe -x "C:\ProgramData\QlikTech\Documents\Golf Quest.qvw.shared" –p -ro domain\olduser domain\newuserxample of clearing out bookmarks based on last use:
-so will set owner -ro replace
See Cleaning Bookmarks in the QlikView shared file for details.
-l: Allows you to choose the path where the log file is stored. The default location is "C:\ProgramData\QlikTech\QlikViewServer"
-o: Allows you to choose the path where the cleaned shared file is stored. The default location is the same folder that the original shared file is located.
The verification (-v) parameter won't work with a qvs.exe from 11.20 SR5, 11.20 SR6 and 11.20 SR7. This issue has been reported to R&D with product defect ID 68257. As a workaround it will work to use a qvs.exe from 11.20 SR4.
There was also an issue in 12.00 initial release and possibly other service releases in 12.00 track.
Support Article: Shared Files - General Information
Support Article: Shared Files - Detecting Corruption in the Environment
Support Article: How to convert between different QlikView shared file formats
1. Make backups of your shared files before proceeding.
2. Locate your copy of QVS.exe. By default that will be in C:\Program Files\QlikView\Server and
make a copy of it. Place the copy in a different folder, for example C:\Temp.
3. Determine which shared file you wish to repair (purge).
4. Open a command prompt (run as Administrator).
5. To repair the shared file, enter the appropriate command line as below. For example:
C:\> “C:\Temp\QVS.exe” –x “C:\ProgramData\QlikTech\Documents\MOVIES DATABASE.QVW.Shared” –p
6. The purge process will create a new shared file, with corrupt objects removed or corrected. Note
the resulting file may be larger than the source file. The new file will be placed in the same
folder as the source shared file, but will be called MOVIES DATABASE.QVW.qvw.Shared_clean. The
original source shared file will be remain in place.
7. Finally, replace the old corrupt shared file with the new file. Do this when the file is not in use
(i.e. there are no users accessing the application on the server). Rename the old shared file,
and copy the new shared file. The correct name should be MOVIES DATABASE.QVW.qvw.Shared.