2

I have a tool that I created from a Python script which I update from time to time. Usually I will right-click the tool and choose Import Script, but lately this has been unavailable, as shown below:

enter image description here

This has been happening to almost all the tools I create, usually after a few imports. The problem is that if the script is cached the only workaround is to create a whole new interface, which can be pretty time-consuming.

Does anyone know why this happens?

I found this post on the Esri forums describing the same problem: http://forums.arcgis.com/threads/70829-Python-Import-Script-grayed-out

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Dec 3, 2012 at 18:49
4
  • 4
    Do you have a strong need to import the script into the tools cache? Why not just allow the ArcGIS script tool to point to the script (on disk) itself. Unless it is for portability or to "hide" the script from a user, there is no need to "Import Script"... Commented Dec 3, 2012 at 21:16
  • I don't theoretically need to import the script, but sometimes it will become cached anyway (that is, making changes to the .py file doesn't affect the behavior of the script) and my way of "resetting" it is to use the Import Script function. Commented Dec 3, 2012 at 21:47
  • 2
    I've never seen Python scripts get cached using the method @RyanDalton suggests so would recommend using that rather than Import Script which seems to be for Embedding scripts and password protecting tools Commented Dec 4, 2012 at 3:11
  • 1
    I rebuilt the tool without importing and it seems to be working better, so maybe that is the way to go. Thanks guys. I still don't understand though what would make the Import Script option disappear like that (suppose I did need to embed the script, for example). Anyone from Esri listening? :) Commented Dec 4, 2012 at 19:06

2 Answers 2

1

The question has been answered in Geonet:

you need to export script and then you gonna be able to add a new script... Don't overwrite the script you want to import.

https://geonet.esri.com/message/414853#414853

answered Sep 18, 2014 at 11:34
2
0

In your Comment you ask if anyone from Esri is listening.

Although a number of Esri staff are regular users of this site, I suspect each will be focussed on their own area(s) of expertise.

Consequently, if this issue is still of concern to you then I think that you should submit this to your local Esri Support . However, before doing that I recommend that you try to have it in a reproducible form.

answered Jun 15, 2014 at 11:25

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.