IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

error while configuring adapter notification for MS SQL serv

  • 1.  error while configuring adapter notification for MS SQL serv

    Posted Fri February 20, 2009 12:15 AM

    while configuring the adapter notification for the table in the MS SQL server I am getting the following error…

    com.wm.app.b2b.server.ServiceException: [ART.114.243] Adapter Runtime (Metadata): Failed to run notificationLookupValues service.


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 2.  RE: error while configuring adapter notification for MS SQL serv

    Posted Mon March 09, 2009 10:48 AM

    Hi,

    this is a known issue. MS SQL does not allow conditions on the Database trigger created by the notification.

    There is no possibility to configure MS SQL to allow it and it is not a problem with wM Adapter.

    If you need a condition you have to implement it as a branch in the flow service triggered by the notification.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: error while configuring adapter notification for MS SQL serv

    Posted Tue March 10, 2009 11:09 AM

    Hi,

    I’m not sure if this is limitation on the MS SQL. I was able to edit the trigger on the Database and it is working fine.

    1. Create your trigger without any conditions from developer.
    2. Modify the trigger you created on the MS SQL DB.
    3. Here is the syntax for condition…
      set ANSI_NULLS ON
      set QUOTED_IDENTIFIER ON
      go

    ALTER TRIGGER <[trigger name]=“”> ON [dbo].<[table name]=“”> for update as
    if update <(field name)=“”>
    begin INSERT INTO dbo. <(fields you=“” need=“” to=“” extract=“” to=“” buffer=“” table)=“”>
    SELECT inserted., insertedinserted.,
    FROM inserted, deleted WHERE deleted. =
    end

    Regards,
    Chapa</(fields></(field></[table></[trigger>


    #webMethods
    #Integration-Server-and-ESB
    #Adapters-and-E-Standards


  • 4.  RE: error while configuring adapter notification for MS SQL serv

    Posted Fri March 20, 2009 02:24 PM

    We ran into this problem and were able to resolve it by rediting the Trigger just as Chapa described.

    We created a trigger specifically just for when new items hit a particular table.

    The trigger did not work properly until we did 2 things

    1. removed the deleted from the “FROM inserted,deleted” portion of the code. This is attemping an inner join and since we did not delete anything there was not matching portion to complete the join, thus no data returned.
    2. The buffer table was coming up with the format .. Since we did not have a schema called it was failing. Once we created a schema called we were up and running.


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods