I have a list of a 2 layers (nfhl_fld_haz_features
, prelim_fld_haz_features
) and a feature class (master_merge
) that I want to perform a union on:
wkflw2_union = arcpy.Union_analysis([master_merge, nfhl_fld_haz_features, prelim_fld_haz_features], wkflw2_union_output)
I keep getting the following error:
Traceback (most recent call last):
File "", line 1, in wkflw2_union = arcpy.Union_analysis([master_merge, nfhl_fld_haz_features, prelim_fld_haz_features], wkflw2_union_output)
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\analysis.py", line 734, in Union raise e
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\analysis.py", line 731, in Union retval = convertArcObjectToPythonObject(gp.Union_analysis(*gp_fixargs((in_features, out_feature_class, join_attributes, cluster_tolerance, gaps), True)))
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing_base.py", line 496, in return lambda *args: val(*gp_fixargs(args, True))
RuntimeError: Object: Error in executing tool
I don't see any issue with using a list, but could this error be due to using a feature class mixed with 2 layers? Or could this be something else (the main files come from a network drive)