I am attempting to use a Python script to update the contents of a .GDB file. I have two layers. The first is called Customers, which is a bunch of points plotted on a map. The second is CustomersZone, which uses the MinimumBoundingGeometry geoprocessing function to create a circle associated with the customer points.
The Python script uses a cursor to plot the points. Even if the project is open in ArcGIS Pro, the script always successfully updates the Customers layer.
However, if I have the project open in ArcGIS Pro, the command I use to populate CustomersZone fails. Here is the command:
arcpy.management.MinimumBoundingGeometry(r'Customers',r'CustomersZone','CIRCLE','LIST','IncidentID')
And here is the error:
arcgisscripting.ExecuteError: ERROR 000258: Output C:\Users\Projects\MyProject\MyProject.gdb\CustomersZone already exists
Failed to execute (MinimumBoundingGeometry).
I already have arcpy.env.overwriteOutput = True in my script, so it's not that. The "Allow geoprocessing tools to overwrite existing datasets" option is also checked for this project inside of ArcGIS Pro. Just wondering why I'd always be able to successfully get the points to update but why I can't update the CustomersZone layer using the MinimumBoundingGeometry geoprocessing function.