I cannot get arcpy.Integrate_management to work. I can run as a standalone process in ArcMap just fine, and if I copy the result as a python snippet I get:
arcpy.Integrate_management(in_features="SFMTA_BikeLanes #", cluster_tolerance="30 Feet")
Now, I try to modify this to use in my Python script, so that the process runs on a feature class that exists in my geodatabase. I've tried:
#Set tolerance ftTolerance = "30 Feet" #arcpy.Integrate_management("G:\Shared drives\Bike Facilities Data\SF_BikeLanes.gdb\SFMTA_BikeLanes #", ftTolerance)
I've also tried:
#arcpy.Integrate_management("G:\Shared drives\Bike Facilities Data\SF_BikeLanes.gdb\SFMTA_BikeLanes", ftTolerance)
And, also tried:
# Define bike lanes feature class bikeLanes = r'G:\Shared drives\Bike Facilities Data\SF_BikeLanes.gdb\SFMTA_BikeLanes' arcpy.Integrate_management(bikeLanes,ftTolerance)
With all these, the script fails with the following error:
Traceback (most recent call last): File "G:\My Drive\GIS\Bike_Aerial_Map_Automation\Scripts\Automation_Test.py", line 184, in <module> arcpy.Integrate_management(bikeLanes, ftTolerance) File "c:\program files (x86)\arcgis\desktop10.7\arcpy\arcpy\management.py", line 2133, in Integrate raise e RuntimeError: Object: Error in executing tool
Failed to execute (TestAutomation).
Can anyone tell me what I'm doing wrong?