<?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: Deleting a SDE feature dataset with Python in 10.1 fails in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758636#M42628</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After re-reading through all of this thread, I'm wondering if the permissions here might be the problem.&amp;nbsp; For the two posts showing the Oracle error, the message indicates that the tables can't be found.&amp;nbsp; This is typically the case when the user account accessing the database can't "see" the tables because it does not have SELECT permissions on those tables or isn't assigned to a role that does either.&amp;nbsp; This leads me to ask the question: which user account is embedded within your SDE connection files when connecting to the Oracle geodatabase via your script?&amp;nbsp; Is it the SDE user, the schema owner (i.e., MDC or ARC), or some other user account?&amp;nbsp; If it is not the schema owner that is attempting the delete operation, that could the the problem right there.&amp;nbsp; Also, while the SDE user account should technically be able to see the tables, I don't think it would have rights to delete objects in another user-schema besides its own (unless the SDE user had a DROP ANY TABLE system privilege).&amp;nbsp; So, could you check to see if the user account specified in your connection file is the data owner or something else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Dec 2013 22:14:34 GMT</pubDate>
    <dc:creator>WilliamCraft</dc:creator>
    <dc:date>2013-12-13T22:14:34Z</dc:date>
    <item>
      <title>Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758629#M42621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working in ArcGIs 10.1. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Deleting with python 10.1 or Model Builder 10.1&amp;nbsp; a SDE feature dataset that has features classes and topology fails with the following error.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The feature dataset is in a SDE 9.3 geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I delete the same feature dataset with a python script in 9.3 it works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;

# Import arcpy module
import arcpy


# Local variables:
MDC_TPDistrict = "Database Connections\\Dsde3 MAIN.SDE\\MAIN.TPDistrict"

# Process: Delete
arcpy.Delete_management(MDC_TPDistrict, "FeatureDataset")



=========================================== TRACE


traceback (most recent call last):
&amp;nbsp; File "C:\Workspace\Delete.py", line 17, in &amp;lt;module&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management(MDC_TPDistrict, "FeatureDataset")
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\management.py", line 3658, in Delete
&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e
ExecuteError: DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1190_PolyErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1190_LineErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1190_PointErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1192_PolyErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1192_LineErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1192_PointErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1191_PolyErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1191_LineErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist
][MDC.T_1191_PointErrors]] 
Failed to execute (Delete).

&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758629#M42621</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2021-12-12T08:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758630#M42622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;10.1 python modules will not work with 9.3 Geodatabase. Its better to upgrade your geodatabase to at least version 10.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jun 2013 06:36:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758630#M42622</guid>
      <dc:creator>EmadAl-Mousa</dc:creator>
      <dc:date>2013-06-22T06:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758631#M42623</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 tested this module with a&amp;nbsp; ArcSDE 9.3 and ArcSDE 10 geodatabases and it fails in both.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jun 2013 10:30:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758631#M42623</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2013-06-24T10:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758632#M42624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;These error messages show when copying from ArcSDE 10.0 to another ArcSDe 10.0 or ArcSDE 93 in arcGIs 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script runs fine when working with ArccSDe 9.3 instances only.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 10:47:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758632#M42624</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2013-07-01T10:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758633#M42625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since you are trying to delete from a 9.3 GDB, try loading the older module with your Python script rather than using the current version as you're doing now:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcgisscripting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp = arcgisscripting.create(9.3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Replace your "arcpy" functions with "gp" and see if that helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 02:15:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758633#M42625</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2013-07-03T02:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758634#M42626</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 copying from&amp;nbsp; ArcSDE 9.3 to ArcSDE 10.0. But before copying a new feature dataset I delete it, and when I delete it, if it has topology it shows the error message when running the script in ArcGIS 10.1 only. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The script works fine in ArcGIS 10.0 or ArcGIS 9.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jul 2013 10:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758634#M42626</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2013-07-03T10:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758635#M42627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am getting the same problem in ArcGIS 10.1 SP1 with the same version of ArcSDE.&amp;nbsp; If I create a topology and delete it using the Delete tool in a model, I get the same error.&amp;nbsp; The tables are created by the topology and are deleted by the tool, but an error is still raised.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Deleting topology C:\GIS\DatabaseConnections\SDEDEV\arc@SDEDEV.sde\ParcelFabricStaging\pfsCadastralCenterlineTopology...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to delete topology C:\GIS\DatabaseConnections\SDEDEV\arc@SDEDEV.sde\ParcelFabricStaging\pfsCadastralCenterlineTopology.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\GIS\ETL\Python\DropTopology.py", line 34, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.management.Delete(topology)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\management.py", line 3658, in Delete&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ExecuteError: DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;][ARC.T_1_PolyErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;][ARC.T_1_LineErrors]] DBMS table not found [DBMS table not found [ORA-00942: table or view does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;][ARC.T_1_PointErrors]] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (Delete).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 20:00:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758635#M42627</guid>
      <dc:creator>NathanHeick</dc:creator>
      <dc:date>2013-12-13T20:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758636#M42628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After re-reading through all of this thread, I'm wondering if the permissions here might be the problem.&amp;nbsp; For the two posts showing the Oracle error, the message indicates that the tables can't be found.&amp;nbsp; This is typically the case when the user account accessing the database can't "see" the tables because it does not have SELECT permissions on those tables or isn't assigned to a role that does either.&amp;nbsp; This leads me to ask the question: which user account is embedded within your SDE connection files when connecting to the Oracle geodatabase via your script?&amp;nbsp; Is it the SDE user, the schema owner (i.e., MDC or ARC), or some other user account?&amp;nbsp; If it is not the schema owner that is attempting the delete operation, that could the the problem right there.&amp;nbsp; Also, while the SDE user account should technically be able to see the tables, I don't think it would have rights to delete objects in another user-schema besides its own (unless the SDE user had a DROP ANY TABLE system privilege).&amp;nbsp; So, could you check to see if the user account specified in your connection file is the data owner or something else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 22:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758636#M42628</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2013-12-13T22:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758637#M42629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Pyhon version 10.1 you must check if the layer exits otherwise it gives you an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if arcpy.Exists ....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Check for existence of data before deleting
#
if arcpy.Exists("roadbuffer"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Delete_management("roadbuffer")
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758637#M42629</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2021-12-12T08:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758638#M42630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Responding to the last two questions, the account being used to delete the topology is the data owner.&amp;nbsp; Also, I had already checked to see if the topology existed before deleting it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nathan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 21:21:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758638#M42630</guid>
      <dc:creator>NathanHeick</dc:creator>
      <dc:date>2014-01-02T21:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758639#M42631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did some more testing using SDEINTERCEPT.&amp;nbsp; If I delete the topology using a right-click context menu and review the intercept files, the tables in question do exist, are accessed, deleted, and then additional attempts to access them are made at the end of the process.&amp;nbsp; Still, there is no apparent failure.&amp;nbsp; With the GP tool, with Python or in ArcCatalog, something similar happens, but the GP tool fails in response to the Oracle errors.&amp;nbsp; Is anyone able to build a topology in ArcSDE and ArcGIS 10.2 and then delete it successfully using the Delete tool?&amp;nbsp; I am wondering if this is a known issue with 10.1.&amp;nbsp; It feels like a bug to me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 23:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758639#M42631</guid>
      <dc:creator>NathanHeick</dc:creator>
      <dc:date>2014-01-02T23:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting a SDE feature dataset with Python in 10.1 fails</title>
      <link>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758640#M42632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried creating a topology in ArcSDE 9.3.1 from ArcGIS 10.1 SP1.&amp;nbsp; I received an error regarding empty geometry.&amp;nbsp; I then created it directly from ArcGIS 9.3.1.&amp;nbsp; When I deleted it, I still had errors, but found new messages regarding parcel fabric tables.&amp;nbsp; When I looked at the SDEINTERCEPT logs, after it deleted this tables it seemed to be going through tables in GDB_ITEMS.&amp;nbsp; I remember seeing some parcel fabric tables then too.&amp;nbsp; It's trying to do something after it deletes these topology tables, but I'm not clear what.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 23:14:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/deleting-a-sde-feature-dataset-with-python-in-10-1/m-p/758640#M42632</guid>
      <dc:creator>NathanHeick</dc:creator>
      <dc:date>2014-01-02T23:14:48Z</dc:date>
    </item>
  </channel>
</rss>

