<?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: Why does silverlight crash when a geoprocessingservice returns an empy feature la in ArcGIS Viewer for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/why-does-silverlight-crash-when-a/m-p/497618#M1343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume you are using the GP tools in app builder. Not sure how grasefully the add-in will die when the inputs are not as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe play around with output from the python script. Try returning something like a null value (None in python) if the return is empty.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 06:06:53 GMT</pubDate>
    <dc:creator>PietaSwanepoel2</dc:creator>
    <dc:date>2013-08-06T06:06:53Z</dc:date>
    <item>
      <title>Why does silverlight crash when a geoprocessingservice returns an empy feature layer?</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/why-does-silverlight-crash-when-a/m-p/497617#M1342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use Python to build geprocessing tools a query on feautures. As a result I sent back a feature layer (derived output) with &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SetParameter(2,output_layer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works perfect in most cases. But the problem is when you did not found where you're looking for. Then the resulting feaute layer is empty. For AGS, this is no problem: The result I get in that case is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;Geoprocessing Parameter: Gevonden_Graafbericht&lt;BR /&gt;Data Type: GPFeatureRecordSetLayer&lt;BR /&gt;&lt;BR /&gt;Geometry Type: esriGeometryPolygon&lt;BR /&gt;&lt;BR /&gt;Spatial Reference: 28992&lt;BR /&gt;&lt;BR /&gt; # records: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that when the silverlight viewer get's back this result, the silverlight plugin crashes!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anybody how knows the reason, or better, how to fix this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGIS Viewer for Silverlight version 3.1 and AGS 10 SP5&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bert Havekes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(from the Netherlands)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 10:12:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/why-does-silverlight-crash-when-a/m-p/497617#M1342</guid>
      <dc:creator>BertHavekes</dc:creator>
      <dc:date>2013-08-05T10:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why does silverlight crash when a geoprocessingservice returns an empy feature la</title>
      <link>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/why-does-silverlight-crash-when-a/m-p/497618#M1343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume you are using the GP tools in app builder. Not sure how grasefully the add-in will die when the inputs are not as expected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe play around with output from the python script. Try returning something like a null value (None in python) if the return is empty.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 06:06:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-viewer-for-silverlight-questions/why-does-silverlight-crash-when-a/m-p/497618#M1343</guid>
      <dc:creator>PietaSwanepoel2</dc:creator>
      <dc:date>2013-08-06T06:06:53Z</dc:date>
    </item>
  </channel>
</rss>

