<?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: Exception trying to SetShape on existing feature in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/exception-trying-to-setshape-on-existing-feature/m-p/1278747#M9678</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check your&amp;nbsp;_networkDataProvider.PipelineFeatureClass properties for having Z and M values. If _networkDataProvider.PipelineFeatureClass doesn't have one of values, edit&amp;nbsp;polylineJson to match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s. M value of second point could be invalid:&lt;/P&gt;&lt;PRE&gt;-23728156529555.527&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Apr 2023 13:12:54 GMT</pubDate>
    <dc:creator>GKmieliauskas</dc:creator>
    <dc:date>2023-04-14T13:12:54Z</dc:date>
    <item>
      <title>Exception trying to SetShape on existing feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/exception-trying-to-setshape-on-existing-feature/m-p/1278724#M9677</link>
      <description>&lt;P&gt;I have a standalone batch application which needs to move a feature to a new location.&amp;nbsp; &amp;nbsp;The problem is when I try to update the geometry on the feature a very odd exception is thrown which I cannot find any information about&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ArcGIS.Core.Data.GeodatabaseException
  HResult=0x80131500
  Message=A geodatabase exception has occurred.
  Source=ArcGIS.Core
  StackTrace:
   at ArcGIS.Core.Data.Feature.SetShapeInternal(Geometry shape)
   at ...

Inner Exception 1:
COMException: TabletPC inking error code. Queue is full (Exception from HRESULT: 0x80040238)&lt;/LI-CODE&gt;&lt;P&gt;I have reduced this down to a pretty simple code&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;string polylineJson =
	"{\"hasZ\":true,\"hasM\":true,\"paths\":[[[1157175.5091482587,1949613.7086186269,0,null],[1157179.1629363969,1949513.7653565472,0,-23728156529555.527]]],\"spatialReference\":{\"wkid\":102671,\"latestWkid\":3435}}";

Polyline polyline = PolylineBuilder.FromJson(polylineJson);

long pipeObjectId = 1067988;
QueryFilter qf = new QueryFilter() { ObjectIDs = new [] { pipeObjectId } };

// _networkDataProvider just wraps operation of Opening Geodatabase Object, swicthing version and opening Feature Class
var rows = _networkDataProvider.PipelineFeatureClass.Search(qf,false);

if (rows.MoveNext())
{
	var pipeFeature = (Feature) rows.Current;
	//This line throws exception
	pipeFeature.SetShape(polyline); 
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;What is the issue here?&amp;nbsp; I cannot find anything about this exception, but I can absolutely not set the Shape on the existing feature&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:28:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/exception-trying-to-setshape-on-existing-feature/m-p/1278724#M9677</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2023-04-14T12:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Exception trying to SetShape on existing feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/exception-trying-to-setshape-on-existing-feature/m-p/1278747#M9678</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check your&amp;nbsp;_networkDataProvider.PipelineFeatureClass properties for having Z and M values. If _networkDataProvider.PipelineFeatureClass doesn't have one of values, edit&amp;nbsp;polylineJson to match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s. M value of second point could be invalid:&lt;/P&gt;&lt;PRE&gt;-23728156529555.527&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 13:12:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/exception-trying-to-setshape-on-existing-feature/m-p/1278747#M9678</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2023-04-14T13:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Exception trying to SetShape on existing feature</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/exception-trying-to-setshape-on-existing-feature/m-p/1278899#M9679</link>
      <description>&lt;P&gt;For some reason the way one of the points was created gave the goofy M value.&amp;nbsp; I changed how that was being done and it accepts the geometry when updating the feature&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 18:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/exception-trying-to-setshape-on-existing-feature/m-p/1278899#M9679</guid>
      <dc:creator>JoeHershman</dc:creator>
      <dc:date>2023-04-14T18:23:20Z</dc:date>
    </item>
  </channel>
</rss>

