Select to view content in your preferred language

geoprocessing error trying to return table

2167
0
06-13-2011 12:57 PM
GaryBushek
Deactivated User
Hello. Im trying to resolve an error I get on return of a geoprocessing call within Flex. I have a python script within my toolbox and do a call to MakeTableView_management(...) followed by a call to SelectFeatureByAttribute_management(...). Previously I had the output parameter property for the returned features set to the datatype of FeatureLayer. This worked ok in 9.3 but when I altered and redeployed the script in 10.0 I now get an error (see below). I tried to change the datatype for the output property to "Table" as well as several other types but i've had no luck.

rejects = "D:\\gisdata\\SLA5\\sla_LicenseData.gdb\\rejects"
rejects_View = "rejects_View"

SQL_Expression = "\"ZIP\" LIKE '10010%'" ;

rs_Rejects = arcpy.MakeTableView_management(rejects, rejects_View);
rs_Rejects = arcpy.SelectLayerByAttribute_management(rejects_View, "NEW_SELECTION", SQL_Expression); 

arcpy.SetParameterAsText(6, rs_Rejects.getOutput(0));
Tags (2)
0 Kudos
0 Replies