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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Error in Passing I/P values to Dynamic SQL

    Posted 07/17/06 03:26 AM

    Hi all,
    I am getting the following error while invoking the dynamic sql service:

    I have tried to execute in following ways:
    1- I wrote an sql statement in SQL field line as:
    select * from tablename where date = ‘12/JUL/2006’
    I got the required output.

    2- In real time I will get the where condition to this Adapter serive.
    I wrote an sql statement in following way for this:
    select * from tablename ${str}
    I created one Input field as str (where date = ‘12/JUL/2006’ ) and selected output fields, while executing this serivce its showing the following error:

    com.wm.app.b2b.server.ServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service TEST.adapterService:TESTDYN.
    [ADA.1.316] Cannot execute the SQL statement ““SELECT * FROM tablename WHERE date = ‘12/JUL/2006’””. "
    (17003) Invalid column index"
    Invalid column index

    Could some body please help me.

    thanks
    ravi.


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


  • 2.  RE: Error in Passing I/P values to Dynamic SQL

    Posted 08/17/06 09:26 PM

    Let your query be
    SELECT * from TableName where date = ${str}
    and pass only date as input to str.


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


  • 3.  RE: Error in Passing I/P values to Dynamic SQL

    Posted 10/03/06 03:43 PM

    anumolurk,

              Did you have this issue resolved ??  If so please let me know.
    

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


  • 4.  RE: Error in Passing I/P values to Dynamic SQL

    Posted 10/03/06 06:39 PM

    My problem was with my SQL query and it works now.

    select * from tablename where date = ‘${str}’


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


  • 5.  RE: Error in Passing I/P values to Dynamic SQL

    Posted 04/29/08 02:47 PM

    Hi All,

    Below is the query which i need to implement in webMethods,since this is related to outer join im unable implement in normal select adapter service so i m choosing Dynamic sql.

    select a.X_SALES_REGION,b.name ALIAS_NAME, c.name Primary_Industry_Name
    from tbsie.mv_s_org_ext a, tbsie.mv_s_org_syn b, tbsie.mv_S_INDUST c
    where b.OU_ID(+) = a.row_id
    and a.X_PR_INDUST_ID = c.row_id(+)

    Apart from these , I should be able to pass a DATE field as input so that the select query should fetch only those records which are greater than the given date.

    Please advice on this.


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