Select to view content in your preferred language

QueryTask,AsyncResponder - error converting from 1.3 to 2.0

2371
2
08-30-2010 01:05 PM
CarmenDurham
Frequent Contributor
Hello,

I am trying to convert a NON-SFV Flex app from 1.3 to 2.0 using FlashB4 and SDK4.

I finally got everything to compile and the application will start, but the "queryTask" line of code goes straight to onFault (worked fine before conversion).  There is a valid value in txtAddress.text at time query is submitted:

query.where = "[ADDRESS] ='" + txtAddress.text + "'";
queryTask.execute(query, new AsyncResponder(onResult, onFault));

Fault Alert error:
[RPC Fault faultString="Error #2032" faultCode="null" faultDetail="null"]

Any ideas?  I am importing com.esri.ags.FeatureSet.

Thanks,
Carmen
Tags (2)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus
Carmen,

   If you are querying a 9.3 server and not a 10 server than ensure you set useAMF = false; on the queryTask.
0 Kudos
CarmenDurham
Frequent Contributor
Thanks Robert.  I had indeed forgotten to go back and read the "Still connecting to a 9.3 ArcGIS Server" item in the "Migrating from 1.3 to 2.0" document at:

http://help.arcgis.com/en/webapi/flex/help/index.html#migrating.htm#

Works now!

Carmen
0 Kudos