<?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 Geoprocessing service output parameter hasZ disabled? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1292463#M36044</link>
    <description>&lt;P&gt;We have a geoprocessing service that takes a point feature layer, runs some calculation steps, and output a line feature layer. The input and output feature layers both need to have z values. The service was published from a python script tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we run the GP service as a web tool in Pro, it all works fine, generates a line feature that has z values.&lt;/P&gt;&lt;P&gt;However, when we run the GP service on REST endpoint (or by JS API) using the same input, the output feature layer does NOT have Z. The REST page of the GPservice also shows that output parameter hasZ=False.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvelynHsu_0-1684915457492.png" style="width: 267px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71535i058DF592A4BBEE3B/image-dimensions/267x193?v=v2" width="267" height="193" role="button" title="EvelynHsu_0-1684915457492.png" alt="EvelynHsu_0-1684915457492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried to explicitly set arcpy.env.outputZFlag = 'enabled' in the script, and setting the output parameter environment setting in the toolbox, but none of them worked. The output parameter is still not Z-aware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea on how to solve this issue? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 08:08:43 GMT</pubDate>
    <dc:creator>EvelynHsu</dc:creator>
    <dc:date>2023-05-24T08:08:43Z</dc:date>
    <item>
      <title>Geoprocessing service output parameter hasZ disabled?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1292463#M36044</link>
      <description>&lt;P&gt;We have a geoprocessing service that takes a point feature layer, runs some calculation steps, and output a line feature layer. The input and output feature layers both need to have z values. The service was published from a python script tool.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we run the GP service as a web tool in Pro, it all works fine, generates a line feature that has z values.&lt;/P&gt;&lt;P&gt;However, when we run the GP service on REST endpoint (or by JS API) using the same input, the output feature layer does NOT have Z. The REST page of the GPservice also shows that output parameter hasZ=False.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvelynHsu_0-1684915457492.png" style="width: 267px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71535i058DF592A4BBEE3B/image-dimensions/267x193?v=v2" width="267" height="193" role="button" title="EvelynHsu_0-1684915457492.png" alt="EvelynHsu_0-1684915457492.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried to explicitly set arcpy.env.outputZFlag = 'enabled' in the script, and setting the output parameter environment setting in the toolbox, but none of them worked. The output parameter is still not Z-aware.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea on how to solve this issue? Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 08:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1292463#M36044</guid>
      <dc:creator>EvelynHsu</dc:creator>
      <dc:date>2023-05-24T08:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service output parameter hasZ disabled?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1292481#M36045</link>
      <description>&lt;P&gt;Updates: We've solved the parameter hasZ=false problem - by changing the parameter type in the toolbox from a Feature Set to a Feature Layer and republish the tool.&lt;/P&gt;&lt;P&gt;Problem is, even with parameter hasZ=true and returnZ set to true when submitting a job, the result returned from REST endpoint still shows no Z value.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EvelynHsu_0-1684923285767.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/71538i78BF25258F7E06E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="EvelynHsu_0-1684923285767.png" alt="EvelynHsu_0-1684923285767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 10:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1292481#M36045</guid>
      <dc:creator>EvelynHsu</dc:creator>
      <dc:date>2023-05-24T10:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service output parameter hasZ disabled?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1524983#M40379</link>
      <description>&lt;P&gt;Hi Evelyn,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I encountered the same issue as you did: the result of my geoprocessing service from the REST endpoint also does not include a Z value. Have you found any workaround for this issue by any chance?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 09:57:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1524983#M40379</guid>
      <dc:creator>marcoyfkwok</dc:creator>
      <dc:date>2024-08-21T09:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing service output parameter hasZ disabled?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1551164#M40827</link>
      <description>&lt;P&gt;Apologies for the late reply! We ended up reworking the whole workflow, by generating the result in a file gdb and uploading the whole gdb to portal to create a hosted feature layer, just so that the output feature layer preserves Z values.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 07:05:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/geoprocessing-service-output-parameter-hasz/m-p/1551164#M40827</guid>
      <dc:creator>EvelynHsu</dc:creator>
      <dc:date>2024-10-23T07:05:18Z</dc:date>
    </item>
  </channel>
</rss>

