<?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: Publish reconcile branch version using ArcPy as web tool return editing error result in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/publish-reconcile-branch-version-using-arcpy-as/m-p/1209817#M7863</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/597112"&gt;@CSM&lt;/a&gt;&amp;nbsp;, We are also facing the same issue. Did you find any solution? Please share.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 12:34:41 GMT</pubDate>
    <dc:creator>SU00861536</dc:creator>
    <dc:date>2022-09-06T12:34:41Z</dc:date>
    <item>
      <title>Publish reconcile branch version using ArcPy as web tool return editing error result</title>
      <link>https://community.esri.com/t5/geodatabase-questions/publish-reconcile-branch-version-using-arcpy-as/m-p/1185362#M7719</link>
      <description>&lt;P&gt;I need to write a reconcile version script and publish it as web tool. After I publish the python script as web tool then execute, I got this error message:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Starting reconcile.&lt;/LI&gt;&lt;LI&gt;Reconciling version USER.MyVersion with SDE.DEFAULT.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Warning: Error starting editing on version USER.MyVersion.&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;1 of 1 versions finished.&lt;/LI&gt;&lt;LI&gt;Finished reconcile.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If I run the script using ArcGIS Pro Desktop it shows reconcile successfully. However when publish the script as web tool and execute it returns &lt;STRONG&gt;starting editing on version error&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the sample script that I wrote:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy, sys, datetime, os, tempfile, shutil
from arcpy import env

def main():
    
    arcpy.env.overwriteOutput = True
    
    url = "https://mysite.mydomain/server/rest/services/ElectricNetwork/FeatureServer"
    version = "USER.MyVersion"
    post_desc = "N"
    portal_user = "user"
    portal_pwd = "password"
    portal_url = "portal_url"
    
    with_post = "NO_POST"
    
    if post_desc == "Y":
        with_post = "POST"
        
    workspace = url 

    arcpy.env.workspace = workspace
    arcpy.SignInToPortal(portal_url, portal_user, portal_pwd)
    
    reconcileLog = r'C:\NewFolder\Reconcile_Log.txt'


    result = arcpy.ReconcileVersions_management(workspace, 
                                "ALL_VERSIONS", 
                                "SDE.DEFAULT", 
                                version, 
                                "LOCK_ACQUIRED", 
                                "ABORT_CONFLICTS", 
                                "BY_OBJECT", 
                                "FAVOR_EDIT_VERSION", 
                                with_post, 
                                "KEEP_VERSION", 
                                reconcileLog)
    
    if len(result.getMessages(1)) &amp;gt; 0 :                
        arcpy.AddWarning ((result.getMessages(1)))
    else:
        arcpy.AddMessage ("Version reconciled successfully.")

if __name__ == "__main__":
    main()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did google about this error and there's no solution. And also the return message is very limited as it only shows &lt;STRONG&gt;error&amp;nbsp;starting editing on version.&amp;nbsp;&lt;/STRONG&gt;Anyone have encounter this problem? Or have any solution about this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for any suggestions!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 07:05:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/publish-reconcile-branch-version-using-arcpy-as/m-p/1185362#M7719</guid>
      <dc:creator>CSM</dc:creator>
      <dc:date>2022-06-23T07:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Publish reconcile branch version using ArcPy as web tool return editing error result</title>
      <link>https://community.esri.com/t5/geodatabase-questions/publish-reconcile-branch-version-using-arcpy-as/m-p/1209817#M7863</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/597112"&gt;@CSM&lt;/a&gt;&amp;nbsp;, We are also facing the same issue. Did you find any solution? Please share.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 12:34:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/publish-reconcile-branch-version-using-arcpy-as/m-p/1209817#M7863</guid>
      <dc:creator>SU00861536</dc:creator>
      <dc:date>2022-09-06T12:34:41Z</dc:date>
    </item>
  </channel>
</rss>

