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.

 View Only
Expand all | Collapse all

Sql Server Insert Error

  • 1.  Sql Server Insert Error

    Posted Fri November 22, 2002 05:59 AM

    Hi ,
    I’m trying to Insert in SQL server using insert operation in many tables in SQL. it is inserting in first table(first step of Ing Component)then giving following Error:

    “The COMMIT TRANSACTION request has no corresponding BEGIN TRANSACTION”
    any suggestion would be highly appreciated.


    #broker
    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods


  • 2.  RE: Sql Server Insert Error

    Posted Fri November 22, 2002 01:37 PM

    Ashutosh, if you are using the pub.db:execSQL built-in service (which I assume that you are), you do not need to explicitly call pub.db:commit.

    The execSQL service will not only commit your changes to the database, it will also open the connection to the database (or grab a thread from the database thread pool), begin the transaction, execute one SQL statement, commit the transaction, and close the database connection.


    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #broker
    #webMethods


  • 3.  RE: Sql Server Insert Error

    Posted Fri November 22, 2002 02:34 PM

    Ashutosh, here is an example of insert transactions to multiple tables. The transaction is committed on success of all the insert transactions else is rolledback using startTransaction - Commit/ Rollback steps…

    1 INVOKE debugLog (if required…)
    2 SEQUENCE (exit on SUCCESS)
    2.1 SEQUENCE (exit on FAILURE)
    2.11 INVOKE clearTransaction (Just to make sure there is no open transaction)
    2.12 INVOKE startTransaction
    2.13 INVOKE insertEmp (execSQL DBservice- insert into EMP table)
    2.14 LOOP OVER ‘/deptL’
    2.141 MAP
    2.142 INVOKE insertDept (execSQL DBservice - insert into DEPT table)
    2.15 INVOKE commit
    2.16 INVOKE clearTransaction
    2.3 SEQUENCE (exit on DONE)
    2.31 INVOKE getLastError
    2.32 INVOKE logExceptionDetails (custom service to log exception details)
    2.33 INVOKE rollback
    2.34 INVOKE sendEmail (custom service to send email)

    Hope this helps!


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods
    #broker


  • 4.  RE: Sql Server Insert Error

    Posted Fri November 22, 2002 03:27 PM

    Ashutosh, the above example is from Integration Server 4.6. Please ignore this if it not helpful.


    #webMethods
    #broker
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB


  • 5.  RE: Sql Server Insert Error

    Posted Mon November 25, 2002 06:42 AM

    Hi,
    My problem of Insert is related to Enterprise Server not B2B. any clues for SQL server Insert.


    #webMethods
    #Integration-Server-and-ESB
    #broker
    #Universal-Messaging-Broker


  • 6.  RE: Sql Server Insert Error

    Posted Tue November 26, 2002 01:25 AM

    Hi,

    Can you please tell me what version of ES, adapter and SQL Server are you using.

    Sharath


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods
    #broker


  • 7.  RE: Sql Server Insert Error

    Posted Tue November 26, 2002 04:43 AM

    Hi Sharath
    It is strange when i am inserting through Document Tracker it is working fine but when trying to insert by complete flow ,it is showing error. i’m using ES 5.0,SQL server 7.0,Adapter4.1.
    is there any file need to include or required some driver.
    Ashutosh


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #broker
    #webMethods


  • 8.  RE: Sql Server Insert Error

    Posted Wed November 27, 2002 11:36 PM

    Have you tried using the ODBC Adapter instead of the SQL Server Intelligent Adapter. The SQL Server adapter has had issues and we here also use the ODBC Adapter instead. Another alternative is to use the JDBC Adapter.

    Have you tried recreating the IC and the Configured Operation again. Enterprise Integrator 4.5.2 and up does lot of caching which causes unnecessary problems.

    These two options should help resolve your problem


    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #broker
    #webMethods


  • 9.  RE: Sql Server Insert Error

    Posted Thu November 28, 2002 05:15 AM

    Hi Sharath,
    Thankx for ur suggestion. don’t bother now i have resolved the issue. by the way u r from which company??
    Regards,
    Ashu


    #webMethods
    #Integration-Server-and-ESB
    #broker
    #Universal-Messaging-Broker


  • 10.  RE: Sql Server Insert Error

    Posted Sun December 01, 2002 06:08 PM

    Appreciate if you can tell how you solved the problem. Its could be a learning.

    Thanks,
    Sharath


    #Universal-Messaging-Broker
    #webMethods
    #broker
    #Integration-Server-and-ESB