<?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 Error 00582 during data synchronization in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/error-00582-during-data-synchronization/m-p/466452#M6510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp; created a script and tool for the following to share with the community.&amp;nbsp;&amp;nbsp; However I get the following error when I run it from a python IDE&amp;nbsp;&amp;nbsp; Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;BR /&gt;&amp;nbsp; File "Z:\replicationscript\replicationScript.py", line 31, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB1, sync_direction)&lt;BR /&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.6\ArcPy\arcpy\management.py", line 1466, in SynchronizeChanges&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;BR /&gt;ExecuteError: ERROR 000582: Error occurred during execution.&lt;/P&gt;&lt;P&gt;When I run the script in in a python window in ArcGIS, it works. &amp;nbsp; Thinking that, I created a tool where I can add in the different SDE connections in but get the same result. &amp;nbsp; However like the usual ESRI documentation, there is not much on it and what I noticed in ArcGIS that it had to do with the Global ID setup and copying the replica to the server which I don't think it is the case because there would probably be issues when I ran it in the python window in ArcGIS &amp;nbsp; Please let me know what I am doing wrong,&amp;nbsp; I&amp;nbsp; have copied in my script&amp;nbsp; that is not associated with the tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy, os&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sdeConnection = "Database Connections\\GTI_PUB_UTM_editor_dbst01.sde"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replicaGDB1 = "\\\\executive\\dfs\\DOT DOH D1 Shared\\GIS Database\\GTI_PUB_UTM.gdb"&lt;BR /&gt;replicaGDB2 = "\\\\executive\\dfs\\DOT DOH D9 Shared\\GIS Database\\GTI_PUB_UTM.gdb"&lt;BR /&gt;replicaGDB3 = "\\\\executive\\dfs\\DOT DOH D10 Shared\\GIS Database\\GTI_PUB_UTM.gdb"&lt;BR /&gt;replicaGDB4 = "C:\\Users\\e087607\\Desktop\\d2\\GTI_PUB_UTM.gdb"&lt;BR /&gt;sync_direction = "FROM_GEODATABASE1_TO_2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Block all connections&lt;BR /&gt;arcpy.AcceptConnections(sdeConnection, False)&lt;BR /&gt;#&amp;nbsp; Find Replica names&lt;BR /&gt;for repName in arcpy.da.ListReplicas(sdeConnection):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListFC = repName.name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Synchronize Changes with district 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ListFC == "DBO.D1_Replica":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_replica = ListFC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB1, sync_direction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Data has been replicated to District 1 GTI_PUB_UTM"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Synchronize Changes to District 9&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif ListFC == "DBO.d9replica":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_replica = ListFC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB2, sync_direction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Data has been replicated to District 9 GTI_PUB_UTM"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Synchronize Changes to District 10&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif ListFC == "DBO.D10_Replica":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_replica = ListFC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB3, sync_direction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Data has been replicated to District 10 GTI_PUB_UTM"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Synchronize Changes to District test geodatabase&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif ListFC == "DBO.test_replica1":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_replica = ListFC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB4, sync_direction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Data has been replicated to D2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#&amp;nbsp; Reconnect Users&lt;BR /&gt;arcpy.AcceptConnections(sdeConnection, True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2019 16:04:10 GMT</pubDate>
    <dc:creator>AndrewDolch2</dc:creator>
    <dc:date>2019-01-31T16:04:10Z</dc:date>
    <item>
      <title>Error 00582 during data synchronization</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/error-00582-during-data-synchronization/m-p/466452#M6510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have&amp;nbsp; created a script and tool for the following to share with the community.&amp;nbsp;&amp;nbsp; However I get the following error when I run it from a python IDE&amp;nbsp;&amp;nbsp; Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "C:\Python27\ArcGIS10.6\Lib\site-packages\Pythonwin\pywin\framework\scriptutils.py", line 326, in RunScript&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exec codeObject in __main__.__dict__&lt;BR /&gt;&amp;nbsp; File "Z:\replicationscript\replicationScript.py", line 31, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB1, sync_direction)&lt;BR /&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.6\ArcPy\arcpy\management.py", line 1466, in SynchronizeChanges&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;BR /&gt;ExecuteError: ERROR 000582: Error occurred during execution.&lt;/P&gt;&lt;P&gt;When I run the script in in a python window in ArcGIS, it works. &amp;nbsp; Thinking that, I created a tool where I can add in the different SDE connections in but get the same result. &amp;nbsp; However like the usual ESRI documentation, there is not much on it and what I noticed in ArcGIS that it had to do with the Global ID setup and copying the replica to the server which I don't think it is the case because there would probably be issues when I ran it in the python window in ArcGIS &amp;nbsp; Please let me know what I am doing wrong,&amp;nbsp; I&amp;nbsp; have copied in my script&amp;nbsp; that is not associated with the tool&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy, os&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;sdeConnection = "Database Connections\\GTI_PUB_UTM_editor_dbst01.sde"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replicaGDB1 = "\\\\executive\\dfs\\DOT DOH D1 Shared\\GIS Database\\GTI_PUB_UTM.gdb"&lt;BR /&gt;replicaGDB2 = "\\\\executive\\dfs\\DOT DOH D9 Shared\\GIS Database\\GTI_PUB_UTM.gdb"&lt;BR /&gt;replicaGDB3 = "\\\\executive\\dfs\\DOT DOH D10 Shared\\GIS Database\\GTI_PUB_UTM.gdb"&lt;BR /&gt;replicaGDB4 = "C:\\Users\\e087607\\Desktop\\d2\\GTI_PUB_UTM.gdb"&lt;BR /&gt;sync_direction = "FROM_GEODATABASE1_TO_2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Block all connections&lt;BR /&gt;arcpy.AcceptConnections(sdeConnection, False)&lt;BR /&gt;#&amp;nbsp; Find Replica names&lt;BR /&gt;for repName in arcpy.da.ListReplicas(sdeConnection):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ListFC = repName.name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Synchronize Changes with district 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if ListFC == "DBO.D1_Replica":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_replica = ListFC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB1, sync_direction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Data has been replicated to District 1 GTI_PUB_UTM"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Synchronize Changes to District 9&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif ListFC == "DBO.d9replica":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_replica = ListFC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB2, sync_direction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Data has been replicated to District 9 GTI_PUB_UTM"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Synchronize Changes to District 10&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif ListFC == "DBO.D10_Replica":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_replica = ListFC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB3, sync_direction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Data has been replicated to District 10 GTI_PUB_UTM"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp; Synchronize Changes to District test geodatabase&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif ListFC == "DBO.test_replica1":&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_replica = ListFC&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SynchronizeChanges_management(sdeConnection, in_replica, replicaGDB4, sync_direction)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Data has been replicated to D2"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#&amp;nbsp; Reconnect Users&lt;BR /&gt;arcpy.AcceptConnections(sdeConnection, True)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jan 2019 16:04:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/error-00582-during-data-synchronization/m-p/466452#M6510</guid>
      <dc:creator>AndrewDolch2</dc:creator>
      <dc:date>2019-01-31T16:04:10Z</dc:date>
    </item>
  </channel>
</rss>

