Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Failed to parse Interactive Report's SQL query

Eslam_ElbyalyFeb 29 2020 — edited Jun 15 2020

Apex 18.2

Hi,

I have an interactive report based on a PL/SQL function with the following code:

return q'~

select EMPNO,

       ENAME,

       JOB,

       MGR,

       HIREDATE,

       SAL,

       COMM,

       DEPTNO

  from EMP

where DEPTNO IN (~'||:P2_DEPTNO||')';

:P2_DEPTNO is a popUp Lov that allow multiple values. And it's based on:

select dname, deptno from emp;

When I validate the function it shows,

ORA-20999: Parsing returned query results in "ORA-20999: Failed to parse SQL query! <p>ORA-06550: line 13, column 6: ORA-00936: missing expression</p>".

This post has been answered by fac586 on Feb 29 2020
Jump to Answer
Comments
Post Details
Added on Feb 29 2020
12 comments
8,740 views