5.5 OTM Issue with Saved Query Definition. Get Error: ORA-00900: invalid SQL (Doc ID 743256.1)

Last updated on JULY 09, 2014

Applies to:

Oracle Transportation Management - Version 5.5.03.02 and later
Information in this document applies to any platform.

Symptoms

There is a requirement to create saved query definition SQL with "!!" . This is based on OTM
help which states -->"If you want to use SQL functions, such as SUM or MAX then the SQL Find
All must begin with a keyword of "!!". For example, the SQL could appear as "!!select sum(total_weight) from shipment" in order to select the total weight of the shipment."

If you create a saved query with Find All sql beginning with "!!" and then try to execute the saved query under Business Process Automation>> Process Management>> Data Query, the following error will occur -->java.sql.SQLException: ORA-00900: invalid SQL statement

.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms