<?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: The modified geometry must be a different geometry  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/the-modified-geometry-must-be-a-different-geometry/m-p/44324#M3501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;script runs through with Arcmap 10.7.1 and a FGDB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't have direct ESRI support and need to go through reseller - will see if they pass it on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Sep 2020 14:42:49 GMT</pubDate>
    <dc:creator>robert_at_work</dc:creator>
    <dc:date>2020-09-07T14:42:49Z</dc:date>
    <item>
      <title>The modified geometry must be a different geometry</title>
      <link>https://community.esri.com/t5/python-questions/the-modified-geometry-must-be-a-different-geometry/m-p/44322#M3499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the following error message when I run my arcpy script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error: The modified geometry must be a different geometry instance from the feature's original geometry (e.g., a copy or new instance)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our environment is:&lt;/P&gt;&lt;P&gt;- ArcMap 10.5.1. and Oracle 11gR2 (production - own oracle instance)&lt;/P&gt;&lt;P&gt;- ArcMap 10.7.1. and Oracle 11gR2 (test &lt;SPAN&gt;- own oracle instance&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error message appears &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt; if used against our test-database (no matter if run in ArcMap 10.5 or ArcMap 10.7). The test-database should be identical to our production database. When I wrote the script a few month back I did all the testing against the test-database. The script has been used since then only with the production database. In the meantime - some weeks ago - we updated our test-environment and installed ArcMap 10.7.1 and also updated the SDE and user data schemas accordingly. Last week I ran&amp;nbsp; the script against the test-environment and got the aformentioned error message. The features are the same in test and production. The issue cant be solved by using shape@ or shapexy as suggested &lt;A _jive_internal="true" href="https://community.esri.com/message/945817-re-updatecursor-trouble-modified-geometry-must-be-a-different-instance?commentID=945817#comment-945817?q=The%20modified%20geometry%20must%20be%20a%20different%20geometry" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script moves&amp;nbsp; point features or a single vertex of a polyline to a specific point location (target) in the selection set.&lt;/P&gt;&lt;P&gt;The script loops through the polyline to find the closest vertex to the point location (target).&lt;/P&gt;&lt;P&gt;Now it looks to me that - when run against the test-database - the point feature or the closest vertex of the polyline is identical with the point location (target). The only thing I can think of right now is some kind of snapping or tolerance but I havent found anything about that which fits to the situation I'm facing. The coordinate of the target point and the coordinate of the closest vertex (polyline) or pointfeature are more than 1m away - so not even very close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas how to narrow down whats going on here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, Robert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;logging output:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;---- Production database (ArcMap 10.5. SDE)
OK - target: 2736527.82,1251708.598 auf Layer AV_EO_TW_PUNKT
\\...\ELE_EDITOR_GNSAXEP2.sde.
START 6789  Werkplan\Trasseeverlauf  --&amp;gt; FeatureId / layer
-&amp;gt;row[0]]                            --&amp;gt; FeaturePart
Polylinie - Vertex
Part 0:                              --&amp;gt; looping through vertices
2736529.40702, 1251709.203           --&amp;gt; start
2736677.20701, 1251726.20199         --&amp;gt; end
Polylinie - Vertex - End



---- test database (ArcMap 10.7. SDE)
OK - target: 2736527.82,1251708.598 auf Layer AV_EO_TW_PUNKT
\\...\ELE.ELE_EDITOR.GNSAXET.sde.
START 6789  Werkplan\Trasseeverlauf  --&amp;gt; FeatureId / layer
-&amp;gt;row[0]]                            --&amp;gt; FeaturePart
Polylinie - Vertex
Part 0:                              --&amp;gt; looping through vertices
2736527.82002, 1251708.59799         --&amp;gt; problem: start vertex is identical whith target !
2736677.20701, 1251726.20199         --&amp;gt; end 
Polylinie - Vertex - End‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-modified-geometry-must-be-a-different-geometry/m-p/44322#M3499</guid>
      <dc:creator>robert_at_work</dc:creator>
      <dc:date>2021-12-10T21:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: The modified geometry must be a different geometry</title>
      <link>https://community.esri.com/t5/python-questions/the-modified-geometry-must-be-a-different-geometry/m-p/44323#M3500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this happen if the data is in a FGDB?&amp;nbsp; Knowing that would help isolate whether it is a client or server issue.&amp;nbsp; Once you know that, I would contact Esri since you have isolated the issue quite a bit, and it appears to be a version-related defect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2020 13:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-modified-geometry-must-be-a-different-geometry/m-p/44323#M3500</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-09-07T13:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: The modified geometry must be a different geometry</title>
      <link>https://community.esri.com/t5/python-questions/the-modified-geometry-must-be-a-different-geometry/m-p/44324#M3501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;script runs through with Arcmap 10.7.1 and a FGDB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Don't have direct ESRI support and need to go through reseller - will see if they pass it on....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2020 14:42:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/the-modified-geometry-must-be-a-different-geometry/m-p/44324#M3501</guid>
      <dc:creator>robert_at_work</dc:creator>
      <dc:date>2020-09-07T14:42:49Z</dc:date>
    </item>
  </channel>
</rss>

