Select to view content in your preferred language

Ability to control database connection from ArcPy

1377
1
02-10-2016 02:42 PM
Status: Needs Clarification
Labels (1)
LukeRogers
Occasional Contributor
ArcPy needs the ability to connect, disconnect and check the status of a connection to a database. When connecting to an enterprise database feature class behind the scenes ArcPy creates a connection, opens it and retrieves the data. If, for some reason, ArcPy gets disconnected from the database there is no way to reconnect or even disconnect. Even using del(arcpy) will not drop the failed connection. The only way is to completely exit out of python and start over. Every other database client library in the universe has the ability to connect, disconnect and check the status of the connection. ArcPy needs this too. In our experience long running ArcPy sessions often become disconnected from the database server (another bug...) and it is impossible to recover from this programatically from within Python and ArcPy.
1 Comment
HannesZiegler
Status changed to: Needs Clarification

I apologize for the very late response to this idea request. Could you (or anyone interested/affected by this) please clarify if this issue, which was initially logged against ArcMap, is still occurring in ArcGIS Pro? Additionally, it would be very helpful if you could provide some concrete examples where this issue arises, perhaps with examples of code? Additional information and context will help us act on this request. Thank you