<?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 Updating feature's geometry ERRORS (10.2.0 - 10.2.1) ArcGIS Server, JAVA in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-feature-s-geometry-errors-10-2-0-10-2-1/m-p/570816#M15391</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'm developing a SOE with JAVA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a featureclass which must be updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the ITable.updateSearchedRows() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm developing in 10.2.1 and all goes well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now when I publish my SOE to a 10.2.0 ArcGIS Server, I'm getting a strange error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AutomationException: Field is not editable.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that it only occurs when updating the geometryfield (other fields succeed).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;((ITable) fc).updateSearchedRows(qf, featureBuffer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also when I tried to create a workaround with an updateCursor, it still struggles on the geometry-field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;IFeatureCursor fcur = fc.IFeatureClass_update(qf, false);
IFeature feat2 = fcur.nextFeature(); 
feat2.setShapeByRef(feat2.getShapeCopy());
feat2.setValue(feat2.getFields().findField("FUNCTIONEEL_ID"), "testcollin1");
fcur.updateFeature(feat2);//errorline
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;STRONG&gt;AutomationException: Shape or row not found&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the IFeature.store() as well, but same result...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both environments (10.2.0 and 10.2.1) have the same mapservice (published from the same mxd) and use the same DB-layers, so it's not a data thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can it be that this is an issue in 10.2.0? And that it is being solved in 10.2.1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is it just that a 10.2.1 JAR is not 100% working on a 10.2.0 environment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know this before I might downgrade my dev.env. to the 10.2.0 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Collin Kleiboer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GisSense&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Feb 2014 12:17:20 GMT</pubDate>
    <dc:creator>CollinKleiboer</dc:creator>
    <dc:date>2014-02-14T12:17:20Z</dc:date>
    <item>
      <title>Updating feature's geometry ERRORS (10.2.0 - 10.2.1) ArcGIS Server, JAVA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-feature-s-geometry-errors-10-2-0-10-2-1/m-p/570816#M15391</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'm developing a SOE with JAVA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a featureclass which must be updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the ITable.updateSearchedRows() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm developing in 10.2.1 and all goes well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now when I publish my SOE to a 10.2.0 ArcGIS Server, I'm getting a strange error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;AutomationException: Field is not editable.&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out that it only occurs when updating the geometryfield (other fields succeed).&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;((ITable) fc).updateSearchedRows(qf, featureBuffer);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also when I tried to create a workaround with an updateCursor, it still struggles on the geometry-field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;IFeatureCursor fcur = fc.IFeatureClass_update(qf, false);
IFeature feat2 = fcur.nextFeature(); 
feat2.setShapeByRef(feat2.getShapeCopy());
feat2.setValue(feat2.getFields().findField("FUNCTIONEEL_ID"), "testcollin1");
fcur.updateFeature(feat2);//errorline
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;STRONG&gt;AutomationException: Shape or row not found&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the IFeature.store() as well, but same result...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both environments (10.2.0 and 10.2.1) have the same mapservice (published from the same mxd) and use the same DB-layers, so it's not a data thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can it be that this is an issue in 10.2.0? And that it is being solved in 10.2.1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is it just that a 10.2.1 JAR is not 100% working on a 10.2.0 environment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to know this before I might downgrade my dev.env. to the 10.2.0 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Collin Kleiboer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GisSense&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 12:17:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/updating-feature-s-geometry-errors-10-2-0-10-2-1/m-p/570816#M15391</guid>
      <dc:creator>CollinKleiboer</dc:creator>
      <dc:date>2014-02-14T12:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: Updating feature's geometry ERRORS (10.2.0 - 10.2.1) ArcGIS Server, JAVA</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/updating-feature-s-geometry-errors-10-2-0-10-2-1/m-p/570817#M15392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the Java docs for Feature.getShape():&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The basic process to change the shape of a feature is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Get the feature's existing geometry through IFeature.ShapeCopy or create a new geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Modify the geometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Set the feature's geometry using IFeature.Shape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Store the feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All edits to features that participate in a Topology or Geometric Network must be performed within an edit session and bracketed within an edit operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you doing it this way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 15:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/updating-feature-s-geometry-errors-10-2-0-10-2-1/m-p/570817#M15392</guid>
      <dc:creator>LeoDonahue</dc:creator>
      <dc:date>2014-02-14T15:59:41Z</dc:date>
    </item>
  </channel>
</rss>

