TestStand Error -17306 When Using EvaluateEx Method

Updated Oct 31, 2018

Reported In


  • TestStand

Issue Details

I am trying to use the EvaluateEx() method in TestStand and am receiving Error -17306; Unknown variable or property name when executing my sequence file.


This is most likely caused by passing an expression that is not formatted as a string to the method.

For example:
if you want to set a variable, such as a FileGlobal, equal to the name of the current step using RunState.Step.Name you would need to encase the entire expression in quotes.

EvaluateEx("FileGlobal.FinalValue = RunState.Step.Name",0)

Additionally, if you are using any strings directly in the expression, you will need to include an escape character, the backslash, along with quotes for that string.

EvaluateEx("FileGlobal.FinalValue = \"MyString\"",0)


Not Helpful