Dear Support Team,
I am experiencing an issue with SQL Sandbox in an Oracle DB-based environment.
When executing the action Execute that reaches the note AddToHistory, the system throws an error: "Error executing query. "
Based on my investigation, the error occurs in the GetStatementHistoriesByUserId aggregate. It appears to be caused by the filter expression:
Trim(ToLower(Replace(Replace(StatementHistory.Statement, NewLine(), ""), " ", "")))
Have you guys encountered this and is there a way to fix it?
Thanks!
Hi everyone,
I did some digging to figure out what was going on.
The root cause is that the Statement field has a length of 20,000, which makes Oracle treat it as a CLOB. That’s why the = operator doesn’t work in the Aggregate Filter - Oracle doesn’t support direct equality comparison on CLOB fields.
Here’s what worked for me:
Hope this helps someone else facing the same issue!