I am automating a process in .Net and calling the ArcGIS CopyFeatures geoprocessing tool multiple times. The source feature class is always in a file geodatabase and the result is always a new shapefile path (guaranteed not to already exist). Each input feature class is in a different location on the Earth.
CopyFeatures always works the first time. Subsequent calls always produce an empty feature class. The output Shapefile has the correct columns but no features. I am destroying and recreating the geoprocessor and CopyFeatures tool objects each time.
I suspect that the GP might be retaining the spatial domain and so subsequent calls filter out the features because the new feature class is in a different location.
Any thoughts on why the output is always empty on subsequent calls to CopyFeatures?