The arcpy.da.Editor class does not properly utilize an edit session to edit feature classes participating in a composite relationship class when the 'with' statement is used.
上次发布: February 18, 2016ArcSDE/Enterprise Geodatabase
漏洞 ID 编号
BUG-000094056
已提交
February 8, 2016
上次修改时间
April 2, 2025
适用范围
ArcSDE/Enterprise Geodatabase
找到的版本
10.3.1
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.
解决办法
Explicitly open an edit session and operation:
# Start an edit session. Must provide the workspace.
edit = arcpy.da.Editor(arcpy.env.workspace)
# Start an edit session.
edit.startEditing(False,False)
# Start an edit operation.
edit.startOperation()
# Edit the data.
# Stop the edit operation.
edit.stopOperation()
# Stop the edit session and save the changes.
edit.stopEditing(True)