I have the function:
def copyToNewGDB(workspace,eventdataset):
EventDataset_copy = os.path.join(workspace, "eventdatasetCopy")
arcpy.CopyFeatures_management(eventdataset, str(workspace) + "/EventDatasetCopy" )
eventdataset = str(workspace) + "/EventDatasetCopy"
return eventdataset
That is used to copy features (a point dataset containg events) from one workspace (gdb) to another. I have used it many times. But when I use it on a particular dataset, the gdb that receives the copy contains an empty feature class, while it the feature class should not be empty. When I use the exact same code on another dataset there are no problems.
Ergo, the problem must be in my dataset, right? Both (the working and the non-working) point feature classes are in the same gdb. I have tried to manually copy it (using copy -data management-), that did not result in any problems. How can this function result in an empty feature class for one dataset, and run without trouble for another?