Hi everyone, i created a simple map switcher in python and I put it in a toolbox script.
the script receives as input:
The script performs the following operations:
If executed in "stand alone" from windows shell, the script works perfectly but, if inserted in a toolbox script, launched from ArcGIS (in a blank project) the execution remains stuck at the deleteItem command.
Why? I can't find any reason.
Somebody can help? (script and validation attached).
Thank you in advance.
Tested with ArcGIS Pro 3.3.1 and 3.4
Windows 10 Pro for Workstation
22H2 build 19045.4894
Seeing a similar issue in a Python script tool run from Toolbox. Trying to programmatically remove extraneous map objects from the workspace before the script completes. Did you find a solution?
what do you mean with "extraneous map objects"?
no solution right now...
update...
I tried deleting all the layers and then deleting the map...the result still the same: my process gets stuck on "deleteMap"...