Select to view content in your preferred language

ArcGIS Pro - Python Toolbox

808
6
07-28-2025 07:25 PM
Nur_Efarina_JaliJali
Emerging 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
6 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
Emerging 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
MatthewDriscoll
MVP Alum

How did you write your path?  If you did C:\Users\my.tif, change it to C:/Users/my.tif.   Or better yet use r"C:\Users\my.tif", the quotes help because of the spaces in your path.

0 Kudos
Nur_Efarina_JaliJali
Emerging Contributor

Thank you so much for your response. I was occupied with some other tasks and now have some time to look back into this issue. May I know how can i change or edit the path?

 

0 Kudos
DanPatterson
MVP Esteemed Contributor

The folder icons beside the input and output parameters allow you to navigate to an appropriate workspace (eg a folder or a geodatabase within a folder), then select the input or provide a name for the output where appropriate


... sort of retired...
0 Kudos