SetVariable
SetVariable
<sql label="Connect to DB" resourceId="LOCAL" version="1.0">
<query label="Select Data" outputVariable="records">
<statement>Select count(*) From filelib.testfile </statement> </query>
</sql>
I then add a SetVariable task and my system places the following in the XML:
<setVariable name="foundcount" value="${records[1]}" version="2.0"
When I run the project I get the following error:
[8099 - setVariable] An unexpected error occurred. Cursor position not valid.
If I change the SetVariable statement to version 1.0 as shown below, it works correctly
<setVariable name="foundcount" value="${records[1]}" version="1.0" />
I have been unable to find anything that tells me what the correct syntax is for Version 2.0
-

a_houston - Verified User
- Posts: 4
- Joined: Fri Jun 05, 2009 10:38 am
- Location: USA
Re: SetVariable
In your case, you need to change <setVariable name="foundcount" value="${records[1]}" version="2.0" to <setVariable name="foundcount" value="${records[1]}" version="1.0"
- Support_Duane
- Support Specialist
- Posts: 66
- Joined: Thu Mar 05, 2009 2:49 pm
Who is online
Users browsing this forum: No registered users and 0 guests