I'm missing something here and could use a little help, please. I have a large Flex application that consumes about a dozen services. For our query tool, we've been using a querytask to get values for a field, then presenting a list of unique values extracted from the returned data, so the user can create an attribute query. I don't like it, but it works *unless* the full range of values isn't contained in the first 1,000 records returned.
I'd like this to be done with a GP tool, so I published a tool that takes an input layer and a field name and runs the Frequency tool. I simply cannot get this tool to run with layers from a map service and I don't understand the problem and, therefore, how to fix it.
When I try to run it at the REST end point, I get the very helpful Invalid value for parameter X. This is true even for the field name. I've attached images of the model and the REST attempt.
When I pull a map service into ArcMap and try to drag a layer into the model, I can't drop it. I don't get what I don't get. Could someone please explain this to me and tell me how I can run the tool independent of a particular map service?
Thanks,
Martha