My Oracle Support Banner

The SQL Query to Search for Rates is Not Returning an Expected Rate that Matches the Geography of the Query (Doc ID 1055594.1)

Last updated on JULY 20, 2024

Applies to:

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

Symptoms


A new Rate Record is created via the UI. When running an RIQ or Planning an Order Release, this rate is not being evaluated. In researching the logs, it is found that the SQL used to query all the valid rates is not returning the configured rate. An example of this SQL is as follows:

select all rg.rate_geo_gid, rg.rate_offering_gid, ro.transport_mode_gid, ghs.rank, ghd.rank, rg.effective_date, rg.expiration_date, rv.effective_date, rv.expiration_date, ro.rate_offering_type_gid, rg.is_quote from rate_offering ro, rate_geo rg, rate_version rv, lane l, geo_hierarchy ghd, geo_hierarchy ghs, hname_set_member hsms, hname_set_member hsmd where hsms.hname in ('COUNTRY\USA\', 'USZIP3\170\', 'POSTAL_CODE\17044\', 'USZIP5\17044\', 'LOCATION\$TOBJECT$.197\') and hsmd.hname in ('COUNTRY\USA\', 'USZIP3\180\', 'POSTAL_CODE\18031\', 'USZIP5\18031\', 'LOCATION\$TOBJECT$.198\') and l.source_hname_set_gid = hsms.hname_set_gid and l.dest_hname_set_gid = hsmd.hname_set_gid and rg.x_lane_gid = l.x_lane_gid and rg.is_active = 'Y' and ro.rate_offering_gid = rg.rate_offering_gid and ro.is_active = 'Y' and (ro.perspective = 'A' or ro.perspective = 'B') and rv.rate_version_gid = ro.rate_version_gid and ghs.geo_hierarchy_gid = hsms.geo_hierarchy_gid and ghd.geo_hierarchy_gid = hsmd.geo_hierarchy_gid

Visually inspecting the Rate Record, the geography entered does match the geography mentioned in this SQL statement.

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.