NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Logging new property in DB

Hello

 

I am in situation to log additional result in DB from a custom step type, i have added a new string type variable [TEST_NUMBER] to result container of my custom step. After that i have tried to use [TEST_NUMBER]to be logged into DB by Logging.StepResult.TEST_NUMBER but on runtime i am getting an error as

 

An error occurred calling 'LogResults' in 'ITSDBLog' of 'zNI TestStand Database Logging'
An error occurred while setting a column value.
Schema: Copy of Generic Recordset
Statement: STEP_RESULT.
Column: TEST_NUMBER
Unknown variable or property name 'Logging.StepResult.TEST_NUMBER'.

Source: TSDBLog

 

Location: Step 'Log Results to Database' of sequence 'Log To Database' in 'Database.seq'

 

I am not able to trace where i am going wrong please help me.

Process used : Logging a New Step Property to a Database in TestStand

Regards

Nitin Goel
0 Kudos
Message 1 of 4
(3,532 Views)

Hi,

 

The trouble is that TEST_NUMBER is not defined in the default schema for STEP_RESULT.

 

You would have to modify the schema to include TEST_NUMBER.

 

Check out the Reference Manual Chapter 6. this may help.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,530 Views)

Thanks for quick reply Ray.

 

I have already configured the schema and even the column [TEST_NUMBER] is present in the STEP_RESULT table. See attached pic for more info.

0 Kudos
Message 3 of 4
(3,518 Views)

Hi,

Please find attached a screen shot of the schema that works for me.

Hope it helps.

Regards,

Don.

 

 

0 Kudos
Message 4 of 4
(3,504 Views)