This content has been marked as final. Show 3 replies
How about the function you are using in the query:
Did you try to exclude this and see if the same error happens again?
Do you handle exceptions in your function?
I changed the query to:
from statements st,
where ba.bank_account_id = st.bank_account_id;
I still get the same error when I enable the sort column header.
When i disable it then I have no problem.
Remove the ";" from the end of sql statement. When you establish a sort via the wizard, apex is dynamically extending your sql statement to apply the order by clause and your ";" is then invalid.