Hello,I am trying to update a field of a feature class that is part of network dataset (inside a file geodatabase).The code below is supposed to take a feature class (netFC), query for a feature given by its OID, and then update one of its field (idx) by assigning it a new value (disID). It works well up to the line "feature.store()" where it generates this exception: "The logical network is of an older version and does not support the requested functionality."I am using ArcGIS 10 and the network dataset was built with ArcGIS 10 too. This method is part of a standalone application using ArcGIS Engine.Please can you tell me how to solve this issue, or what I am doing wrong?
private void setDisID(IFeatureClass netFC, int oid, String oidField, int idx, int disID)throws Exception{
IQueryFilter queryFilter = new QueryFilter();
queryFilter.setWhereClause(oidField + " = " + oid);
IWorkspace ws = new IWorkspaceProxy(netFC.getFeatureDataset().getWorkspace());
IWorkspaceEdit wse = new IWorkspaceEditProxy(ws);
wse.startEditing(true);
wse.startEditOperation();
IFeatureCursor cursor = netFC.IFeatureClass_update(queryFilter, false);
IFeature feature = cursor.nextFeature();
feature.setValue(idx, disID);
feature.store();
Cleaner.release(cursor);
wse.stopEditOperation();
wse.stopEditing(true);
}
Alexandre