<?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: arcpy in Python 2 and branch versioning in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087912#M62032</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;I guess the only option is to use Python 3 (Pro) for that task and probably migrate whole geoprocessing service.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This...&lt;/P&gt;&lt;P&gt;And...&lt;/P&gt;&lt;P&gt;Do yourself a favor and embrace ArcGIS Pro.&amp;nbsp; It's a tough change I know but if an old gray-hair such as myself can do it, anyone can. I haven't used ArcMap/ArcCatalog in almost two years and don't miss it one bit.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 11 Aug 2021 14:18:37 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2021-08-11T14:18:37Z</dc:date>
    <item>
      <title>arcpy in Python 2 and branch versioning</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087834#M62026</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I want to ask about branch versioning support in geodatabase connections.&lt;BR /&gt;I tried to use&amp;nbsp;arcpy&amp;nbsp;&lt;EM&gt;CreateDatabaseConnection&lt;/EM&gt;&amp;nbsp;function from Python 2 included with ArcGIS Server 10.8.&lt;/P&gt;&lt;P&gt;ArcMap 10.8 documentation states that &lt;EM&gt;version_type&lt;/EM&gt; parameter supports value&amp;nbsp;&lt;EM&gt;BRANCH&lt;/EM&gt;, allowing to use branch versioning.&lt;BR /&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-database-connection.htm" target="_self"&gt;https://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/create-database-connection.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Despite this, function throws error below when passed &lt;EM&gt;"BRANCH"&lt;/EM&gt; as&amp;nbsp;&lt;EM&gt;version_type&lt;/EM&gt;.&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;File "C:\Program Files\ArcGIS\Server\ArcPy\arcpy\management.py", line 19862, in CreateDatabaseConnection&lt;BR /&gt;raise e&lt;BR /&gt;arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.&lt;BR /&gt;ERROR 000800: The value is not a member of TRANSACTIONAL | HISTORICAL | POINT_IN_TIME.&lt;BR /&gt;Failed to execute (CreateDatabaseConnection).&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I am aware that ArcMap application doesn't support branch versioning and only ArcGIS Pro does.&lt;BR /&gt;But if this also applies to Python scripting, then toolboxes documentation is wrong and should be&amp;nbsp;appropriately updated.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 10:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087834#M62026</guid>
      <dc:creator>kamil_szyc</dc:creator>
      <dc:date>2021-08-11T10:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy in Python 2 and branch versioning</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087874#M62029</link>
      <description>&lt;P&gt;I think that Python 2 does not support this kind of script since ArcMap utilizes the python 2 environment whereas the ArcPro utilizes the Python 3 environment. Have you tried opening the script using the Python 3(Pro version) environment?&lt;/P&gt;&lt;P&gt;You can do so by right clicking on the python script that you wish to open, specify the 'Edit With IDLE' ArcGIS Pro, and run the script in that environment.&lt;/P&gt;&lt;P&gt;Also, can you post a snippet of the code or the script so anyone in the community can help you identify where the issue lies.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 13:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087874#M62029</guid>
      <dc:creator>RPGIS</dc:creator>
      <dc:date>2021-08-11T13:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy in Python 2 and branch versioning</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087879#M62030</link>
      <description>&lt;P&gt;I haven't mentioned it, but yes, I tried the same method call in Python 3 (Pro) environment and it works.&lt;/P&gt;&lt;P&gt;I specifically want to use Python 2 because I want to call this method in quite large, existing geoprocessing service written in Python 2. And because of branch versioning mentioned in ArcMap's arcpy documentation I've thought that it's supported.&lt;BR /&gt;But it's not surprising that it's not, because ArcMap does not support branch versioning. Documentation is just misleading in that matter.&lt;BR /&gt;&lt;BR /&gt;I guess the only option is to use Python 3 (Pro) for that task and probably migrate whole geoprocessing service.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 13:18:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087879#M62030</guid>
      <dc:creator>kamil_szyc</dc:creator>
      <dc:date>2021-08-11T13:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy in Python 2 and branch versioning</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087912#M62032</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;I guess the only option is to use Python 3 (Pro) for that task and probably migrate whole geoprocessing service.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This...&lt;/P&gt;&lt;P&gt;And...&lt;/P&gt;&lt;P&gt;Do yourself a favor and embrace ArcGIS Pro.&amp;nbsp; It's a tough change I know but if an old gray-hair such as myself can do it, anyone can. I haven't used ArcMap/ArcCatalog in almost two years and don't miss it one bit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 14:18:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1087912#M62032</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2021-08-11T14:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy in Python 2 and branch versioning</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1093298#M62190</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Unfortunately, creating branch versioning connections from ArcMap and Python 2 is not supported as you discovered. This is a bug in our documentation. I have logged a bug, and it will be resolved in a future release.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Justin&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 21:18:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1093298#M62190</guid>
      <dc:creator>JustinMuise</dc:creator>
      <dc:date>2021-08-27T21:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy in Python 2 and branch versioning</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1093346#M62192</link>
      <description>&lt;P&gt;Thank you for the official confirmation&lt;/P&gt;</description>
      <pubDate>Sat, 28 Aug 2021 17:17:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-in-python-2-and-branch-versioning/m-p/1093346#M62192</guid>
      <dc:creator>kamil_szyc</dc:creator>
      <dc:date>2021-08-28T17:17:22Z</dc:date>
    </item>
  </channel>
</rss>

