Forum Discussion

thatsthat's avatar
thatsthat
Contributor
2 years ago
Solved

Executing JDBC on its own runs the query but as part of a test case the same JDBC step fails to run.

Quite puzzled by this. When I kick off this Test case .. the JDBC step ('JDBC Status Check') fails and I see the below in the error logs. But if I now go directly to the step and run it on it...
  • mrdwprice's avatar
    2 years ago

    When it executes (and fails), grab the JDBC Status Check SQL from the Raw tab.
    Try to run that separately, check for syntax errors.

    Perhaps you are using property expansion in the sql that is not being set as expected which is breaking the SQL statement - Incorrect syntax near the keyword 'and'