<?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 Re: Compress Error &amp;lt;Error&amp;gt;Layer not found [sde.DEFAULT]&amp;lt;/Error&amp;gt; in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263400#M15069</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does the error message reference a specific feature class?&amp;nbsp; I've seen this error before when the sde.sde_table_registry contains an orphaned record from a deleted feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In SQL Server Management Studio, you can run the following query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;select table_name from sde.SDE_table_registry&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will show all feature classes within the SDE geodatabase (ignore entries that begin with 'GDB').&amp;nbsp; See if you can see if there are any orphaned entries.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jun 2011 19:16:01 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2011-06-07T19:16:01Z</dc:date>
    <item>
      <title>Compress Error &lt;Error&gt;Layer not found [sde.DEFAULT]&lt;/Error&gt;</title>
      <link>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263399#M15068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to compress an SDE database and I am getting the error below. I have admin privileges &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Error&amp;gt;ERROR 999999: Error executing function.&amp;lt;/Error&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;Error&amp;gt;Layer not found [sde.DEFAULT]&amp;lt;/Error&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;Error&amp;gt;Failed to execute (Compress).&amp;lt;/Error&amp;gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Thought on how to solve the problem? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Specifications:&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL server 2008 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One Instance Multiple Geodatabases&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows XP SP3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10 SP: 2 (build 10.0.2.3200)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using a Direct Connection.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 17:27:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263399#M15068</guid>
      <dc:creator>DavidAlvarez</dc:creator>
      <dc:date>2011-06-07T17:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compress Error &lt;Error&gt;Layer not found [sde.DEFAULT]&lt;/Error&gt;</title>
      <link>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263400#M15069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does the error message reference a specific feature class?&amp;nbsp; I've seen this error before when the sde.sde_table_registry contains an orphaned record from a deleted feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In SQL Server Management Studio, you can run the following query:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;select table_name from sde.SDE_table_registry&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will show all feature classes within the SDE geodatabase (ignore entries that begin with 'GDB').&amp;nbsp; See if you can see if there are any orphaned entries.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 19:16:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263400#M15069</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2011-06-07T19:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Compress Error &lt;Error&gt;Layer not found [sde.DEFAULT]&lt;/Error&gt;</title>
      <link>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263401#M15070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jake, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found a a few orphaned records. Can I delete them from the SDE_table_registry?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 10:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263401#M15070</guid>
      <dc:creator>DavidAlvarez</dc:creator>
      <dc:date>2011-06-08T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compress Error &lt;Error&gt;Layer not found [sde.DEFAULT]&lt;/Error&gt;</title>
      <link>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263402#M15071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, but before doing so create a database backup.&amp;nbsp; It is highly recommended not to edit any repository tables within the database itself, but this is the only way I've seen to fix this issue.&amp;nbsp; Once you have created a database backup, you can execute the following queries to delete the records from the 'sde.sde_table_registry' and other tables the orphaned feature class may be:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select layer_id from sde.sde_layers where table_name = 'FC name'

select registration_id from sde.sde_table_registry where table_name = 'FC name'

--Apply the 2 above values to the necessary queries below

delete from sde.GDB_ITEMS where name = '&amp;lt;database&amp;gt;.&amp;lt;owner&amp;gt;.FC name'

drop table &amp;lt;owner&amp;gt;.f&amp;lt;layer_id&amp;gt;

drop table &amp;lt;owner&amp;gt;.s&amp;lt;layer_id&amp;gt;

delete from sde.sde_geometry_columns where f_table_name = 'FC name'

drop table &amp;lt;owner&amp;gt;.i&amp;lt;registration_id&amp;gt;

drop table &amp;lt;owner&amp;gt;.FC Name

delete from sde.sde_layers where table_name = 'FC name'

delete from sde.sde_table_registry where table_name = 'FC name'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/compress-error-lt-error-gt-layer-not-found-sde/m-p/263402#M15071</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T12:54:41Z</dc:date>
    </item>
  </channel>
</rss>

