I believe this error is because i have copy/pasted a new query in my query template, i will have to make few more changes either in configuration or any other file, which i'm not sure of. i'm using a simple query, as below, now but getting the same error.Any help on how to add a new query and proceed
<td>
SELECT
DACTIONDATE
FROM WorkflowHistory
WHERE UPPER(dDocName) = UPPER(?)
AND daction IN('SendTo','Approve')
ORDER BY dActionDate DESC,dActionMillis;
</td>
<td>dDocName varchar</td>