<?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 How to use IUNSubnetworkManager.UpdateSubnetwork() in Enterprise SDK in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-iunsubnetworkmanager-updatesubnetwork/m-p/1682315#M20712</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working on writing tools/scripts to update subnetworks in our Utility Network implementation. I want to test different ways to do that and one is by custom SOE.&lt;/P&gt;&lt;P&gt;I wanted to use the&amp;nbsp;IUtilityNetworkSubnetwork interface but I cannot find the proper way to implement the logic. Here is my code:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IBaseNetwork baseNetwork = unDefinition.BaseNetwork;

IUtilityNetworkCore unCoreNetwork = (IUtilityNetworkCore)baseNetwork;
IUtilityNetworkSubnetwork subnetworks = (IUtilityNetworkSubnetwork)unCoreNetwork;
IUNSubnetworkManager subnetworkManager = subnetworks.CreateSubnetworkManager();

foreach (string subnetworkName in subnetworkNames)
{
    subnetworkManager.UpdateSubnetwork(prop_domainNetworkName, prop_tierName, false, subnetworkName, continueOnFailure, asynchronous, null);
}&lt;/LI-CODE&gt;&lt;P&gt;Line 9 from above throws this exception:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;TabletPC inking error code. Initialization failure (0x80040223) (extended code: -2147220957)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think it may be because I'm passing null for the last parameter (ESRI.ArcGIS.esriSystem.ITrackCancel), but I'm not sure how to initialize that interface.&lt;/P&gt;&lt;P&gt;Can someone explain more about how to use the ITrackCancel interface?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Our system:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 11.5;&amp;nbsp;ArcGIS Pro 3.5; Utility Network v7; PostgreSQL 15&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;</description>
    <pubDate>Thu, 05 Feb 2026 10:08:20 GMT</pubDate>
    <dc:creator>BogdanHristozov</dc:creator>
    <dc:date>2026-02-05T10:08:20Z</dc:date>
    <item>
      <title>How to use IUNSubnetworkManager.UpdateSubnetwork() in Enterprise SDK</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-iunsubnetworkmanager-updatesubnetwork/m-p/1682315#M20712</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working on writing tools/scripts to update subnetworks in our Utility Network implementation. I want to test different ways to do that and one is by custom SOE.&lt;/P&gt;&lt;P&gt;I wanted to use the&amp;nbsp;IUtilityNetworkSubnetwork interface but I cannot find the proper way to implement the logic. Here is my code:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;IBaseNetwork baseNetwork = unDefinition.BaseNetwork;

IUtilityNetworkCore unCoreNetwork = (IUtilityNetworkCore)baseNetwork;
IUtilityNetworkSubnetwork subnetworks = (IUtilityNetworkSubnetwork)unCoreNetwork;
IUNSubnetworkManager subnetworkManager = subnetworks.CreateSubnetworkManager();

foreach (string subnetworkName in subnetworkNames)
{
    subnetworkManager.UpdateSubnetwork(prop_domainNetworkName, prop_tierName, false, subnetworkName, continueOnFailure, asynchronous, null);
}&lt;/LI-CODE&gt;&lt;P&gt;Line 9 from above throws this exception:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;TabletPC inking error code. Initialization failure (0x80040223) (extended code: -2147220957)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I think it may be because I'm passing null for the last parameter (ESRI.ArcGIS.esriSystem.ITrackCancel), but I'm not sure how to initialize that interface.&lt;/P&gt;&lt;P&gt;Can someone explain more about how to use the ITrackCancel interface?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Our system:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ArcGIS Enterprise 11.5;&amp;nbsp;ArcGIS Pro 3.5; Utility Network v7; PostgreSQL 15&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Bogdan&lt;/P&gt;</description>
      <pubDate>Thu, 05 Feb 2026 10:08:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-use-iunsubnetworkmanager-updatesubnetwork/m-p/1682315#M20712</guid>
      <dc:creator>BogdanHristozov</dc:creator>
      <dc:date>2026-02-05T10:08:20Z</dc:date>
    </item>
  </channel>
</rss>

