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

Last updated on SEPTEMBER 08, 2016

Applies to:

Oracle Transportation Management - Version: 5.5.04.01
This problem can occur on any platform.

Symptoms

-- 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(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:76)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:993)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1170)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:124)
at glog.util.jdbc.noserver.SqlQuery.executeQuery(SqlQuery.java:146)
at glog.util.jdbc.noserver.SqlQuery.open(SqlQuery.java:94)
at glog.server.agent.utility.directsqlupdate.PersistenceHelper.getValuesfromSubQuery(PersistenceHelper.java:388)
at glog.server.agent.utility.directsqlupdate.SQLParser.parse(SQLParser.java:304)
at glog.server.agent.utility.DBUpdate.getChangedItemsFromSQL(DBUpdate.java:186)
at glog.server.agent.utility.DBUpdate.getChangedItems(DBUpdate.java:212)
at glog.server.agent.utility.DBUpdate.execute(DBUpdate.java:98)
at glog.server.agent.ActionWorkflow.execute(ActionWorkflow.java:51)
at glog.server.workflow.WorkflowSessionBean.execute(WorkflowSessionBean.java:64)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper.execute(WorkflowSessionServerSideEJBWrapper.java:56)
at glog.server.workflow.WorkflowSessionServerSideEJBWrapper_61kh96_EOImpl.execute(WorkflowSessionServerSideEJBWrapper_61kh96_EOImpl.java:208)
at glog.server.workflow.WorkflowManager.execute(WorkflowManager.java:341)
at glog.server.workflow.Trigger.trigger(Trigger.java:123)
at glog.util.event.MemoryEventQueueRunnable.processEvent(MemoryEventQueueRunnable.java:141)
at glog.util.event.MemoryEventQueueRunnable.run(MemoryEventQueueRunnable.java:96)
at glog.util.event.EventThread.run(EventThread.java:82)
at java.lang.Thread.run()V(Unknown 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.

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