Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
1 ratings:
 4 out of 5   

Why do I Receive Errors when Generating XML or ATML Reports with TestStand?



Primary Software:
Primary Software Version: 4.0
Primary Software Fixed Version: 2010 SP1
Secondary Software: DIAdem, LabVIEW Toolkits>>LabVIEW DataFinder Toolkit

Problem:
The NI DataFinder is indexing files on my machine (installs with DIAdem or LabVIEW DataFinder Toolkit or DataFinder Server Edition), and I sometimes receive errors -5001 and -17205 when generating XML or ATML reports from TestStand example sequences. I am able to generate HTML and ASCII reports without any errors – what is causing these errors?

Solution:

The NI DataFinder periodically indexes files in certain default directories, one of which is the National Instruments Public directory. When the DataFinder attempts to index a file, it grabs exclusive read access to the file such that no other process can read or write to the file.

When generating an XML or ATML report, TestStand obtains and releases write access to the file on multiple occasions when creating the file, writing to the file, adding/removing root tags, etc., and TestStand does not expect other applications to lock the file. By default, TestStand will attempt to generate a report file in the same directory as the sequence file being run.

You may encounter the above mentioned errors if all of the following apply:
  1. You install a DataPlugin for TestStand XML or ATML report files
  2. You generate an XML or ATML report for a TestStand sequence, such as a TestStand  example sequence file
  3. DataFinder is configured to index the directory where TestStand generates the report, such as the <TestStand Examples> directory.
It is recommended that you do not generate TestStand reports in a directory that DataFinder is indexing. You can manually exclude a directory where TestStand generates reports from NI DataFinder’s list of Search Areas (directories to index), and later copy the test report to a directory indexed by NI DataFinder if you need the data to be indexed. 

The Version Selector application installed by TestStand 2010 SP1 or newer automatically configures DataFinder 2011 or newer to exclude files in the <TestStand Public> directory for all version of TestStand installed on a machine. Thus you will not encounter the above mentioned error when running TestStand example sequences if TestStand 2010 SP1 or newer is installed and DataFinder 2011 or newer is indexing files on your machine.
 
If you must generate reports in a directory indexed by NI DataFinder, DataFinder 2012 SP1 introduced a delayed indexing feature which allows you to configure DataFinder to not index files until a specified amount of time has passed since the last modification of the file. This feature is enabled for My DataFinder 2012 SP1 or newer with a default delay of 20 seconds, and disabled for DataFinder Server Edition by default. Complete the following steps to customize the delayed indexing setting:
  1. Navigate to the following location in the Windows registry: [HKEY_LOCAL_MACHINE\Software\National Instruments\Common\DataFinder\ConfigItems].
  2. Set the DeferredIndexingEnabled key to 0000001 to enable delayed indexing, or 0000000 to disable it. This key is a DWORD value.
  3. Set the DeferredIndexingTimeInSeconds key to the number of seconds you would like DataFinder to wait before indexing new files. This key is a DWORD value.


Related Links:

Attachments:





Report Date: 03/28/2011
Last Updated: 09/21/2015
Document ID: 5JRDC7XU

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit