<?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 Notebook GP tool output parameter has no value in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-gp-tool-output-parameter-has-no-value/m-p/1639434#M945</link>
    <description>&lt;P&gt;I have created a simple notebook then published it as a GP tool with 3 output parameters&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GLIMichael_0-1754427548378.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137896i261664F5F67D8818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GLIMichael_0-1754427548378.png" alt="GLIMichael_0-1754427548378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notebook code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
import os
import json

gis = GIS("home")
token = gis.session.auth.token
op_1 = token
op_2 = len(token)
op_3 = json.dumps({"url":"some url"})

# Inserted snippet writes output parameter file for web tool execution
import os
# Only run this snippet during web tool execution when env variable "ENB_JOBID" will be present
if "ENB_JOBID" in os.environ:
    out_param_name = "op_1"
    out_param_file = os.path.join(
        os.environ["ENB_JOBID"], "value_" + out_param_name + ".dat")
    with open(out_param_file, "w") as writer:
        writer.write(str(op_1))

# Inserted snippet writes output parameter file for web tool execution
import os
# Only run this snippet during web tool execution when env variable "ENB_JOBID" will be present
if "ENB_JOBID" in os.environ:
    out_param_name = "op_2"
    out_param_file = os.path.join(
        os.environ["ENB_JOBID"], "value_" + out_param_name + ".dat")
    with open(out_param_file, "w") as writer:
        writer.write(str(op_2))

# Inserted snippet writes output parameter file for web tool execution
import os
# Only run this snippet during web tool execution when env variable "ENB_JOBID" will be present
if "ENB_JOBID" in os.environ:
    out_param_name = "op_3"
    out_param_file = os.path.join(
        os.environ["ENB_JOBID"], "value_" + out_param_name + ".dat")
    with open(out_param_file, "w") as writer:
        writer.write(str(op_3))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is my &lt;STRONG&gt;custom&amp;nbsp;output parameter has no values&lt;/STRONG&gt; returned but only the parameter name. Unlike the outputPreview default parameter which has an value associated to it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GLIMichael_2-1754427688701.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137898iD239A1A7D063D0EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GLIMichael_2-1754427688701.png" alt="GLIMichael_2-1754427688701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GLIMichael_3-1754427717881.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137899iC73A0664B84373D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GLIMichael_3-1754427717881.png" alt="GLIMichael_3-1754427717881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the outputPreview parameter does have value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GLIMichael_1-1754427619706.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137897i47BBE55C5ADD3A6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GLIMichael_1-1754427619706.png" alt="GLIMichael_1-1754427619706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Aug 2025 21:02:08 GMT</pubDate>
    <dc:creator>GLIMichael</dc:creator>
    <dc:date>2025-08-05T21:02:08Z</dc:date>
    <item>
      <title>Notebook GP tool output parameter has no value</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-gp-tool-output-parameter-has-no-value/m-p/1639434#M945</link>
      <description>&lt;P&gt;I have created a simple notebook then published it as a GP tool with 3 output parameters&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GLIMichael_0-1754427548378.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137896i261664F5F67D8818/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GLIMichael_0-1754427548378.png" alt="GLIMichael_0-1754427548378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notebook code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
import os
import json

gis = GIS("home")
token = gis.session.auth.token
op_1 = token
op_2 = len(token)
op_3 = json.dumps({"url":"some url"})

# Inserted snippet writes output parameter file for web tool execution
import os
# Only run this snippet during web tool execution when env variable "ENB_JOBID" will be present
if "ENB_JOBID" in os.environ:
    out_param_name = "op_1"
    out_param_file = os.path.join(
        os.environ["ENB_JOBID"], "value_" + out_param_name + ".dat")
    with open(out_param_file, "w") as writer:
        writer.write(str(op_1))

# Inserted snippet writes output parameter file for web tool execution
import os
# Only run this snippet during web tool execution when env variable "ENB_JOBID" will be present
if "ENB_JOBID" in os.environ:
    out_param_name = "op_2"
    out_param_file = os.path.join(
        os.environ["ENB_JOBID"], "value_" + out_param_name + ".dat")
    with open(out_param_file, "w") as writer:
        writer.write(str(op_2))

# Inserted snippet writes output parameter file for web tool execution
import os
# Only run this snippet during web tool execution when env variable "ENB_JOBID" will be present
if "ENB_JOBID" in os.environ:
    out_param_name = "op_3"
    out_param_file = os.path.join(
        os.environ["ENB_JOBID"], "value_" + out_param_name + ".dat")
    with open(out_param_file, "w") as writer:
        writer.write(str(op_3))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue is my &lt;STRONG&gt;custom&amp;nbsp;output parameter has no values&lt;/STRONG&gt; returned but only the parameter name. Unlike the outputPreview default parameter which has an value associated to it:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GLIMichael_2-1754427688701.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137898iD239A1A7D063D0EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GLIMichael_2-1754427688701.png" alt="GLIMichael_2-1754427688701.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GLIMichael_3-1754427717881.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137899iC73A0664B84373D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GLIMichael_3-1754427717881.png" alt="GLIMichael_3-1754427717881.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the outputPreview parameter does have value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GLIMichael_1-1754427619706.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/137897i47BBE55C5ADD3A6D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GLIMichael_1-1754427619706.png" alt="GLIMichael_1-1754427619706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2025 21:02:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-gp-tool-output-parameter-has-no-value/m-p/1639434#M945</guid>
      <dc:creator>GLIMichael</dc:creator>
      <dc:date>2025-08-05T21:02:08Z</dc:date>
    </item>
  </channel>
</rss>

