Select to view content in your preferred language

Published Web Tools Not Displaying Messages in Geoprocessing Window

813
1
06-28-2022 10:34 AM
by Anonymous User
Not applicable

Hey all,

 

So I have published a web tool using ArcGIS Pro 2.9.2 and am running into some annoying issues trying to use it.

 

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. 

This is where things went sideways.

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. 

Furthermore, I tested a separate program that did almost nothing but give me messages, here is that program:

import arcpy

arcpy.AddMessage("Starting to run the tool")

gdbPath = arcpy.GetParameterAsText(0)

arcpy.AddMessage("Input file is: " + gdbPath)

wksp = arcpy.env.workspace = gdbPath

arcpy.AddMessage("The workspace for the project is: " + wksp)

arcpy.AddMessage("Hello? Is anybody out there?")

 

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.

 

Please help.

 

Edit: Our Portal is currently 10.8.1

 

Tags (3)
1 Reply
BE4
by
Occasional Contributor

Running into the same hurdle here. ArcPro version 3.03 and portal 10.9.1.