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
  • 1.  JDBC ERROR :Missing IN or OUT parameter at index:: 1

    Posted Tue April 05, 2011 09:44 PM

    Hi,

    I am getting the below error when I try to insert the multiple records into the table using batch insert Adapter service( local transaction).

    [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service Test.AdapterServices:batchInsertdata.

    [ADA.1.316] Cannot execute the SQL statement “INSERT INTO WISE_TN_STATISTICS(PLANT_NUMBER, TRANSACTION_STATUS, PROCESS_DIRECTION, DOCUMENT_TYPE, SENDER_ID, RECEIVER_ID, APPLICATION, BUSINESS_UNIT, DIVISION, DOCUMENT_DIRECTION, ISA_RECEIVER_QUALIFIER, ISA_RECEIVER_ID, ISA_SENDER_QUALIFIER, ISA_SENDER_ID, ISA_DATE, ISA_TIME, PROCESS_DATE, TRADING_PARTNER) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, TO_TIMESTAMP(?,‘YYYYMMDDHH24MISS’), ?, TO_TIMESTAMP(?,‘YYYYMMDDHH24MISS’), ?)”. "
    (17041) Missing IN or OUT parameter at index:: 1"
    Missing IN or OUT parameter at index:: 1

    Table whas one auto generated unique field say sequence number.
    DB: Oracle

    If I try and insert single record using a insert adapter service its working jus fine.

    Any Ideas are greatly appreciated.

    Thanks!
    Vkram


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


  • 2.  RE: JDBC ERROR :Missing IN or OUT parameter at index:: 1

    Posted Tue April 05, 2011 11:14 PM

    Have you confirmed that a value is provided (an empty string will do) for all inputs?


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


  • 3.  RE: JDBC ERROR :Missing IN or OUT parameter at index:: 1

    Posted Tue April 05, 2011 11:32 PM

    Hey reamon-Thanks for the reply.

    And yeah as non of the fields are not null fields (except for sequnce but it auto generated), They shud be able to take empty values.

    As they are able to take empty values when I do a normal insert ( 1 record) using JDBC insert adapter service.

    like say if fields a,b,c are getting populated when 1 record is inserted using JDBC insert adapter, I am populating the same fields in batch insert but its throwing the error I mentioned above.

    Does the table fields act differently when they are batch inserted?

    Thanks!


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


  • 4.  RE: JDBC ERROR :Missing IN or OUT parameter at index:: 1

    Posted Wed April 06, 2011 12:34 AM

    Can you post the details of the service and the test/sample data you’re trying to use?


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


  • 5.  RE: JDBC ERROR :Missing IN or OUT parameter at index:: 1

    Posted Wed April 06, 2011 09:13 PM

    Try This , use sequenceName.NextVal in expresssion .

    Thanks,

    Raj


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


  • 6.  RE: JDBC ERROR :Missing IN or OUT parameter at index:: 1

    Posted Thu April 07, 2011 09:23 PM

    rajwM & reamon - Thanks guys.

    rajwM - I have tried sequenceName.NextVal but didnt help and had the same issue.

    But When I removed that and looped over records and did basic insert.

    Then when I went back to batchInsert STRANGELY it worked.(not complaining but …)

    So back to where I was, create list of records and do batch Insert and its working.

    :slight_smile:

    Thanks!
    -Vkram


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