<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Conceptual Help with GP tool and Map Services in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/conceptual-help-with-gp-tool-and-map-services/m-p/417626#M9781</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martha&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2011 14:04:11 GMT</pubDate>
    <dc:creator>MarthaSelig1</dc:creator>
    <dc:date>2011-10-04T14:04:11Z</dc:date>
    <item>
      <title>Conceptual Help with GP tool and Map Services</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/conceptual-help-with-gp-tool-and-map-services/m-p/417626#M9781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martha&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2011 14:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/conceptual-help-with-gp-tool-and-map-services/m-p/417626#M9781</guid>
      <dc:creator>MarthaSelig1</dc:creator>
      <dc:date>2011-10-04T14:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Conceptual Help with GP tool and Map Services</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/conceptual-help-with-gp-tool-and-map-services/m-p/417627#M9782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: ajoseph&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martha,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;GP service will scale well for the scenario you have described.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A couple of things stood out for me from the screenshot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Though GPFeatureRecordSetLayer has a layer suffix, it doesn't accept layers as input. It accepts featuresets or url to featuresets (which will typically be a query url of a map service). The 10.0 &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisserver/10.0/apis/rest/gpsubmit.html"&gt;REST API help documentation&lt;/A&gt;&lt;SPAN&gt; shows the json format for different parameter datatypes. You can find the appropriate JSON structure and examples for GPFeatureRecordSetLayer datatype in that doc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. In the model screenshot, I noticed the parameter 'Input Layer'. Can you verify its datatype? I am assuming it must either be a featueset, featurelayer or featureclass. You cannot drag and drop a map service layer as input to Input Layer parameter because it does not belong to any of the parameter datatype mentioned above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Also, if possible modify the model to point to the datasets on your machine instead of sending features as input across the GP REST service. You could create a query string parameter in your model and filter features before finding frequency. I am saying this because, if you are using features from a REST map service, the default number of features returned by a map service will be 1000 features. Your input features will be limited by the number of features returned by the map service query and it might defeat your initial purpose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps! Let me know how it works for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 03:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/conceptual-help-with-gp-tool-and-map-services/m-p/417627#M9782</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2011-10-06T03:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conceptual Help with GP tool and Map Services</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/conceptual-help-with-gp-tool-and-map-services/m-p/417628#M9783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Monica,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for your reply. I didn't change the subscription options on my post, so I didn't know your response was here until today. As soon as I can get back to that issue, I will review your suggestions and report back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I truly appreciate your support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martha&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 14:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/conceptual-help-with-gp-tool-and-map-services/m-p/417628#M9783</guid>
      <dc:creator>MarthaSelig1</dc:creator>
      <dc:date>2011-12-05T14:36:26Z</dc:date>
    </item>
  </channel>
</rss>

