How does GIS detect the error causing field in "ExecuteError: ERROR 001156"

المشرف العام

Administrator
طاقم الإدارة
I always get all types of errors, and would like to know if i can use the information in these error messages generated by arcpy to fix the issue and repeat the step where it occurred.

for example in batch merging:

layerList[shp1,shp2,shp3,shp4] arcpy.Merge_management(layerList,"C:\\Data\\title.shp")and I get the following error:

ExecuteError: ERROR 001156: Failed on input OID 0, could not write value 'Kanata' to output field ErrorCuasingFieldFailed to execute (Merge).How can I get the ErrorCausingField in my script, so i can maybe delete it before repeating the merging process.

Also I have a another question addressing this issue specifically: (Batch merging field mapping).



أكثر...
 
أعلى