IBM Support

webMethods Knowlegebase : Error "(S0001/156) Incorrect syntax near the keyword 'identity'." when enabling Ordered Notification with IDENTITY property (1779526)

Troubleshooting


Problem

Following error is thrown when enabling Ordered Notification and one of the table column is with IDENTITY datatype:

+---

[ART.116.3038] Adapter Runtime (Notification): Error in Notification Callback:enableCallback notification IdentityIssue.notification:OrderIdentityNotification.

[ADA.1.316] Cannot execute the SQL statement "CREATE TRIGGER #TriggerName ON #TableName for insert as begin DECLARE @col1 bigint identity, @col2 nchar(10)

DECLARE c CURSOR FOR SELECT col1, col2 FROM inserted

OPEN c

FETCH NEXT FROM c INTO @col1, @col2

WHILE @@FETCH_STATUS = 0 BEGIN

INSERT INTO #BufferTableName default values;

INSERT INTO #TriggerName (col1, col2, wm_rowid) VALUES (@col1, @col2, @@IDENTITY);

FETCH NEXT FROM c INTO @col1, @col2

END

CLOSE c

DEALLOCATE c

END

". "

(S0001/156) Incorrect syntax near the keyword 'identity'."

Incorrect syntax near the keyword 'identity'.

---+

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Adapter for JDBC (JDB)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Adapter for JDBC (JDB)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Version(s)"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

Product Build 6.5

Document Information

Modified date:
20 March 2025

UID

ibm17205692