<?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 Re: Geoprocessing feature layer input in ArcGIS API for Flex Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556163#M12505</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey guys! i'm coming around with the same problem but the message pop-up like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FaultEvent fault=[RPC Fault faultString="Error Executing Task. A request to obtain a free ServerContext has failed because the Wait Timeout Interval has elapsed." faultCode="500" faultDetail=""] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i guess there would be somethin wrong whit the GP's parameters but what is exactly right for the parameters while building a GP ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help will be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 08:07:22 GMT</pubDate>
    <dc:creator>jhonchin</dc:creator>
    <dc:date>2011-09-14T08:07:22Z</dc:date>
    <item>
      <title>Geoprocessing feature layer input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556159#M12501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am writing a custom widget for Flex Viewer to perform a geoprocessing task.&amp;nbsp; I've been wrestling with using a selected feature from a FeatureLayer as input to a geoprocessing task that is looking for a FeatureSet input for several days.&amp;nbsp; Relevant code snippet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;var inputPolyFS:FeatureSet = new FeatureSet();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputPolyFS.features = [{ geometry: draftConsLayer.selectedFeatures[0] }];&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params:Object = { "Clip_Features": inputPolyFS };&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gpWetlands.execute(params);&lt;/SPAN&gt;&lt;SPAN&gt;[/INDENT]draftConsLayer is a FeatureLayer, and can have at most one feature selected.&amp;nbsp; According to the .../rest/services/... URL, the Clip_Features input is supposed to be of type GPFeatureRecordSetLayer.&amp;nbsp; When I perform the .execute I receive an error message indicating:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"Unexpected fault:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[FaultEvent fault=[RPC Fault faultString="Unable to complete&amp;nbsp; operation." faultCode="400" faultDetail="Invalid value for parameter 'Clip_Features'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The specified geometry is not in the correct format."] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have any suggestions about the mismatch?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 23:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556159#M12501</guid>
      <dc:creator>DavidTreat</dc:creator>
      <dc:date>2010-11-16T23:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing feature layer input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556160#M12502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems like you are setting your geometry to a graphic (thus "not in the correct format"). Have you looked at the DataExtractWidget?&amp;nbsp; It also connects with a GP service, not thru a selected features, but it might be close enough to help you.&amp;nbsp; Note how the "geometry:" is a geometry and not a Graphic. For example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var features:Array = [];
for each (var graphic:Graphic in graphics)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; features.push({ geometry: graphic.geometry });
}
clipFS.features = features;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps &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>Sun, 12 Dec 2021 00:01:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556160#M12502</guid>
      <dc:creator>BjornSvensson</dc:creator>
      <dc:date>2021-12-12T00:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing feature layer input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556161#M12503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try changing this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inputPolyFS.features = [{ geometry: draftConsLayer.selectedFeatures[0] }];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inputPolyFS.features = draftConsLayer.selectedFeatures;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 15:36:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556161#M12503</guid>
      <dc:creator>DasaPaddock</dc:creator>
      <dc:date>2010-11-17T15:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing feature layer input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556162#M12504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I use either Bjorn or Dasa's suggestions I get this error instead:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unexpected fault:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[FaultEvent fault=[RPC Fault faultString="Error Executing Task. Error executing tool.: ERROR 000820: The parameters need repair." faultCode="500" faultDetail=""] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the server log I find this error message, but cannot find any reference to it in the documentation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Msg time='2010-11-17T20:22:44' type='ERROR' code='20010' target='gpWetlands.GPServerSync' methodName='GPServerSync.CheckMessages' machine='ARCGISSERVER' process='5780' thread='6352'&amp;gt;Error executing tool.: ERROR 000820: The parameters need repair.&amp;lt;/Msg&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So it looks like my input parameter type is OK now but my geoprocessing model encounters some kind of error.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 23:25:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556162#M12504</guid>
      <dc:creator>DavidTreat</dc:creator>
      <dc:date>2010-11-17T23:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing feature layer input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556163#M12505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey guys! i'm coming around with the same problem but the message pop-up like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[FaultEvent fault=[RPC Fault faultString="Error Executing Task. A request to obtain a free ServerContext has failed because the Wait Timeout Interval has elapsed." faultCode="500" faultDetail=""] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i guess there would be somethin wrong whit the GP's parameters but what is exactly right for the parameters while building a GP ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any help will be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;tks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 08:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556163#M12505</guid>
      <dc:creator>jhonchin</dc:creator>
      <dc:date>2011-09-14T08:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing feature layer input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556164#M12506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jhon,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; No your error "A request to obtain a free ServerContext has failed because the Wait Timeout Interval has elapsed" means that your server does not have any available resources to fulfill the request. Sounds like you have some server configuration issues on your end. For server configuration issues you need to contact esri Tech Support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 12:53:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-flex-questions/geoprocessing-feature-layer-input/m-p/556164#M12506</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2011-09-14T12:53:32Z</dc:date>
    </item>
  </channel>
</rss>

