Select to view content in your preferred language

ArcGIS Pro - Python Toolbox

106
3
a week ago
Labels (3)
Nur_Efarina_JaliJali
New Contributor

Hello everyone,

Hi, I'm Nur from Malaysia. I'm a beginner in Python and currently experimenting with building a Python toolbox to automatically calculate yearly forest cover changes in my region. I created the script with help from ChatGPT.

When I run the tool, the analysis starts but I get the following error message:

"Workspace is invalid output workspace"

Can anyone help me understand and fix this issue? 

BIG THANKS in advance 🙂

Screenshot 2025-07-29 101328.png

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

The error reads as...

The specified catalog path for the output does not exist, or you may not have permissions to write.

So assuming the path exists and it is your computer and hence you have permission to write to your own folder, I would suggest navigating to a local folder on your computer with a much shorter path and filename and try again (eg c:\output\myoutput.tif)  Also, spaces and punctuation are often the source of breaking tool functionality


... sort of retired...
Nur_Efarina_JaliJali
New Contributor

Thanks, I've tried to put a shorter part for output, but the same error occurred. Just a heads-up, I’ve updated my ArcGIS Pro to the latest version, if that influences the process. 

Thanks for your help ya. 

0 Kudos
DanPatterson
MVP Esteemed Contributor

If you can run the process manually and it works, that leaves the script.  It isn't clear what tool(s) you are using/calling in your script.  The error suggests a permissions issue if a short local filepath didn't help


... sort of retired...
0 Kudos