Skip to main content
Question

Quick report - missing right parenthesis error


Forum|alt.badge.img+10

Hi,

The following code works in the database when run.

select 
       COH.DATE_ENTERED,
       COH.ORDER_NO,
       COH.ORDER_ID,
       COH.CONTRACT,
       COH.CUSTOMER_NO,
       COH.CUST_REF,
       COH.C_DEPOT,
       COH.STATE,
       COA.addr_1,
       COA.addr_2,
       COA.addr_3,
       COA.addr_4,
       COA.addr_5,
       COA.addr_6,
       COA.address1,
       COA.address2,
       COA.address3,
       COA.address4,
       COA.address5,
       COA.address6,
       COA.zip_code,
       COA.city,
       COA.state,
       COA.county from ifsapp.CUSTOMER_ORDER COH 
left join ifsapp.CUST_ORD_ADDRESS_2_UIV COA
on COA.order_no = COH.ORDER_NO
where to_date(COH.DATE_ENTERED,'dd/mm/yy') between to_date('&DATE_FROM', 'dd/mm/yy') and to_date('&DATE_TO', 'dd/mm/yy') and COH.ORDER_NO like 'H%'
and COH.CONTRACT like '%' || upper('&SITE') || '%'

 

However, when running the code in a quick report. I receive the following error: 

 

 

5 replies

Forum|alt.badge.img+5
  • Sidekick (Customer)
  • 22 replies
  • April 29, 2025

Maybe a stupid change, but could you try to change the format of the dates to this:

 

where TRUNC(COH.DATE_ENTERED,'DD-MM-YYYY') 
between TRUNC(TO_DATE('&DATE_FROM', 'DD-MM-YYYY')) and TRUNC(TO_DATE('&DATE_TO', 'DD-MM-YYYY'))


Forum|alt.badge.img

Hi, try changing the order of the conditions, I encountered a similar error in IFS but in the cloud version - there must not be any note or text as the last one and in your case you have a dynamic parameter with '' as the last one - maybe that is causing the problem. The script worked for me in PL/SQL Developer.


Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 7 replies
  • July 16, 2025

I get the same error, but all is ok in PLSQL


Link
Superhero (Customer)
Forum|alt.badge.img+23
  • Superhero (Customer)
  • 1227 replies
  • July 16, 2025

Hi ​@JannetteC 

did you assign this quick report to your permission set?


Forum|alt.badge.img+2
  • Do Gooder (Customer)
  • 7 replies
  • July 16, 2025

I’m IFSAPP, so no need for permission sets


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings