<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Updating a feature class that is part of a network dataset in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-a-feature-class-that-is-part-of-a-network/m-p/201613#M5242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any pointer would be welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another error message I get at this point is: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;The supplied command does not exist in command pool in 'esriControls.CommandPool.1&lt;/SPAN&gt;&lt;SPAN&gt;. What does it mean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could at the very least someone check if my code is correct (and thus I have to look in another direction) or if I am doing some mistake. I have tried to derive it from ESRI samples, but there are couple of points that may be different because the Feature Class is part of Network Dataset (it is a polyline FC, forming the edges of the network).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be appreciated as I am fairly new to Java and COM programming.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 05:55:40 GMT</pubDate>
    <dc:creator>AlexandreHirzel</dc:creator>
    <dc:date>2010-12-22T05:55:40Z</dc:date>
    <item>
      <title>Updating a feature class that is part of a network dataset</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-a-feature-class-that-is-part-of-a-network/m-p/201612#M5241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to update a field of a feature class that is part of network dataset (inside a file geodatabase).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"The logical network is of an older version and does not support the requested functionality."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please can you tell me how to solve this issue, or what I am doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
&amp;nbsp; private void setDisID(IFeatureClass netFC, int oid, String oidField, int idx, int disID)throws Exception{
&amp;nbsp;&amp;nbsp;&amp;nbsp; IQueryFilter queryFilter = new QueryFilter();
&amp;nbsp;&amp;nbsp;&amp;nbsp; queryFilter.setWhereClause(oidField + " = " + oid);
&amp;nbsp;&amp;nbsp;&amp;nbsp; IWorkspace ws = new IWorkspaceProxy(netFC.getFeatureDataset().getWorkspace());
&amp;nbsp;&amp;nbsp;&amp;nbsp; IWorkspaceEdit wse = new IWorkspaceEditProxy(ws);
&amp;nbsp;&amp;nbsp;&amp;nbsp; wse.startEditing(true);
&amp;nbsp;&amp;nbsp;&amp;nbsp; wse.startEditOperation();

&amp;nbsp;&amp;nbsp;&amp;nbsp; IFeatureCursor cursor = netFC.IFeatureClass_update(queryFilter, false);
&amp;nbsp;&amp;nbsp;&amp;nbsp; IFeature feature = cursor.nextFeature();
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.setValue(idx, disID);
&amp;nbsp;&amp;nbsp;&amp;nbsp; feature.store();

&amp;nbsp;&amp;nbsp;&amp;nbsp; Cleaner.release(cursor);
&amp;nbsp;&amp;nbsp;&amp;nbsp; wse.stopEditOperation();
&amp;nbsp;&amp;nbsp;&amp;nbsp; wse.stopEditing(true);
&amp;nbsp; }
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alexandre&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 08:58:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/updating-a-feature-class-that-is-part-of-a-network/m-p/201612#M5241</guid>
      <dc:creator>AlexandreHirzel</dc:creator>
      <dc:date>2010-12-21T08:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a feature class that is part of a network dataset</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-a-feature-class-that-is-part-of-a-network/m-p/201613#M5242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any pointer would be welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another error message I get at this point is: &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;The supplied command does not exist in command pool in 'esriControls.CommandPool.1&lt;/SPAN&gt;&lt;SPAN&gt;. What does it mean?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could at the very least someone check if my code is correct (and thus I have to look in another direction) or if I am doing some mistake. I have tried to derive it from ESRI samples, but there are couple of points that may be different because the Feature Class is part of Network Dataset (it is a polyline FC, forming the edges of the network).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help will be appreciated as I am fairly new to Java and COM programming.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 05:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/updating-a-feature-class-that-is-part-of-a-network/m-p/201613#M5242</guid>
      <dc:creator>AlexandreHirzel</dc:creator>
      <dc:date>2010-12-22T05:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a feature class that is part of a network dataset</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-a-feature-class-that-is-part-of-a-network/m-p/201614#M5243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did yo ever figure this out? I just started getting the same error when upgrading a project to ArcEngine 10.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2015 19:30:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/updating-a-feature-class-that-is-part-of-a-network/m-p/201614#M5243</guid>
      <dc:creator>DrewDowling</dc:creator>
      <dc:date>2015-08-03T19:30:54Z</dc:date>
    </item>
  </channel>
</rss>

