<?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 Pass a null result back to a dynamic map Service from a geoprocessing task in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/pass-a-null-result-back-to-a-dynamic-map-service/m-p/350484#M13477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howzit All, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a Geoprocessing Service that creates a Heat Map using the Kernel Density Tool. The service works well, and quickly when a feature selection is given to it. However, the tool fails when the feature layer selection returns no records and a null Raster Layer is passed back to the AGS Dynamic Map Service Layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geoprocssing Overview: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a Feature Layer from a sql expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- generate Kernel Density Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- set Layer into resulting Dynamic Map Service Layer as a Raster Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The task fails when a null Raster Layer does not exist and is passed back to the out Layer using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SetParameterAsText(6,outRaster)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The task succeeds when the heatMap is created from &amp;gt; 1 features in the selection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting arcpy.SetSeverityLevel(0) ensures the task completes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem occurs at the map services level because the task completes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I pass a null Layer back to a Raster Layer in a AGS Dynmaic Map Service Layer from a Geoprocessing Result?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Susan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;North South GIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Auckland, New Zealand&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2012 03:53:23 GMT</pubDate>
    <dc:creator>SusanJones</dc:creator>
    <dc:date>2012-10-03T03:53:23Z</dc:date>
    <item>
      <title>Pass a null result back to a dynamic map Service from a geoprocessing task</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/pass-a-null-result-back-to-a-dynamic-map-service/m-p/350484#M13477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Howzit All, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a Geoprocessing Service that creates a Heat Map using the Kernel Density Tool. The service works well, and quickly when a feature selection is given to it. However, the tool fails when the feature layer selection returns no records and a null Raster Layer is passed back to the AGS Dynamic Map Service Layer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geoprocssing Overview: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- create a Feature Layer from a sql expression&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- generate Kernel Density Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- set Layer into resulting Dynamic Map Service Layer as a Raster Layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The task fails when a null Raster Layer does not exist and is passed back to the out Layer using.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.SetParameterAsText(6,outRaster)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The task succeeds when the heatMap is created from &amp;gt; 1 features in the selection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting arcpy.SetSeverityLevel(0) ensures the task completes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think the problem occurs at the map services level because the task completes. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I pass a null Layer back to a Raster Layer in a AGS Dynmaic Map Service Layer from a Geoprocessing Result?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Susan&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;North South GIS&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Auckland, New Zealand&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2012 03:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/pass-a-null-result-back-to-a-dynamic-map-service/m-p/350484#M13477</guid>
      <dc:creator>SusanJones</dc:creator>
      <dc:date>2012-10-03T03:53:23Z</dc:date>
    </item>
  </channel>
</rss>

