Select to view content in your preferred language

FindIdentical_management Error in executing tool

2552
2
09-13-2011 03:10 PM
RichardThurau
Deactivated User
Hi. Can anyone see what's wrong with this simple code?

dup_fields = ["Shape"]
out_table = "M:\\GIS\\Test\\table_of_dup_records"
xy_tol = ".01 Feet"

arcpy.FindIdentical_management(parcels_all_data1, dup_fields, out_table, xy_tol)


Error returned:
Traceback (most recent call last):
  File "X:\08_Tools\02_Python\UTCModel1.1_Parcel_Prep.py", line 82, in <module>
    arcpy.FindIdentical_management(parcels_all_data1, dup_fields, out_table, xy_tol)
  File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 3092, in FindIdentical
    raise e
RuntimeError: Object: Error in executing tool

Parcels are defined higher up and are used for other successful tools.

Thanks for your input.

Rich
Tags (2)
0 Kudos
2 Replies
StacyRendall1
Frequent Contributor
Rich,

I think your out_table either needs an extension: i.e. dbf; or needs to be in a Geodatabse or similar. In the example (here) they specify the workspace as a GDB, then drop the output table directly into that...

If that doesn't work, try (no guarantee - my memory is pretty sketchy at times) setting dup_fields to just "Shape" - as opposed to ["Shape"] - I think I had an experience with a tool once where a list with a single item in it caused the tool to fail, but when I just put it directly (as above) in it worked.
0 Kudos
RichardThurau
Deactivated User
Well Heck,
Stacy you didn't directly solve the issue but your suggestion (dropping the brackets on shape) caused a different error code that revealed the problem.

I had switched up the order on the fields and output table.

You still score some points in my book!

Thanks

Rich
0 Kudos