AnsweredAssumed Answered

ArcPy Partial/Incomplete Shapefile Union Output

Question asked by jaronswain on Jan 24, 2020
Latest reply on Jan 24, 2020 by jaronswain

I'm having difficulty running batch unions using arcpy consistently and reliably. There is a portion in my batch script where I'm running 3 unions however the union output creates partial/incomplete shapefiles that are not complete, thus corrupt themselves when moving onto the next part of the script. The union runs and no errors are generated but the outputs are broken. Only .sbn, .sbx, .xml files are created.


The weird thing is when I run my files separately (not batched) the outputs are complete and normal. Another weird thing is that each time I run the batch scripts different files generate the corruption. It's not the same input files each time.


I'm using a basic license in Python 2.7 and am running 3 unions separately on relatively large datasets (the size of North America).


I'm wondering if there is something I can do to make the script more reliable because sometime it works flawlessly and other times it doesn't? I've tried repairing the geometry on all the data sources as well as switching the input sources from shapefiles to feature classes with no luck.


If anyone has any ideas it would be much appreciated.