AnsweredAssumed Answered

Geoprocessing Service how to add result to result map server when publishing via rest endpoint

Question asked by rvangilst on Sep 25, 2018

Hi,

 

I publish a Python Toolbox via the admin Rest End-point on our ArcGIS Server.

 

When publishing a geoprocessing service there is an option to use a result map server to display the results. I have not been successful in doing this.

 

I use an in_memory feature class to output my data, and define my output as the following parameter:

consumption_points = arcpy.Parameter(
   displayName="Aftagerpunkter",
   name="consumption_points",
   datatype="DEFeatureClass",
   parameterType="Optional",
   direction="Output")
consumption_points.symbology = os.path.join(
   os.path.dirname(__file__),
   'consumption_points.lyr')

 

When not using the option to use a result map server, I can publish the toolbox and use the tasks in ArcGIS Pro and ArcMap. But when publishing with the option to us a result map server, i get no results back from the service.

 

What do I have to do to get the service published with a result map server that works? Without publishing from ArcGIS Pro/ArcMap but with using the rest endpoint on ArcGIS Server.

 

Robert

Outcomes