<?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 Geoprocessor not returning any results (Solved) in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessor-not-returning-any-results-solved/m-p/495287#M11360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, I have a model which I'm trying to get to work. It selects polylines based on attributes, and adds it to a new Feature Layer on the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the REST interface, and it's running in Synchronous mode. However, when I click "Execute Task" on the bottom of the &lt;/SPAN&gt;&lt;A href="http://server/ArcGIS/rest/services/Map/GPServer/SelectByRoadtype"&gt;http://server/ArcGIS/rest/services/Map/GPServer/SelectByRoadtype&lt;/A&gt;&lt;SPAN&gt; page, it says that there are no records returned. I get the same result when I execute it in my Flex webapp. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works in ArcGIS Desktop though, and I've followed the required steps to make it publishable on ArcGIS Server, and the publishing works, everything seems alright, which makes me wonder why I just don't get any results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extra info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model in Desktop is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input Layer + Expression (P) -&amp;gt; Select Layer By Attribute -&amp;gt; Layer -&amp;gt; Make Feature Layer -&amp;gt; Output Layer (P) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- My Expression parameter's input in Desktop is "ROADTYPE" LIKE 'X', will this work? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I'm using the tool as a tool layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I set the output for the tool layer to %scratchworkspace%\OutputLayer. Am I supposed to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm actually not sure whether it is more common to use QueryTask and FeatureLayer for querying a layer like this. Would that be better?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope you guys can help. Thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 07:05:00 GMT</pubDate>
    <dc:creator>asdfasdf1</dc:creator>
    <dc:date>2010-12-22T07:05:00Z</dc:date>
    <item>
      <title>Geoprocessor not returning any results (Solved)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessor-not-returning-any-results-solved/m-p/495287#M11360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, I have a model which I'm trying to get to work. It selects polylines based on attributes, and adds it to a new Feature Layer on the map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using the REST interface, and it's running in Synchronous mode. However, when I click "Execute Task" on the bottom of the &lt;/SPAN&gt;&lt;A href="http://server/ArcGIS/rest/services/Map/GPServer/SelectByRoadtype"&gt;http://server/ArcGIS/rest/services/Map/GPServer/SelectByRoadtype&lt;/A&gt;&lt;SPAN&gt; page, it says that there are no records returned. I get the same result when I execute it in my Flex webapp. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works in ArcGIS Desktop though, and I've followed the required steps to make it publishable on ArcGIS Server, and the publishing works, everything seems alright, which makes me wonder why I just don't get any results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Extra info:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The model in Desktop is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Input Layer + Expression (P) -&amp;gt; Select Layer By Attribute -&amp;gt; Layer -&amp;gt; Make Feature Layer -&amp;gt; Output Layer (P) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- My Expression parameter's input in Desktop is "ROADTYPE" LIKE 'X', will this work? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I'm using the tool as a tool layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I set the output for the tool layer to %scratchworkspace%\OutputLayer. Am I supposed to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm actually not sure whether it is more common to use QueryTask and FeatureLayer for querying a layer like this. Would that be better?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope you guys can help. Thanks. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 07:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessor-not-returning-any-results-solved/m-p/495287#M11360</guid>
      <dc:creator>asdfasdf1</dc:creator>
      <dc:date>2010-12-22T07:05:00Z</dc:date>
    </item>
    <item>
      <title>Solved</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessor-not-returning-any-results-solved/m-p/495288#M11361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It was a stupid mistake on my part. The setting "Maximum Number of Records Returned by Server" in ArcGIS Server Manager was set to 500, whereas much more than that was returned, and it ended up showing that no records were returned. I actually got records when I increased the maximum number of records returned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe in future versions an exception could be thrown, instead of show that no records were found? &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Dec 2010 04:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessor-not-returning-any-results-solved/m-p/495288#M11361</guid>
      <dc:creator>asdfasdf1</dc:creator>
      <dc:date>2010-12-23T04:46:20Z</dc:date>
    </item>
  </channel>
</rss>

