I am trying to build a dynamic sql and I get the error message below The same query when I code as a custom SQL it works as expected.
My Dynamic SQL is as follows
SELECT T1.ColA, T1.ColB
FROM ${ENV}.Table1 T1
WHERE T1.ColA = ‘${INPUT}’
I want pass in ENV and INPUT dynamically
My error message is as follows:
com.wm.app.b2b.server.ServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service
(17003) Invalid column index"
Invalid column index
When i create a Custom SQL similar to this it returns results as expected.
My custom SQL:
SELECT T1.COLA,
T1.COLB
FROM CRPDTA.TABLE1 T1
WHERE T1.COLA = ?
I would like to pas in ENV = CRPDTA dynamically.
Please let me know.
Thanks
Sai
#Integration-Server-and-ESB#Adapters-and-E-Standards#webMethods