<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unregister as Versioned Throwing Schema Lock Error in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/unregister-as-versioned-throwing-schema-lock-error/m-p/1544201#M45407</link>
    <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I have a script that I have used several times in the past to unregister feature classes as versioned. I have had no issues with this in the past.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run the script now, I am getting a this error message:&lt;BR /&gt;"&lt;EM&gt;ERROR 000464: Cannot get exclusive schema lock. Either being edited or in use by another application or service.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;The very first thing I do in the script is disconnect all users using this arcpy function&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.DisconnectUser(sde_conn, "ALL")&lt;/LI-CODE&gt;&lt;P&gt;I also double check to see if there is some user that may still be connected, but I am not seeing any through geodatabase administration in ArcGIS Pro nor is the DBA seeing anything on his side.&lt;BR /&gt;&lt;BR /&gt;Is there something that I could be missing that could be hanging this up?&lt;/P&gt;&lt;P&gt;Thanks! - Josh&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 13:19:59 GMT</pubDate>
    <dc:creator>JoshBillings</dc:creator>
    <dc:date>2024-10-01T13:19:59Z</dc:date>
    <item>
      <title>Unregister as Versioned Throwing Schema Lock Error</title>
      <link>https://community.esri.com/t5/data-management-questions/unregister-as-versioned-throwing-schema-lock-error/m-p/1544201#M45407</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I have a script that I have used several times in the past to unregister feature classes as versioned. I have had no issues with this in the past.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try to run the script now, I am getting a this error message:&lt;BR /&gt;"&lt;EM&gt;ERROR 000464: Cannot get exclusive schema lock. Either being edited or in use by another application or service.&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;The very first thing I do in the script is disconnect all users using this arcpy function&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.DisconnectUser(sde_conn, "ALL")&lt;/LI-CODE&gt;&lt;P&gt;I also double check to see if there is some user that may still be connected, but I am not seeing any through geodatabase administration in ArcGIS Pro nor is the DBA seeing anything on his side.&lt;BR /&gt;&lt;BR /&gt;Is there something that I could be missing that could be hanging this up?&lt;/P&gt;&lt;P&gt;Thanks! - Josh&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 13:19:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unregister-as-versioned-throwing-schema-lock-error/m-p/1544201#M45407</guid>
      <dc:creator>JoshBillings</dc:creator>
      <dc:date>2024-10-01T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unregister as Versioned Throwing Schema Lock Error</title>
      <link>https://community.esri.com/t5/data-management-questions/unregister-as-versioned-throwing-schema-lock-error/m-p/1544427#M45408</link>
      <description>&lt;P&gt;This was a simple mistake on my end. I had the wrong database instance in my SDE connection file. This differed from the database instance that disconnected all users. This is why I was receiving the schema lock error.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 18:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/unregister-as-versioned-throwing-schema-lock-error/m-p/1544427#M45408</guid>
      <dc:creator>JoshBillings</dc:creator>
      <dc:date>2024-10-01T18:02:43Z</dc:date>
    </item>
  </channel>
</rss>

