IBM Support

webMethods Knowlegebase : Invalid column index error with dyamic SQL query (1763257)

Troubleshooting


Problem

Trying to use a dynamic SQL statement within JDBC Adapter Service with the following query: “select count(*) from ${table}”, and having defined an input field named “table_name” and an output field named SQLresults for the query results, user always get an error at Adapter Service execution like:

+---

com.wm.pkg.art.error.DetailedServiceException: [ART.117.4002] Adapter Runtime (Adapter Service): Unable to invoke adapter service xxx.xxx:new_adapterService.

[ADA.1.316] Cannot execute the SQL statement "select count(*) as SQLresults from table_name". "

(99999/17003) Invalid column index"

Invalid column index

---+

Document Location

Worldwide

[{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSVYEV","label":"IBM webMethods Integration"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Adapter for JDBC (JDB)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows Server 2008"}],"Version":"6.5"},{"Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSFIWYE","label":"IBM webMethods B2B"},"ARM Category":[{"code":"a8mKe00000000AQIAY","label":"webMethods Adapter for JDBC (JDB)"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Windows Server 2008"}],"Version":"6.5"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
20 March 2025

UID

ibm17205223