1

I'm trying to create an ArcGIS tool which accepts an SDE connection file as an input. I made a new interface with an input parameter and set the type to Database Connections. When I open the tool and click the "browse" icon, the dialog opens to the Database Connections folder but there is nothing in it. If I navigate to Database Connections in the ArcCatalog window however I see all my usual connection files. Does anyone know why the tool would not be displaying those?

enter image description here

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
bertday
  • 1,305
  • 12
  • 25

1 Answers1

3

Robercik, it maybe not obvious, but in order to be able to access the ArcSDE geodatabase connections under the Database Connections folder while browsing from a script tool dialog box, you have to make your script parameter to be of Workspace type.

Esri help page on setting script tool parameters. Check the Filter section - when you have a parameter of the Workspace type you can filter what type of workspaces will be available. In your case, you might leave only the Remote Database filter value, which will let the end user see only the ArcSDE connection files either under the Database Connections folder (the default location) or anywhere else on the disk if you would copy them to some other place.

Alex Tereshenkov
  • 29,912
  • 4
  • 54
  • 119