I have a list called list1:
[('C:\\Users\\user\\Desktop\\merge\\output_c\\exports\\r01\\r01.shp', 'C:\\Users\\user\\Desktop\\merge\\promerge\\r01\\r01.shp'), ('C:\\Users\\user\\Desktop\\merge\\output_c\\exports\\wwa\\wwa.shp', 'C:\\Users\\user\\Desktop\\merge\\promerge\\wwa\\wwa.shp'), ('C:\\Users\\user\\Desktop\\merge\\output_c\\exports\\ds\\ds.shp', 'C:\\Users\\user\\Desktop\\merge\\promerge\\ds\\ds.shp')]
then append what is in the
output_c to the
for i,j in list1: arcpy.Append_management([i], j, "NO_TEST") #appends first item to the second
ExecuteError: ERROR 001156: Failed on input OID 0, could not write value ' ' to output field DEC_W Failed to execute (Append).
DEC_W is empty and gives error while its is told to be appended. Is it possible to complete the append of its other fields and just ignore the fact that only this field is empty and continue?
This script works fine for all the files and only with this file that has
DEC_W empty it doesn't append it. I would like to append all its fields and ignore this specific field that is empty of this file.
Maybe somehow check if that specific shapefile has empty that field and if it is to delete it before the append? How can I do that?