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

Problem with multiple inserts using insertsql template

  • 1.  Problem with multiple inserts using insertsql template

    Posted Fri June 27, 2003 02:10 PM

    Hai,
    Anyidea on how to insert multiple records into a database table from a flat file.
    Actually Iam generating a documentlist within a triggered document reading from a flat file.

    When i try to insert the documentlist using InsertSQL template of jdbc adapter,only one record is getting inserted and remaining records are not getting inserted.

    Thanks in advance
    Prasad.V


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 2.  RE: Problem with multiple inserts using insertsql template

    Posted Tue April 26, 2011 02:29 PM

    Hi Prasad V,

    I know this is an old post - I have the similar problem - but instead of inserting records from a flat file - I am inserting from a SAP table into a local wM database - only the first record is being updated.

    Can you please help…

    Thank you very much.
    Vikash.


    #edi
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Problem with multiple inserts using insertsql template

    Posted Tue April 26, 2011 03:10 PM

    Vikash,

    You can use either batchInsert jdbc template or insertSQL and make sure your source document loop logic is correct…Do you see any errors in the logs? What is transaction Local or No transaction being used?

    HTH,
    RMG


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Problem with multiple inserts using insertsql template

    Posted Tue April 26, 2011 03:57 PM

    Dear Rmg,

    Thanks for the reply, I am getting the data through from SAP so my connection is all setup correctly. I’ve just been experiencing problems with the looping - because my input array of my loop was incorrect - changed it and I’m now getting all the records of the SAP PO_HEADER into my local database. :slight_smile:

    I can’t believe how quick it took to download over 8000 records from our SAP DB to wM DB.

    Thanks for your help…

    Vikash


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 5.  RE: Problem with multiple inserts using insertsql template

    Posted Tue April 26, 2011 04:51 PM

    Glad to hear you got it resolved:


    #Integration-Server-and-ESB
    #edi
    #webMethods