All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Python script works in ArcGIS Pro but fails to execute actions when published to ArcGIS Enterprise

By

https://community.esri.com/t5/user/viewprofilepage/user-id/73921

19h ago· 1 min readen

Summary

A user reports that a simple Python script designed to stop a service works correctly in an IDE, ArcGIS Pro, and as a Script Tool within a toolbox, but when published to an Enterprise (ArcGIS Enterprise) environment, it runs successfully without actually performing any actions or printing output. The user is seeking help to resolve this issue where the script appears to execute but has no effect in the Enterprise deployment.

Key quotes

· 3 pulled
This python script works when I run it from an IDE, it works in ArcPro as a direct python script, and it works as a Toolbox's Script tool.
However, when I publish the tool to our Enterprise, it will run successfully, but do nothing.
It won't print anything, it won't do anything.
Snippet from the RSS feed
Hello, I created a simple python script that will just Stop a service, as in the future I want to build upon this script. This python script works when I run it from an IDE, it works in ArcPro as a direct python script, and it works as a Toolbox's Script

You might also wanna read