<?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 Published Web Tools Not Displaying Messages in Geoprocessing Window in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/published-web-tools-not-displaying-messages-in/m-p/1187434#M757</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have published a web tool using ArcGIS Pro 2.9.2 and am running into some annoying issues trying to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create the web tool, I wrote a python program in Jupyter Notebook, then exported the program to a standard python script (*.py), tested it and confirmed that it worked. Add the script as a tool in my local toolbox, tested the script to confirm that it worked (it did), and then I published the tool as a web tool to my ArcGIS Enterprise Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is where things went sideways.&lt;/P&gt;&lt;P&gt;So random issues with my script notwithstanding, I am trying to add messages into my code that can display in the geoprocessing window. I used the code snippet: arcpy.AddMessage("Text here.") all throughout my code, but they will not display in my geoprocessing window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, I tested a separate program that did almost nothing but give me messages, here is that program:&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;arcpy.AddMessage("Starting to run the tool")&lt;/P&gt;&lt;P&gt;gdbPath = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;arcpy.AddMessage("Input file is: " + gdbPath)&lt;/P&gt;&lt;P&gt;wksp = arcpy.env.workspace = gdbPath&lt;/P&gt;&lt;P&gt;arcpy.AddMessage("The workspace for the project is: " + wksp)&lt;/P&gt;&lt;P&gt;arcpy.AddMessage("Hello? Is anybody out there?")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on. The thing is, this works perfectly on my local machine. The second I publish it as a web tool, it displays none of the messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Our Portal is currently 10.8.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2022 18:49:55 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-06-28T18:49:55Z</dc:date>
    <item>
      <title>Published Web Tools Not Displaying Messages in Geoprocessing Window</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/published-web-tools-not-displaying-messages-in/m-p/1187434#M757</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have published a web tool using ArcGIS Pro 2.9.2 and am running into some annoying issues trying to use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create the web tool, I wrote a python program in Jupyter Notebook, then exported the program to a standard python script (*.py), tested it and confirmed that it worked. Add the script as a tool in my local toolbox, tested the script to confirm that it worked (it did), and then I published the tool as a web tool to my ArcGIS Enterprise Portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is where things went sideways.&lt;/P&gt;&lt;P&gt;So random issues with my script notwithstanding, I am trying to add messages into my code that can display in the geoprocessing window. I used the code snippet: arcpy.AddMessage("Text here.") all throughout my code, but they will not display in my geoprocessing window.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore, I tested a separate program that did almost nothing but give me messages, here is that program:&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;arcpy.AddMessage("Starting to run the tool")&lt;/P&gt;&lt;P&gt;gdbPath = arcpy.GetParameterAsText(0)&lt;/P&gt;&lt;P&gt;arcpy.AddMessage("Input file is: " + gdbPath)&lt;/P&gt;&lt;P&gt;wksp = arcpy.env.workspace = gdbPath&lt;/P&gt;&lt;P&gt;arcpy.AddMessage("The workspace for the project is: " + wksp)&lt;/P&gt;&lt;P&gt;arcpy.AddMessage("Hello? Is anybody out there?")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and so on. The thing is, this works perfectly on my local machine. The second I publish it as a web tool, it displays none of the messages.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Our Portal is currently 10.8.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 18:49:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/published-web-tools-not-displaying-messages-in/m-p/1187434#M757</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-06-28T18:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Published Web Tools Not Displaying Messages in Geoprocessing Window</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/published-web-tools-not-displaying-messages-in/m-p/1277478#M937</link>
      <description>&lt;P&gt;Running into the same hurdle here. ArcPro version 3.03 and portal 10.9.1.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 18:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/published-web-tools-not-displaying-messages-in/m-p/1277478#M937</guid>
      <dc:creator>BE4</dc:creator>
      <dc:date>2023-04-11T18:52:38Z</dc:date>
    </item>
  </channel>
</rss>

