Hi,
I'm trying to see what would be different in the Workflow Custom Query activity when declaring Variables to use in a Query against a DB2 database. If I test my query using no Variables and type each value, I get the expected result but when I try and make use of a Variable, then I get the below error:
Normal Query including static values:
SELECT * FROM LIVDTA.AAAXCPP WHERE AXTGT3 ='Document' AND AXLFCE = '123456'
Query using a Replacement value for one of the fields:
SELECT * FROM LIVDTA.AAAXCPP WHERE AXTGT3 ='Document' AND AXLFCE = @M
Screenshot of Query config in WF:
\
Note that I tried with putting '' around the values under "Parameter Values" and without
Screenshot of the error:
If I put '' around the Variable in the query ie '@M' then the query runs but does not return a result which it is supposed to.
Any suggestions?