I have a simple script that works perfectly fine in the python window in Pro. However when I import the script to a tool, the process fails on the first geoprocess line. I don't understand why this is happening or why running from a tool differs from the python window in this case. I attached a screen shot of the script. Any response is really appreciated!
Solved! Go to Solution.
Please don't post code as screenshots. https://community.esri.com/t5/community-help-documents/how-to-insert-code-in-your-post/ta-p/914552