reportbuilder
MIS
Hi all,
I'm new to Crystal Reports. I'm encountering the below error when attempting to use Crystal Report 11's date parameter within my sql statement against an Oracle database date column.
Oracle Char Set:
NLS_CHARACTERSET - WE8MSWIN1252
NLS_DATE_FORMAT - DD-MON-RR
Error:
Details: 22018:[Oracle][ODBC][Ora]ORA-01722: invalid number
[Database Vendor Code: 1722
Table/column
SHIP_DATE_ACTUAL - DATE
Query:
WHERE
msi.organization_id = 2 and
msi.inventory_item_id = dil.inventory_item_id and
msi.attribute14 like 'FG%' and
msi.segment1 < '99' and
rc.customer_class_code = 'RET' and
rc.customer_id = dih.bill_to_customer_id and
dil.line_type = 'LINE' and
dil.invoice_id = dih.invoice_id and
to_date(to_char(dih.ship_date_actual,'mm/dd/yyyy'),'mm/dd/yyyy') <
to_date(to_char('?DateParam','mm/dd/yyyy'),'mm/dd/yyyy')
GROUP BY
msi.attribute15, dih.ship_date_actual
order by dih.ship_date_actual desc
I'm new to Crystal Reports. I'm encountering the below error when attempting to use Crystal Report 11's date parameter within my sql statement against an Oracle database date column.
Oracle Char Set:
NLS_CHARACTERSET - WE8MSWIN1252
NLS_DATE_FORMAT - DD-MON-RR
Error:
Details: 22018:[Oracle][ODBC][Ora]ORA-01722: invalid number
[Database Vendor Code: 1722
Table/column
SHIP_DATE_ACTUAL - DATE
Query:
WHERE
msi.organization_id = 2 and
msi.inventory_item_id = dil.inventory_item_id and
msi.attribute14 like 'FG%' and
msi.segment1 < '99' and
rc.customer_class_code = 'RET' and
rc.customer_id = dih.bill_to_customer_id and
dil.line_type = 'LINE' and
dil.invoice_id = dih.invoice_id and
to_date(to_char(dih.ship_date_actual,'mm/dd/yyyy'),'mm/dd/yyyy') <
to_date(to_char('?DateParam','mm/dd/yyyy'),'mm/dd/yyyy')
GROUP BY
msi.attribute15, dih.ship_date_actual
order by dih.ship_date_actual desc