<?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 Use Cases for arcpy.management.ChangeVersion() w/ Branch Versioned Data in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/use-cases-for-arcpy-management-changeversion-w/m-p/1580501#M73678</link>
    <description>&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;I found myself writing a python script to update certain features in a branch versioned feature layer added to a Pro project (v3.2) and running into an unhelpful error with the UpdateCursor.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SystemError: &amp;lt;built-in method __enter__ of Workspace Editor object at 0x0000020BF12A88A0&amp;gt; returned NULL without setting an error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;That's when I realized I needed to use the ArcGIS API for Python to make these updates. However it made me wonder (which is why I'm asking here) what are some general use cases for using arcpy.management.ChangeVersion() with version_type='BRANCH'. If it's not editing, is it other maintenance/administrative activities?&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Jack C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2025 17:19:37 GMT</pubDate>
    <dc:creator>__JackCharde__</dc:creator>
    <dc:date>2025-01-30T17:19:37Z</dc:date>
    <item>
      <title>Use Cases for arcpy.management.ChangeVersion() w/ Branch Versioned Data</title>
      <link>https://community.esri.com/t5/python-questions/use-cases-for-arcpy-management-changeversion-w/m-p/1580501#M73678</link>
      <description>&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;I found myself writing a python script to update certain features in a branch versioned feature layer added to a Pro project (v3.2) and running into an unhelpful error with the UpdateCursor.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SystemError: &amp;lt;built-in method __enter__ of Workspace Editor object at 0x0000020BF12A88A0&amp;gt; returned NULL without setting an error&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;That's when I realized I needed to use the ArcGIS API for Python to make these updates. However it made me wonder (which is why I'm asking here) what are some general use cases for using arcpy.management.ChangeVersion() with version_type='BRANCH'. If it's not editing, is it other maintenance/administrative activities?&lt;/P&gt;&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- Jack C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 17:19:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/use-cases-for-arcpy-management-changeversion-w/m-p/1580501#M73678</guid>
      <dc:creator>__JackCharde__</dc:creator>
      <dc:date>2025-01-30T17:19:37Z</dc:date>
    </item>
  </channel>
</rss>

