0

I'm having some trouble with the python code where i'm recieving this error as output line 382, in merge vt.addrow(input) RuntimeError: ERROR 999999: Error executing function.

meanwhile the python code related to that part is here;

def merge(in_fcs, out_merge="out_merge"): """ Returns the merge output of all input feature classes.

Inputs:
@in_fcs = list of input feature classes
@out_merge = output feature class
"""
out_merge = get_featureclass_name(gp.workspace, out_merge)
fieldmappings = gp.createobject("FieldMappings")
vt = gp.createobject("ValueTable")  # table to hold inputs to merge
for input in in_fcs:
    fieldmappings.addtable(input)
    vt.addrow(input)
gp.merge(vt, out_merge, fieldmappings)  # run the merge tool
return out_merge

Anyone knows how can i deal with the merging problem?

1
  • Welcome to GIS SE! We're a little different from other sites; this isn't a discussion forum but a Q&A site. Please do not re-ask questions that have been closed. We need you to edit the original question so that those edits may be reviewed to determine if the question is ready to be re-opened. Please check out our short Tour for more about how the site works. Thanks.
    – PolyGeo
    Aug 31, 2022 at 0:52

0

Browse other questions tagged or ask your own question.