Property Loader Source Error -17500 When Importing Variable in TestStand

Updated Aug 4, 2022

Reported In

Software

  • TestStand

Issue Details

I am trying to use a Property Loader step to dynamically create and import variables and their values during sequence execution from a flattened NI Tab Delimited Text file. This file has the following structure inside:
<PropertyGroup name='Group 1' id='f7f779d0-7286-461e-916f-5323529306e7' description='Description for Group 1'>
<Category>	<PropertyLookup>	<Value>
{FileGlobals}	VariableContainer.NumberVariable {Number}	0
{FileGlobals}	VariableContainer.StringVariable {String}	"SampleString"
{FileGlobals}	VariableContainer.BooleanVariable {Boolean}	False
<PropertyGroup>

I have set up the Property Loader step to import all properties from the source file and to create the required properties when they are not present in the destination, as illustrated below.
 
image.png

When the step executes, it returns a Run-Time Error with Error Code -17500 and the following description:

Error in Property Loader Source 'Source 0'
Unable to create 'FileGlobals.VariableContainer' since it does not exist in the Property Loader Group with id 'f7f779d0-7286-461e-916f-5323529306e7' and name '' in the source. Unselect the property to import or include the property in the source.

I have noticed that if at least one variable within the container or the container itself is created in the sequence beforehand, the error doesn't occur.

Solution

This error happens because the variable container (or the type definition) is not defined in the text file used by the Property Loader step.  To prevent this error, ensure that the container or type is defined in the text file with the variables to import, as shown in the example below.
<PropertyGroup name='Group 1' id='f7f779d0-7286-461e-916f-5323529306e7' description='Description for Group 1'>
<Category>    <PropertyLookup>    <Value>
{FileGlobals}    VariableContainer {Container}
{FileGlobals}    VariableContainer.NumberVariable {Number}    0
{FileGlobals}    VariableContainer.StringVariable {String}    "SampleString"
{FileGlobals}    VariableContainer.BooleanVariable {Boolean}    False
<PropertyGroup>

Additional Information

The error addressed above can also be observed when using the Import / Export Properties tool instead of the Property Loader step or with other source types, such as NI Comma Delimited Text files, as pictured beneath.
 
image.png