<?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 How to create an ArcGIS Server GP Task that performs a Trace against a Trace Network? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-an-arcgis-server-gp-task-that/m-p/1669396#M27665</link>
    <description>&lt;P&gt;In ArcGIS Pro, I can successfully run the Trace Network Trace tool against my TN data set.&amp;nbsp; &amp;nbsp;I would like to publish this out as a server geoprocessing task to make it available to an ArcGIS Javascript 4x API web application, but I'm having a heck of a time trying to figure out how to configure the input parameters.&lt;/P&gt;&lt;P&gt;The behaviour I'd like to provide is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;User selects a start point on the map&lt;BR /&gt;(Question: does this need to be a point that intersects a geometry of Trace Network feature, or will the Trace task simply find the closest feature to start from?&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;User selects the type of trace (downstream, upstream, connected)&lt;/LI&gt;&lt;LI&gt;The start point is passed to the GP task as an input parameter.&amp;nbsp; Is a&amp;nbsp;GPFeatureRecordSetLayer the correct parameter type for this?&amp;nbsp; What parameter type is this equivalent to in ArcGIS Pro?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I won't be providing the option for barriers.&lt;/LI&gt;&lt;LI&gt;I would like to view the results of the Trace as a map service.&amp;nbsp; Ideally the GP Task would create a temporary map service equivalent to the group layer created in ArcGIS Pro when running the Trace tool.&amp;nbsp; The results are broken down nicely into their source layers.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Lastly, the GP Task must be available to ArcGIS Enterprise Viewers.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I've run Trace task in ArcGIS Pro and published it out as a service, but have not figured out how to pass it a starting point as an input parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is much appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Dec 2025 18:12:27 GMT</pubDate>
    <dc:creator>JonSwoveland</dc:creator>
    <dc:date>2025-12-01T18:12:27Z</dc:date>
    <item>
      <title>How to create an ArcGIS Server GP Task that performs a Trace against a Trace Network?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-create-an-arcgis-server-gp-task-that/m-p/1669396#M27665</link>
      <description>&lt;P&gt;In ArcGIS Pro, I can successfully run the Trace Network Trace tool against my TN data set.&amp;nbsp; &amp;nbsp;I would like to publish this out as a server geoprocessing task to make it available to an ArcGIS Javascript 4x API web application, but I'm having a heck of a time trying to figure out how to configure the input parameters.&lt;/P&gt;&lt;P&gt;The behaviour I'd like to provide is:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;User selects a start point on the map&lt;BR /&gt;(Question: does this need to be a point that intersects a geometry of Trace Network feature, or will the Trace task simply find the closest feature to start from?&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;User selects the type of trace (downstream, upstream, connected)&lt;/LI&gt;&lt;LI&gt;The start point is passed to the GP task as an input parameter.&amp;nbsp; Is a&amp;nbsp;GPFeatureRecordSetLayer the correct parameter type for this?&amp;nbsp; What parameter type is this equivalent to in ArcGIS Pro?&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I won't be providing the option for barriers.&lt;/LI&gt;&lt;LI&gt;I would like to view the results of the Trace as a map service.&amp;nbsp; Ideally the GP Task would create a temporary map service equivalent to the group layer created in ArcGIS Pro when running the Trace tool.&amp;nbsp; The results are broken down nicely into their source layers.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Lastly, the GP Task must be available to ArcGIS Enterprise Viewers.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I've run Trace task in ArcGIS Pro and published it out as a service, but have not figured out how to pass it a starting point as an input parameter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is much appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 18:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-create-an-arcgis-server-gp-task-that/m-p/1669396#M27665</guid>
      <dc:creator>JonSwoveland</dc:creator>
      <dc:date>2025-12-01T18:12:27Z</dc:date>
    </item>
  </channel>
</rss>

