I am running a series of geoprocessing tools in a custom C# Geoprocessing Tool. First a new File gdb is created, and then a new featuredatset with the given spatial reference is created, and a featureclass is copied to it. Then 'Eliminate' tool is run on it, followed by Smooth Polygon, and then Integrate. Finally I wish to build a topology with only one rule (Must not have gaps) and then finally validate the topology.
When the Validate Topology Tool runs, it fails with the following error code:
Validate Topology failed. A failure was detected inside the topology engine. [error id: 2].
I tried building the topology by using ArcObjects code given on this page instead of the Validate Topology GP tool. That fails with fdoError:
-2147215002 FDO_E_TOPOLOGY_ENGINE_FAILURE
Funnily enough, I cannot validate the topology from the Standard UI in the same ArcMap session. But If I shut down ArcMap after the error, then I can validate the Topology in a new ArcMap session, or from ArcCatlog, or by running the Validate Topology GP tool.
Any help on solving this error would be appreciated.
