I’ve received several requests to provide a batch interface to the popular QV Document Analyzer tool that will provide for analyzing multiple QVWs with a single command. It’s now available in the QV Document Analyzer bundle available for download here.
The script is a windows cmd file. The usage from the command line is:
DaBatch.cmd somedir
REM *** Path to QV.exe executable *** SET qvDir=C:\Program Files\QlikView\Qv.exe
This is location of the QV Desktop executable. The provided value is the default location for most users and is typically appropriate as-is.
REM *** Path to DocumentAnalyzer.qvw. Note that v3.6 or later is required! *** SET DaPath=DocumentAnalyzer_V3.6.qvw
REM *** Directory to store DocumentAnalyzerResults QVDs and QVWs. Will be created if it doesn't exist *** SET DaResultsDir=C:\temp\MyDaResults
REM *** Should the analyzer results be stored in a QVD (YES/NO)? *** SET SaveResultsInQVD=YES
REM *** Should the analyzer results be stored in a QVW (YES/NO)? *** SET SaveResultsInQVW=YES
Analysis Title? <ENTER> for 'Baseline'
If you have set “SET SaveResultsInQVD=NO” as a configuration option, the title value is irrelevant. (Perhaps I should not prompt in that case; next version?).
While the script is running Document Analyzer windows will be launched for each QVW and progress message displayed. It’s best to keep your hands off the keyboard to get proper timings. Good time to get that coffee.
***************************************************** Batch Analysis complete. 3 QVWs analyzed. *****************************************************
Rob
Thanks so much for putting this together and sharing!
Rick
Hi Rob,
I am keeping CMD file and QVWs in the same directory but when i run the script it is not generating any QVDS in folder which we have created.
Thanks
Bala Sairam
I’ll work on debugging this. In the meantime does it work if you place the DABatch.cmd and the DocumentAnalyzer.qvw one directory above the qvw directory?
Hi Rob,
Can I use QMC to schedule the executions and pass all necessary parameters via QMC as variables?
I think this will be useful for the latest version to analysing multiple qvw overnight.
No, you cannot run Document Analyzer as a QMC task, as DA requires the GUI.
Hi,
I have saved file as DABatch.txt and renamed itto DABatch.cmd….now how will i execute this…should i directly open DABatch.cmd or from powershel we have to call this path?
You can execute it directly from a command prompt or by double clicking.
Hi Rob,
Using DABatch.com for a group of QVW files but when DA try to open the QVWs, it generates the Qlik error msg.: “Failed to Open Document”.
For an single QWV, not batch mode, the DA app works fine.
I’m using DA v3.9
Thanks,
Hi Carlos,
Can you tell if it’s failing on a particular QVW? Or all QVWs?
Hi Rob,
In all QVWs … I also did a test with only one QVW file on the source folder and get the same result.
Hi Rob,
Found the issue, the original Batch file came with a doc name of DocumentAnalyzer_V3.6.qvw and I’m using v3.9, I replaced it and it worked. My Bad!
Last question, I thought this batch process it was going to be automated but for each app analyzed by DA, I have to run the Extract Metadata, close the DA and Qlik so the batch can continue. Is this normal ?
No, it should be automated, no intervention required.
Hi Rob,
Found the issue, my original batch version had the flag batch mode set to false “vvBatchMode=0” change it to true “vvBatchMode=1” and now is working fine.
Thanks for everything
hi Rob,
I want to use the data from document analyzer or its qvd to create another dashboard as an asset catalog. while trying to use QVD the joins/associations are not proper.
Are you referring to the DocumentAnalyzerResults_*.qvd? That QVD is stored as a “flattened” datamodel. To convert it back to a full datamodel, see the script in DaCompareTool.qvw. You might find it easier to just Binary Load the DocumentAnalyzer.qvw file.