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 <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>Parameter<SPAN class="punctuation token">(</SPAN>
displayName<SPAN class="operator token">=</SPAN><SPAN class="string token">"Aftagerpunkter"</SPAN><SPAN class="punctuation token">,</SPAN>
name<SPAN class="operator token">=</SPAN><SPAN class="string token">"consumption_points"</SPAN><SPAN class="punctuation token">,</SPAN>
datatype<SPAN class="operator token">=</SPAN><SPAN class="string token">"DEFeatureClass"</SPAN><SPAN class="punctuation token">,</SPAN>
parameterType<SPAN class="operator token">=</SPAN><SPAN class="string token">"Optional"</SPAN><SPAN class="punctuation token">,</SPAN>
direction<SPAN class="operator token">=</SPAN><SPAN class="string token">"Output"</SPAN><SPAN class="punctuation token">)</SPAN>
consumption_points<SPAN class="punctuation token">.</SPAN>symbology <SPAN class="operator token">=</SPAN> os<SPAN class="punctuation token">.</SPAN>path<SPAN class="punctuation token">.</SPAN>join<SPAN class="punctuation token">(</SPAN>
os<SPAN class="punctuation token">.</SPAN>path<SPAN class="punctuation token">.</SPAN>dirname<SPAN class="punctuation token">(</SPAN>__file__<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN>
<SPAN class="string token">'consumption_points.lyr'</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
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