My Oracle Support Banner

Agent Running Direct SQL Update Action Error - java.sql.SQLException: Invalid SQL type (Doc ID 752049.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Transportation Management - Version and later
Information in this document applies to any platform.
This problem can occur on any platform.


-- Problem Statement:
When attempting to update records with direct SQL the following error occurs:

java.sql.SQLException: Invalid SQL type
at oracle.jdbc.driver.DatabaseError.throwSqlException(
at oracle.jdbc.driver.DatabaseError.throwSqlException(
at oracle.jdbc.driver.DatabaseError.throwSqlException(
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(
at glog.util.jdbc.noserver.SqlQuery.executeQuery(
at glog.server.agent.utility.directsqlupdate.PersistenceHelper.getValuesfromSubQuery(
at glog.server.agent.utility.directsqlupdate.SQLParser.parse(
at glog.server.agent.utility.DBUpdate.getChangedItemsFromSQL(
at glog.server.agent.utility.DBUpdate.getChangedItems(
at glog.server.agent.utility.DBUpdate.execute(
at glog.server.agent.ActionWorkflow.execute(
at glog.server.workflow.WorkflowSessionBean.execute(
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper.execute(
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper_61kh96_EOImpl.execute(
at glog.server.workflow.WorkflowManager.execute(
at glog.server.workflow.Trigger.trigger(
at glog.util.event.MemoryEventQueueRunnable.processEvent(
at Source)
[agentUtility - 2]

-- Steps To Reproduce:
1. An agent is created to trigger when changes on a shipment occurs and to run a direct SQL update.
2. A Shipment is created and updated.
3. The agent it triggered and the SQL will attempt to delete older Refnums and new RefNums are created.
4. The result is the error reported and shown above.


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

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