I tried this another way.....
var featureSet:FeatureSet = new FeatureSet();
featureSet.features = new Array();
featureSet.features.push(graphic);
featureSet.spatialReference = map.extent.spatialReference;
This didn't work either. My gp tool only has one input parameter as show here:
[INDENT]Parameter: Feature_Class
Data Type: GPFeatureRecordSetLayer
Display Name: Feature Class
Direction: esriGPParameterDirectionInput
Default Value:
Geometry Type: esriGeometryPolygon
Spatial Reference: 4326
Fields:
FID (Type: esriFieldTypeOID, Alias: FID)
Shape (Type: esriFieldTypeGeometry, Alias: Shape)
OBJECTID (Type: esriFieldTypeInteger, Alias: OBJECTID)
Shape_Leng (Type: esriFieldTypeDouble, Alias: Shape_Leng)
NAME (Type: esriFieldTypeString, Alias: NAME)
MAX_RANGE (Type: esriFieldTypeString, Alias: MAX_RANGE)
MIN_RANGE (Type: esriFieldTypeString, Alias: MIN_RANGE)
WIDTH (Type: esriFieldTypeString, Alias: WIDTH)
AZIMUTH (Type: esriFieldTypeString, Alias: AZIMUTH)
LAT (Type: esriFieldTypeString, Alias: LAT)
LON (Type: esriFieldTypeString, Alias: LON)
CLASS (Type: esriFieldTypeString, Alias: CLASS)
COMMENTS (Type: esriFieldTypeString, Alias: COMMENTS)
BUFF_GEOM (Type: esriFieldTypeString, Alias: BUFF_GEOM)
BUFF_LYR (Type: esriFieldTypeString, Alias: BUFF_LYR)
BUFF_TYPE (Type: esriFieldTypeString, Alias: BUFF_TYPE)
CLIP_GEOM (Type: esriFieldTypeString, Alias: CLIP_GEOM)
CLIP_LYR (Type: esriFieldTypeString, Alias: CLIP_LYR)
CLIP_TYPE (Type: esriFieldTypeString, Alias: CLIP_TYPE)
MERGED (Type: esriFieldTypeInteger, Alias: MERGED)
SHOW_MIN (Type: esriFieldTypeInteger, Alias: SHOW_MIN)
THRT_TYPE (Type: esriFieldTypeString, Alias: THRT_TYPE)
THRT_ID (Type: esriFieldTypeInteger, Alias: THRT_ID)
TRIGRAPH (Type: esriFieldTypeString, Alias: TRIGRAPH)
COUNTRY (Type: esriFieldTypeString, Alias: COUNTRY)
SYSTEM_ID (Type: esriFieldTypeString, Alias: SYSTEM_ID)
SYSTEM (Type: esriFieldTypeString, Alias: SYSTEM)
FEAT_NAME (Type: esriFieldTypeString, Alias: FEAT_NAME)
Shape_Length (Type: esriFieldTypeDouble, Alias: Shape_Length)
Shape_Area (Type: esriFieldTypeDouble, Alias: Shape_Area)
Parameter Type: esriGPParameterTypeRequired[/INDENT]
When I don't send the attributes with the graphic, then it works. Otherwise it does not. What am I doing wrong?