When I execute a ST Logic with a sql query to a linked odbc table with a 64bit driver, I get the following program error:
QP Error - Cannot suspend Database Write Lock lock while caching the results of SQL queries for OnUpdate execution
How can I fix this error?
I can see one similar issue raised before, and on that occasion it was resolved by 'adding the NOCACHE attribute to the VAR ... END_VAR block that contains the query.'. Is NOCACHE defined?
What type of system are you asking about?
OS: Windows Server 2016 (64bit)
ClearScada: CS2017 R3
ODBC DSN: 64bit
When I run the query in an eventwindow or mimic script I get the data (no error),
when I try to execute a ST Logic with the same query I get the error
I can see one similar issue raised before, and on that occasion it was resolved by 'adding the NOCACHE attribute to the VAR ... END_VAR block that contains the query.'. Is NOCACHE defined?
Using an Linked ODBC Table in an ST query is a really bad idea. I would recommend that you try to look at an alternative method of getting this data into your ClearSCADA system if at all possible.
The additional performance (and availability) issues around the Linked ODBC table will result in issues with Database Locks which will affect your entire ClearSCADA system.
You could possibly do a push from an SSIS package or similar (if using MSSQL) into a ClearSCADA DataTable, so that the ST SQL query is referencing a native ClearSCADA Table.
Hi BevanWeiss,
Thanks for your recommendation!
Hi HowardF,
This was the trick!
Thanks for your solution!
Discuss challenges in energy and automation with 30,000+ experts and peers.
Find answers in 10,000+ support articles to help solve your product and business challenges.
Find peer based solutions to your questions. Provide answers for fellow community members!