Select to view content in your preferred language

geoprocessing task with optional parameter

1897
2
11-22-2010 01:13 PM
GaryBushek
Deactivated User
I have a geoprocessing task that has an optional parameter of type FeatureSet. Only problem is if I leave that featureset parameter out or set it to null, the task fails with an error "Error Submitting Job". If I Instantiate the featureset parameter but leave the geometry inside it to null I get "Invalid value for parameter '<i>Geom</i>'.  This parameter is set as optional and I verified that at the rest endpoint for the geoprocessing service. Any ideas on how to pass (or not pass) an optional featureset parameter?

thanks
Tags (2)
0 Kudos
2 Replies
DasaPaddock
Esri Regular Contributor
Try setting the value to an empty String. e.g. ""
0 Kudos
SamitChakraborty
Emerging Contributor
Setting it to an empty string did not work. Any other solution found as on date?

I tried this but it didn't work.

parameters.Add(new GPFeatureRecordSetLayer("Input_Point", ""));
0 Kudos