arcpy.DisconnectUser() is not disconnecting

142
1
Jump to solution
08-10-2020 10:53 AM
PeterLen
Occasional Contributor

Hello,

I used the arcpy.ListUsers() tool to list current schema locks.  I then tried to use the arcpy.DisconnectUser() tool with the lock ID value and the SDE schema connection.   When I run the command, there is no error but when I run the arcpyListUsers() again, the schema lock still exists.  I am trying to find out why the command ran with no error but the schema lock remained.

I am connecting to an Oracle 11g database with an Esri 10.2 geodatabase (SDE schema).  Any thoughts?

Thanks - Peter

0 Kudos
1 Solution

Accepted Solutions
PeterLen
Occasional Contributor

Problem solved.  My python script was reading in the id to use and because it was a string, it didn't work, even though there was not an error.  Once I converted it to an int, the lock was removed.

View solution in original post

0 Kudos
1 Reply
PeterLen
Occasional Contributor

Problem solved.  My python script was reading in the id to use and because it was a string, it didn't work, even though there was not an error.  Once I converted it to an int, the lock was removed.

0 Kudos