ORABPEL-11616 Error When Trying To Insert a Record Into a Microsoft SQL Server 2000 Table When It Has a numeric() Identity Column (Doc ID 567437.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle TopLink - Version 10.1.3.3 and later
Oracle(R) BPEL Process Manager - Version 10.1.3.3 and later
Oracle ESB - Version 10.1.3.3 and later
Information in this document applies to any platform.
***Checked for relevance on 12-Oct-2010***


Symptoms

When using SOA version 10.1.3.3 the following error occurs when trying to insert a record into a Microsoft SQL Server 2000 SP4 table when it has an Auto number field (numeric() Identity column) using a DB adapter:

<bindingFault xmlns="http://schemas.oracle.com/bpel/extension"> 
-<part name="code"> 
<code>
544
</code>
</part>
-<part name="summary"> 
<summary> 
file:/C:/1.0_cc969ddfd2939d39e3fcb1b3063529f0.tmp/Service.wsdl WSIF JCA Execute of operation 'write' failed due to: DBWriteInteractionSpec Execute Failed Exception.
write failed. Descriptor name: [t.BPELWorkflow]. [Caused by: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot insert explicit value for identity column in table 'Workflow' when IDENTITY_INSERT is set to OFF.]
; nested exception is: 
ORABPEL-11616
DBWriteInteractionSpec Execute Failed Exception.
write failed. Descriptor name: [Workflow]. [Caused by: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot insert explicit value for identity column in table 'Workflow' when IDENTITY_INSERT is set to OFF.]
Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot insert explicit value for identity column in table 'Workflow' when IDENTITY_INSERT is set to OFF.Error Code: 544
Call:INSERT INTO dbo.Workflow (FacID, FromFacID, FromNsID, FromRoom, ModDate, PatFName, PatID, PatLName, ToFacID, ToNsID, ToRoom, WFStatus, XDate, XID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
bind => [DRMC, JFK, JFK, 143, 2007-08-27 00:00:00.0, HYD, M20072144, BPEL, DRMC, DRMC, 435, APPROVED, 2007-08-27 00:00:00.0, null]
Query:WriteObjectQuery(<BPELWorkflow null />).
</summary>
</part>
-<part name="detail"> 
<detail> 
Internal Exception: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Cannot insert explicit value for identity column in table 'Workflow' when IDENTITY_INSERT is set to OFF.Error Code: 544
Call:INSERT INTO dbo.Workflow (FacID, FromFacID, FromNsID, FromRoom, ModDate, PatFName, PatID, PatLName, ToFacID, ToNsID, ToRoom, WFStatus, XDate, XID) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
bind => [DRMC, JFK, JFK, 143, 2007-08-27 00:00:00.0, HYD, M20072144, BPEL, DRMC, DRMC, 435, APPROVED, 2007-08-27 00:00:00.0, null]
Query:WriteObjectQuery(<BPELWorkflow null />)
</detail>
</part>
</bindingFault>

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