AnsweredAssumed Answered

Union analysis fails to execute

Question asked by rgthurau on Sep 13, 2012
Latest reply on Sep 28, 2015 by xander_bakker
Anyone see what's causing this tool to fail?


Gridnums = range(1,18)

for i in Gridnums:
    #vis6class = ws + "/" + "TVvis6class_G" + str(i)
    inList = arcpy.ListFeatureClasses("*ProcGrid_"+str(i), "")
    print "inList: " + str(inList)
    arcpy.Union_analysis(InList, ws + "/" + "TVvis6class_G" + str(i))


Error Code:
inList: [u'Road_ProcGrid_1', u'FPs_S_ProcGrid_1', u'er_di_ProcGrid_1', u'TV_v_ProcGrid_1']

Traceback (most recent call last):
  File "E:\Projects\TV\01_Python\LandCover\LC_2_Vector_Tile_6class_091312.py", line 48, in <module>
    arcpy.Union_analysis([InList], ws + "/" + "TVvis6class_G" + str(i))
  File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arcpy\analysis.py", line 483, in Union
    raise e
RuntimeError: Object: Error in executing tool
>>>



It's making a good list. I've tried messing with the output format.

Any suggestions, much appreciated!!

Rich

Outcomes