I am trying to intersect a large feature class (118692 elements) with a grid (58000 elements) but I get an error message.
Traceback (most recent call last):
File "Path/InterJoin.py", line 24, in <module>
arcpy.Intersect_analysis([grid, fc], outFeatureClass, "ALL", "", "")
File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\analysis.py", line 289, in Intersect
raise e
arcgisscripting.ExecuteError: ERROR 999999: Error executing function.
The table was not found.
The table was not found. [BDFORET_Buffer_30_1_Inter_Com_Results_Hexagones]
The table was not found.
The table was not found. [BDFORET_Buffer_30_1_Inter_Com_Results_Hexagones]
Invalid Topology [Topoengine error.]
Failed to execute (Intersect).
I used repair geometry but I still got that error, my computer is I think powerful enough to handle the dataset (32G of RAM).
My code may not be optimized i guess.
import arcpy
import os
import ntpath
arcpy.env.workspace = Path to my workspace
outWorkspace = path to my out workspace
grid = path to my grid
arcpy.env.overwriteOutput = True
fcl = arcpy.ListFeatureClasses()
print fcl
for fc in fcl:
featureClassName = arcpy.ValidateTableName(fc, outWorkspace)
outFeatureClass = os.path.join(outWorkspace, featureClassName + "_Inter_Grid")
os.path.join(outWorkspace, outFeatureClass + "_Dissolve")
arcpy.Intersect_analysis([grid, fc], outFeatureClass, "ALL", "", "")
arcpy.Dissolve_management(outFeatureClass, outFeatureClass_Dissolve, "CODE", "", "MULTI_PART",
"DISSOLVE_LINES")
outFeatureClassTest = ntpath.basename(outFeatureClass)
print outFeatureClassTest
So far I know it is not due to the geometry of my feature classes, but I think I might be a memory problem.
"_Di
string does not end and then you start running the Intersect. So, it cannot find a table.ERROR 999999: Error executing function. The table was not found. The table was not found. [Test] The table was not found. The table was not found. [Test] Invalid Topology [Topoengine error.] Failed to execute (Intersect).