I have some national datasets and some polygons that define regions of the country. I want to split the national datasets into separate file geodatabases, one for each region, each containing the relevant parts of the input datasets for that region.
I've set this up with a single Reader, bringing in the region polygons. For each of the national datasets there is a FeatureReader to spatially select the features and the output of each of those goes to a separate output feature type. All the outputs are on a single geodatabase writer, which has Fanout Dataset selected to write the results from each input region into a separate geodatabase.
This works fine. However now I have some additional input datasets that I would like to split by region and save into those same geodatabases. How can I add the new feature classes into the same fanned-out geodatabases? The Writer setting "Overwrite Existing Geodatabase" does not seem to make any difference: in either case I get an error:
Could not create the File Geodatabase '(pathname here)'. A possible reason is that you may not have permission to create the Geodatabase. The error number from ArcObjects is: '-2147467259'. The error message from ArcObjects is: {}
In any case if I did set it to overwrite this would presumably lose the previous results, if it worked. Am I missing something here? I simply want it to add (or overwrite if necessary and if the Feature Type is configured appropriately) the new Feature Type within each fanned-out dataset, but not overwrite the dataset itself.