I have 5 fairly large Feature Classes with identical fields but different attribute data which I have been trying to merge/append together unsuccessfully.
When using merge_management the process runs successfully, but I am left with a feature class with many new fields created for each of the 5 feature classes (e.g. name1, name12, name123, name1234).
I really need to just retain the name field and add to it rather than creating new fields for the imported Series').
When I attempt to append rather than merge the operation fails with an
ExecuteError: Failed to execute. Parameters are not valid. ERROR 000735: Input Datasets: Value is required Failed to execute (Append).
Find my code below:
(For Merging attempt)
arcpy.env.workspace = r"D:/some.gdb"
fc_list = arcpy.ListFeatureClasses()
fc_list = [x for x in fc_list if "Pymade" in x]
print("Feature classes to join: " + str(fc_list))
print("Joining borough FCs into final output")
arcpy.Merge_management(fc_list, "MapPlutoAllBoro_{0}".format(today))
(For Appending attempt)
arcpy.env.workspace = r"D:/some.gdb"
arcpy.CreateFeatureclass_management(r"D:/some.gdb", "MapPlutoAllBoro_{0}".format(today))
fc_list = arcpy.ListFeatureClasses()
fc_list = [x for x in fc_list if "Pymade" in x]
print("Feature classes to join: " + str(fc_list))
print("Joining borough FCs into final output")
arcpy.Append_management(fc_list, "MapPlutoAllBoro_{0}".format(today))