Is This Content Helpful?
We're glad to know this article was helpful.
In ArcCatalog or ArcMap, building a network dataset in an ArcSDE geodatabase fails if its feature dataset is registered as versioned.
When the feature dataset is registered as versioned, all feature classes in the feature dataset, including the network dataset's system junction feature class, are registered as versioned.
The build process requires the system junction feature class to be unversioned. Since the system junction feature class is versioned, the build command fails.
The network dataset can only be built if the system junction feature class is unversioned. The underlying data can only be edited if the entire feature dataset, including the system junction feature class, is registered as versioned.
Below are the steps to unversion the system junction feature class, build the network dataset, and re-register the system junction feature class as versioned for editing of the feature classes within the feature dataset.
Dim pApp As IGxApplication
Dim pGxDataset As IGxDataset
Dim pDataset As IDataset
Dim pVersionedObject As IVersionedObject
Set pApp = Application
'Get the selected feature class in ArcCatalog
If TypeOf pApp.SelectedObject Is IGxDataset Then
Set pGxDataset = pApp.SelectedObject
Set pDataset = pGxDataset.Dataset
Set pVersionedObject = pDataset
If pVersionedObject.IsRegisteredAsVersioned Then
MsgBox "The selected feature class is now unregistered as versioned."
MsgBox "The selected feature class is now registered as versioned."
The system junction feature class must be registered as versioned in order to make edits to any feature class in this feature dataset.