Rafi -
Locals.TS_LoggingTemplate is a temporary variable that the On-The-Fly feature of the Database Logging component creates to manage state while attempting to log results as it goes.
I assume that you are using a custom schema and that you are attempt to log on the fly. It appears that the custom schema definition is confusing the database logging component in a way that we did not expect, so the error message is not very clear.
In general if you are developing a custom schema, you should test the schema with On-The-Fly off first, get it working and then turn it back on.
Questions:
1) If you turn off On-The-Fly logging, do results log properly?
2) Can you post your TestStandDatabaseOptions.ini in the TestStand config directory.
Scott R
ichardson (NI)
Scott Richardson
https://testeract.com