NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error code -17306; Unknown variable or property name.

What does this error code mean in Test Stand, And what are solutions to this problem
0 Kudos
Message 1 of 3
(6,109 Views)
Hi Reither,

A little more information is required. What step type is running when this error occurs? Which code module adapter are you using? This may be an error from the code module itself. In general terms though the error you see, Error -17306, occurs if the characters in your expression are interpreted by TestStand as the name of a property or variable. If you are trying to refer to a property or variable name, verify that you are using the correct lookup string. For example, if you are trying to reference a local variable called MyLocal, the correct lookup string would be the following:

Locals.MyLocal

Hope this helps,

Nick
0 Kudos
Message 2 of 3
(6,109 Views)
Hi Reiter,

There are many reasons for this error as Nick has pointed out.

I have attached an example illustrating a typical situation.

One of the steps tries to read the value of a boolean in Locals of MainSequence. An error -17306 is generated if the boolean is not present.

The first step in Main gives you the option to skip or not skip the next step in the sequence.
The next step writes True to Locals.MyBoolean. (not this step has the option 1 - Insert if Missing)
The following steps Reads the boolean Locals.MyBoolean.

Hope this helps to resolve your problem
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 3 of 3
(6,109 Views)