<?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 Pro 3.1.3: Running an update cursor on a feature layer will break if its Attribute table is open. in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/pro-3-1-3-running-an-update-cursor-on-a-feature/m-p/1339224#M74105</link>
    <description>&lt;P&gt;Kind of a PSA.&lt;/P&gt;&lt;P&gt;I switched to Pro 3.1.3 and was testing some tools I wrote in Pro 2.9.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One works with an input feature layer, which then has an update cursor applied.&lt;/P&gt;&lt;P&gt;It kept failing because it couldn't acquire a lock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1697648573106.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83393iB6A98E10C3330ADA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1697648573106.png" alt="AlfredBaldenweck_0-1697648573106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Turns out, that "lock" is created by having the attribute table open.&lt;/P&gt;&lt;P&gt;Things that are definitely not contributing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The feature class is not being edited, am in fact using manual edit sessions and I'm not in one.&lt;/LI&gt;&lt;LI&gt;In the tool, the update cursor is wrapped in an editor object.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It is literally just having the attribute table open.&lt;/P&gt;&lt;P&gt;I can't believe this is intended behavior (it's never worked like this before), so I have to assume it's a bug.&lt;/P&gt;&lt;P&gt;Hopefully this saves someone else a huge headache in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit to add: This seems to be only a problem when using tools. Python window is fine.&lt;/P&gt;</description>
    <pubDate>Wed, 18 Oct 2023 19:10:14 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2023-10-18T19:10:14Z</dc:date>
    <item>
      <title>Pro 3.1.3: Running an update cursor on a feature layer will break if its Attribute table is open.</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/pro-3-1-3-running-an-update-cursor-on-a-feature/m-p/1339224#M74105</link>
      <description>&lt;P&gt;Kind of a PSA.&lt;/P&gt;&lt;P&gt;I switched to Pro 3.1.3 and was testing some tools I wrote in Pro 2.9.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One works with an input feature layer, which then has an update cursor applied.&lt;/P&gt;&lt;P&gt;It kept failing because it couldn't acquire a lock.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AlfredBaldenweck_0-1697648573106.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/83393iB6A98E10C3330ADA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AlfredBaldenweck_0-1697648573106.png" alt="AlfredBaldenweck_0-1697648573106.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Turns out, that "lock" is created by having the attribute table open.&lt;/P&gt;&lt;P&gt;Things that are definitely not contributing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The feature class is not being edited, am in fact using manual edit sessions and I'm not in one.&lt;/LI&gt;&lt;LI&gt;In the tool, the update cursor is wrapped in an editor object.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It is literally just having the attribute table open.&lt;/P&gt;&lt;P&gt;I can't believe this is intended behavior (it's never worked like this before), so I have to assume it's a bug.&lt;/P&gt;&lt;P&gt;Hopefully this saves someone else a huge headache in the future.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit to add: This seems to be only a problem when using tools. Python window is fine.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 19:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/pro-3-1-3-running-an-update-cursor-on-a-feature/m-p/1339224#M74105</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2023-10-18T19:10:14Z</dc:date>
    </item>
  </channel>
</rss>

