Getting Exception while running query API in OD version 25.2.21
Posted: Tue Jul 22, 2025 11:01 pm
Hi Team
I am getting exception while running following query from query API in version 25.2.21:
API : https://api.opendental.com/api/v1/queri ... y?Offset=0
Body :
{
"SqlCommand": "SELECT p.PatNum, REPLACE(REPLACE(p.FName, '\"', '"'), '\\'', ''') AS FName FROM patient AS p LEFT JOIN definition AS bt ON bt.DefNum = p.BillingType AND bt.Category = 4 WHERE p.PatNum IN (1);"
}
Exception:
"Query command must either be read-only or execute on a temporary table."
However the same query API with same SQL command runs just fine on older version.
Are there any changes being done in 25.2.21 which don't allow running this query.
I am getting exception while running following query from query API in version 25.2.21:
API : https://api.opendental.com/api/v1/queri ... y?Offset=0
Body :
{
"SqlCommand": "SELECT p.PatNum, REPLACE(REPLACE(p.FName, '\"', '"'), '\\'', ''') AS FName FROM patient AS p LEFT JOIN definition AS bt ON bt.DefNum = p.BillingType AND bt.Category = 4 WHERE p.PatNum IN (1);"
}
Exception:
"Query command must either be read-only or execute on a temporary table."
However the same query API with same SQL command runs just fine on older version.
Are there any changes being done in 25.2.21 which don't allow running this query.