laptop and a wrench

Bug

Running a Python script in ArcMap that changes the data sources to ArcSDE feature classes creates multiple ArcSDE connections.

Last Published: August 25, 2014 ArcSDE/Enterprise Geodatabase
Bug ID Number NIM071979
SubmittedAugust 24, 2011
Last ModifiedApril 2, 2025
Applies toArcSDE/Enterprise Geodatabase
Version found10.0
Operating SystemWindows OS
Operating System Version2008 R2 64 Bit
StatusNon-Reproducible

Additional Information

Non-reproducible at 10.1

Workaround

1) In the line, mxd = arcpy.mapping.MapDocument("CURRENT") change "CURRENT" to the path of the mxd. i.e mxd = r"<a href="file:C:/Documents" target="_blank">C:\Documents</a> and Settings\mela6448\My Documents\Incidents\956207 - Python - Max Connections\GreeleyCO.mxd"2) Add the following line after declaring the mxd path: mxd = arcpy.mapping.MapDocument(mxd)3) Run the script in ArcCatalog or PythonWin.

Steps to Reproduce

Bug ID: NIM071979

Software:

  • ArcSDE/Enterprise Geodatabase

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options