Forum Discussion

SiKing's avatar
SiKing
Community Expert
14 years ago

JDBC unused variable

Running SoapUI 4.0.1 on Linux.
If I create a JDBC step, define a variable, but never use this variable in the SQL Query, then I get:
Error getting response; java.lang.IllegalArgumentException: Parameter not found: lastOrderNumber


The workaround is to insert the variable name in as a SQL comment; something like:
--:lastOrderNumber