Bug: Error 000317: Topology within feature dataset cannot be deleted
【相关信息】
Article ID: 41613
Bug Id: NIM094332
Software:
ArcGIS - ArcEditor 10
ArcGIS - ArcInfo 10
ArcGIS - ArcView 10
ArcGIS for Desktop Advanced 10.1, 10.2
ArcGIS for Desktop Standard 10.1, 10.2
ArcGIS for Desktop Basic 10.1, 10.2
Platforms: N/A
【BUG描述】
When attempting to delete a feature dataset containing a topology, an error message is returned. The feature dataset is deleted as well.
【BUG原因】
This is a known issue. The software attempts to warn the user when a topology exists in the feature dataset, which must be deleted before deleting the feature dataset. However, since the topology is a part of the feature dataset itself, it is deleted and the error message is generated.
Article ID: 41613
Bug Id: NIM094332
Software:
ArcGIS - ArcEditor 10
ArcGIS - ArcInfo 10
ArcGIS - ArcView 10
ArcGIS for Desktop Advanced 10.1, 10.2
ArcGIS for Desktop Standard 10.1, 10.2
ArcGIS for Desktop Basic 10.1, 10.2
Platforms: N/A
【BUG描述】
When attempting to delete a feature dataset containing a topology, an error message is returned. The feature dataset is deleted as well.
import arcpy
arcpy.env.workspace = r"C:\data\test.gdb"
arcpy.Delete_management("majorrds")
【BUG原因】
This is a known issue. The software attempts to warn the user when a topology exists in the feature dataset, which must be deleted before deleting the feature dataset. However, since the topology is a part of the feature dataset itself, it is deleted and the error message is generated.
1 个回复
EsriSupport
赞同来自:
Use the 'try:' and 'except:' statements to bypass the error and move forward with the execution of the script.
Insert the following code. Be sure to adjust the file path of the location of the dataset.
【创建及修改时间】
Created: 9/23/2013
Last Modified: 12/13/2013
【原文链接】
http://support.esri.com/en/kno ... 41613
要回复问题请先登录或注册