<?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 Python toolbox tool with GPFeatureLayer input as geprocessing service in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-toolbox-tool-with-gpfeaturelayer-input-as/m-p/30779#M2456</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a Python toolbox and want to host one of the tools as a geoprocessing service (ArcGIS 10.5.1). The required input is a&amp;nbsp;GPFeatureLayer. The output is a CSV file to&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;arcpy.env.scratchFolder&lt;/SPAN&gt;, which ends up being the output directory of the service when published.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end user needs to run the script in ArcMap and choose an input layer that has a selection of features. This works fine as a local Python toolbox. However, when published as a service (using the "User defined value" as the parameter's input mode), the default value is a&amp;nbsp;ScratchRecordSet layer that gets added to the map with a name like &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ToolName::parameter_name&lt;/SPAN&gt;.&amp;nbsp;Is there a way to prevent this&amp;nbsp;&lt;SPAN&gt;ScratchRecordSet layer from appearing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/space/2100"&gt;ArcGIS Enterprise&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2019 23:29:56 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2019-07-17T23:29:56Z</dc:date>
    <item>
      <title>Python toolbox tool with GPFeatureLayer input as geprocessing service</title>
      <link>https://community.esri.com/t5/python-questions/python-toolbox-tool-with-gpfeaturelayer-input-as/m-p/30779#M2456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm creating a Python toolbox and want to host one of the tools as a geoprocessing service (ArcGIS 10.5.1). The required input is a&amp;nbsp;GPFeatureLayer. The output is a CSV file to&amp;nbsp;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;arcpy.env.scratchFolder&lt;/SPAN&gt;, which ends up being the output directory of the service when published.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end user needs to run the script in ArcMap and choose an input layer that has a selection of features. This works fine as a local Python toolbox. However, when published as a service (using the "User defined value" as the parameter's input mode), the default value is a&amp;nbsp;ScratchRecordSet layer that gets added to the map with a name like &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ToolName::parameter_name&lt;/SPAN&gt;.&amp;nbsp;Is there a way to prevent this&amp;nbsp;&lt;SPAN&gt;ScratchRecordSet layer from appearing?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.esri.com/space/2100"&gt;ArcGIS Enterprise&lt;/A&gt;‌&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 23:29:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-toolbox-tool-with-gpfeaturelayer-input-as/m-p/30779#M2456</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2019-07-17T23:29:56Z</dc:date>
    </item>
  </channel>
</rss>

