Why would arcpy.analysis.Clip() affect an ArcGIS Pro edit session and is there any way to prevent that?
Steps to reproduce:
1. Edit tab | click Edit button
2. Choose Workspace window | choose Enterprise Geodatabase Data (versioned) | click OK
3. Run Python script from Toolbox with code:
import arcpy
in_features = 'Feature Layer 1'
clip_features = 'Feature Layer 2'
out_feature_class = r'D:\my_gdb.gdb\intersect_result'
arcpy.analysis.Clip(in_features, clip_features, out_feature_class)
This results in the Edit session being stopped (as evidenced by the other Edit tools becoming disabled).
At face value, this does not seem like it would be a big problem. But in a complicated application where an edit session is being managed by the Pro SDK and users need to run a process like this without it interrupting their edit sessions, it causes significant issues.