Select to view content in your preferred language

Geoprocessing service won't run with Geoprocessing Widget

1209
2
11-08-2011 02:40 PM
MelissaTalley
Emerging Contributor
I have a model which is published as part of a geoprocessing service. The model has 2 input parameters and 1 output parameters. One of the input parameters is to use select by location to select a row (in this case a county) to perform a function on. This works fine when I use the service within ArcMap but when I set up the widget to use the service in FlexViewer I get an error which says "error submitting job" when I go use the tool. I have the paramter set up to be featureset and I've matched all the properties in the service to the xml of the config file for the widget.

Is there something special I need to do when using select by location in a geoprocessing tool for the widget?
Tags (2)
0 Kudos
2 Replies
MelissaTalley
Emerging Contributor
I figured this out, the parameter needed to be changed from optional to required in the parameter settings for the model. Now the job is able to submit and complete.
0 Kudos
ArokiyaJoseph
Deactivated User
Melissa,

Something special about Select Layer by Location tool is that it will take only layers as input parameters. Featuresets are equivalent to Feature Class. So, I usually prepend the Select layer by Location tool with 'Make Feature Layer' tool for it to work successfully.

Something to think about...
0 Kudos