NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TS 2012 SP1 : STEP_Result recording always fail in a MySQL database (standard schema)

Solved!
Go to solution

Hi all,

 

I'm using TS 2012 SP1 to run very simple sequences (few sequence calls in the same file and some simple tests without any adapters) with the sequential model (see attachements). Each time database logging step fails with error -2147352567 on statement STEP_RESULT.

 

This means I cannot log my step results in my MySQL 5.2 database (UUT_RESULT seems to be recorded...).

 

My configuration is :

  • Win 7 32 bits
  • TS 2012 SP1
  • MySQL 5.2 + ODBC connectors

The database has been built using MySQL Workbench using the sql file found in the TS Components folder.

Under TS, the schema used is a simple duplication of MySQL Insert schema delivered with TS. (see attachements).

 

Any idea of what's happening ? Any workaround ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 8
(4,105 Views)

zyl7

1) Is there any additional information in the error that TestStand is raising?

2) If you choose the TestStand default schema do you get the same error?

3) Have you tried to see if the TestStand results will log with the "Use On-The-Fly Logging" option unchecked? If this also errors, what is the error specifically?

 

Scott Richardson
0 Kudos
Message 2 of 8
(4,084 Views)

Hi Scott,

 

1) Is there any additional information in the error that TestStand is raising?

=> Nothing else (see pic attached), TS considers its a user-defined error.

 

2) If you choose the TestStand default schema do you get the same error?

=> If you mean 'generic recordset' schema, it's intended to be used with MS SQL or Access. If I chosse the default MySQL schema it produces the same error. My schema is a simple duplication of MySQL schema without any modifications (except its name).

 

3) Have you tried to see if the TestStand results will log with the "Use On-The-Fly Logging" option unchecked? If this also errors, what is the error specifically?

=> With On-the-fly logging it produces the same error.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 8
(4,076 Views)

Hi,

 

I have been able to log successfully to this version of mySQL, so I'm not sure why it would be failing on your end.  A couple other things to try:

 

  1. Confirm that the "test connection" button in the build options window (click Build... in the data link tab) does not produce any errors
  2. Are you able to log to the database successfully outside of TestStand?
Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 4 of 8
(4,037 Views)

Hi Al,

 

  1. Confirm that the "test connection" button in the build options window (click Build... in the data link tab) does not produce any errors

=> No error, connection test passed

 

2. Are you able to log to the database successfully outside of TestStand?

=> SQL requests from MySQL Workbench (or any other SQL IDE) work fine.

=> I even can write in 'STEP_RESULT' table using the sequence attached to this post.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 5 of 8
(4,016 Views)
Solution
Accepted by topic author CyGa

Problem fixed !

 

I upgraded the MySQL ODBC driver to version 5.2.5 (instead of 5.2.4) and the problem is gone !

Thanks for the help.

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 6 of 8
(3,984 Views)
Hi Al, Scott, Upgrading the ODBC connector to 5.2.5 resolved the issue. On my side I couldn't reproduce the issue with a previous version (5.2.2) than the one used by Zyl7 (5.2.4). Have a good NI Week! Regards

Romain DUVAL || RF & Semiconductor Staff System Engineer || CLA || CTA
National Instruments France

0 Kudos
Message 7 of 8
(3,980 Views)

zyl7 -

Thanks for letting us know. Glad that the fix was that simple.

Scott Richardson
0 Kudos
Message 8 of 8
(3,959 Views)