<?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: Create replica problem-produces exception in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678842#M52621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply and ideas. Unfortunately, the results are the same. I wish it were that easy! I have tried that before and included the archiving because I was going to experiment with using archiving and comparing to not using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a theory that in trying to reuse the same replica name (after unregistering from both parent and child and deleting the child gdb), that possibly something behind-the-scenes was not getting deleted or cleared properly when the Unregister happened. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried it with a brand new, never before used replica name and the above suggestion of taking off the last four parameters, to no avail. I agree that the documentation is far from complete and I wasn't sure if the archiving flag was optional or not. The default is not to use it anyway, so I just left it off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried everything I could think of. Curious that it did work going from our Workgroup SDE server to file geodatabases on my C: Drive using a new replica name, but if I unregister and delete the output/child gdbs and try again, it will fail with ERROR 000582. Also, I just tried with a new and unique replica name from our Workgroup SDE to the external NAS drive (connected as UNC path with admin credentials) and got the same ERROR 000582. It seems like I have tried every possible thing that could be the issue and am no closer to figuring out what is causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to tell why it's failing at this point?:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 800, in CreateReplica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.CreateReplica_management(*gp_fixargs((in_data, in_type, out_geodatabase, out_name, access_type, initial_data_sender, expand_feature_classes_and_tables, reuse_schema, get_related_data, geometry_features, archiving), True)))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 498, in &amp;lt;lambda&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 000582: Error occurred during execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 31 Oct 2015 00:44:32 GMT</pubDate>
    <dc:creator>ChristalHigdon</dc:creator>
    <dc:date>2015-10-31T00:44:32Z</dc:date>
    <item>
      <title>Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678831#M52610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, I don't seem to be getting the CreateReplica_management call to work. It produces an error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting.ExecuteError: ERROR 000582: Error occurred during execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Failed to execute (CreateReplica)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code being used is below. Any help here would be much appreciate by this newbie python person... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import arcpy
from arcpy import env
import arcgisscripting

env.workspace = "C:\Documents and Settings\longs\Application Data\ESRI\Desktop10.0\ArcCatalog\SpatialVegMgmt_NT38.sde.DEFAULT"

tableset = "Actions, BioAgents, Density, Directions, Inspectors, MethodContacted, ROW, Units, weedFollowups, Weeds, WeedTypeRelate, WeedTypes, VegetationMgmt.GIS_SDE.weedIncidents"
replica_type = "CHECK_OUT"
output_workspace = "c:\usr_proj\ArcGIS\FileGeodatabases\Weed\Mark\WeedIncidents_FileGDB.gdb"
replica_name = "MarkReplica"
access_type = "FULL"
initial_sender = "PARENT_DATA_SENDER"
expand = "USE_DEFAULTS"
reuse_schema = "DO_NOT_REUSE"
get_related = "GET_RELATED"

arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.Actions", "Actions", "AID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.WEEDFOLLOWUPS", "WEEDFOLLOWUPS", "ObjectID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.Density", "Density", "DID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.Directions", "Directions", "GDID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.Inspectors", "Inspectors", "IID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.MethodContacted", "MethodContacted", "MCID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.ROW", "ROW", "ROWID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.Units", "Units", "UID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.Weeds", "Weeds", "WID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.WeedTypeRelate", "WeedTypeRelate", "ObjectID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.WeedTypes", "WeedTypes", "WTID &amp;gt; 0")
arcpy.MakeTableView_management("Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.BioAgents", "BioAgents", "BAID &amp;gt; 0")

# Execute CreateReplica
arcpy.CreateReplica_management(tableset, replica_type, output_workspace, replica_name, access_type, initial_sender, expand, reuse_schema, get_related)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2012 16:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678831#M52610</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2012-06-05T16:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678832#M52611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you running Windows 7 64-bit?&amp;nbsp; I found a bug regarding this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM073906:&amp;nbsp; Cannot run Create Replica as a script on a Windows 7 64-bit machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One workaround that may help is running the python syntax of the script through the Python window within ArcMap.&amp;nbsp; Running the 'Create Replica' through the Python window or within model builder should not fail.&amp;nbsp; I would also recommend contacting Tech Support to add your customer information to this bug number.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:28:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678832#M52611</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-06-06T11:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678833#M52612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your reply. No, my machine is an XP, sp3 machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this bug still apply and should I still contact Tech Support?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We need to automate this in AcrGIS in an overnight process so it kind of has to work from a script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 17:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678833#M52612</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2012-06-06T17:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678834#M52613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The bug doesn't state that it will fail for Windows XP SP3.&amp;nbsp; I would try the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1.&amp;nbsp; Add the 'Create Replica' tool to a Model Builder and run the model and see if it succeeds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; If the model succeeds, delete the replica from both databases, and delete the feature class from the Child Geodatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; Export the model to a script (inside Model Builder:&amp;nbsp; Model &amp;gt; Export &amp;gt; To Python Script)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.&amp;nbsp; Attempt to execute the script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the script fails, I would recommend contacting Tech Support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jun 2012 18:41:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678834#M52613</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2012-06-06T18:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678835#M52614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that helped a lot. My table list wasn't separated the way that model builder separated it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the table list needed to be as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
tableset = "Database Connections\SpatialVegMgmt_NT38.sde\VegetationMgmt.owner.weedIncidents;Actions;BioAgents;Density;Directions;Inspectors;MethodContacted;ROW;Units;weedFollowups;Weeds;WeedTypeRelate;WeedTypes;FollowUpActivities"
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:36:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678835#M52614</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2021-12-12T04:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678836#M52615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;&lt;BR /&gt;Are you running Windows 7 64-bit?&amp;nbsp; I found a bug regarding this:&lt;BR /&gt;&lt;BR /&gt;NIM073906:&amp;nbsp; Cannot run Create Replica as a script on a Windows 7 64-bit machine.&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am experiencing this issue on a Windows 7 64-bit machine. As this bug was found in version 10.0 SP2 and I am running version 10.2, any idea when this bug will be fixed? I have 45 geodatabases to create replicas for and doing it outside of a script (manually through ArcToolbox or ArcMap, which works) is not really an option.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 19:07:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678836#M52615</guid>
      <dc:creator>ChristalHigdon</dc:creator>
      <dc:date>2014-06-17T19:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678837#M52616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am experiencing this issue on a Windows 7 64-bit machine. As this bug was found in version 10.0 SP2 and I am running version 10.2, any idea when this bug will be fixed? I have 45 geodatabases to create replicas for and doing it outside of a script (manually through ArcToolbox or ArcMap, which works) is not really an option.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You will have to use python 32 bit to make this happen. I assume you are creating personal geodatabases, MS Access, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you test this on the machine you are going to run against, from the command line, it should work (if you have ArcGIS desktop installed also).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
C:\Python27\ArcGIS10.1\python.exe "locationAndNameOfYourScript" ArgumentsForYourScript
Example:
C:\Python27\ArcGIS10.1\python.exe \\oly\gisshare\Projects\con\Depts\19864\WeedTools\scripts10_1\production\NightlySyncReplica.py -s SQLGIS1 -x rep
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678837#M52616</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2021-12-12T04:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678838#M52617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am experiencing this issue on a Windows 7 64-bit machine. As this bug was found in version 10.0 SP2 and I am running version 10.2, any idea when this bug will be fixed? I have 45 geodatabases to create replicas for and doing it outside of a script (manually through ArcToolbox or ArcMap, which works) is not really an option.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could not reproduce this at 10.2.2.&amp;nbsp; I successfully created a one-way replica from a SQL Server enterprise geodatabase to a File Geodatabase using a script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678838#M52617</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-06-17T20:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678839#M52618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I could not reproduce this at 10.2.2.&amp;nbsp; I successfully created a one-way replica from a SQL Server enterprise geodatabase to a File Geodatabase using a script.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not the file Geodatabase that's the problem. It's the personal geodatabase. After 10.0, personal geodatabases are not supported in ArcGIS server 64 bit. They continue to be supported in Desktop however. To create personal geodatabases on 64 bit server, Install Desktop also and use the method I quoted above. It will work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, we have not been able to get replication working properly using the file geodatabase. It does, however, continue to work using personal geodatabases, for whatever reason.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jun 2014 20:47:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678839#M52618</guid>
      <dc:creator>SteveLong</dc:creator>
      <dc:date>2014-06-17T20:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678840#M52619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still having trouble with this. I am using:&lt;/P&gt;&lt;P&gt;ArcGIS 10.2.2 with Python 2.7 (installed through ArcGIS)&lt;/P&gt;&lt;P&gt;Windows 7 64-bit machine&lt;/P&gt;&lt;P&gt;SQL Server Express 2012 (Workgroup SDE, NOT Enterprise)&lt;/P&gt;&lt;P&gt;Pythonwin site-package for Python 2.7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the &lt;EM&gt;32-bit&lt;/EM&gt; Python interpreter:&lt;/P&gt;&lt;P&gt;PythonWin 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the Traceback from the arcpy.CreateReplica_management line in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\WorkSpace\tools\scripts\CreateTNF1WayReplica\R10Create1wayReplica2fGDBNAS_10_2.py", line 157, in makeReplica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CreateReplica_management(featureList, "ONE_WAY_REPLICA", outGDB, replicaName, "FULL", "PARENT_DATA_SENDER", "ALL_ROWS", "", "", "", "DO_NOT_USE_ARCHIVING")&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 803&lt;/STRONG&gt;, in CreateReplica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 000582: Error occurred during execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I stepped through in the debugger and stepped into the management.py script and also into the _base.py from there. Here is the point that the error occurs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 800, in CreateReplica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.CreateReplica_management(*gp_fixargs((in_data, in_type, out_geodatabase, out_name, access_type, initial_data_sender, expand_feature_classes_and_tables, reuse_schema, get_related_data, geometry_features, archiving), True)))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 498, in &amp;lt;lambda&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 000582: Error occurred during execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I stepped through the gp_fixargs and at line 40 of _base.py, my args turned into new_args as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;['"C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.ProjectArea;C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.TMCompartment;C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.ActivityPoint;C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.CoverType;C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.ValueComparisonUnit;C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.ActivityPolygon;C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.ActivityLine;C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.CoverType_Topology;C:\\WorkSpace\\temp\\CreateReplicas\\inputs\\Activities.sde\\Activities.DBO.Activities\\Activities.DBO.VCU_TMComp_Topology"', 'ONE_WAY_REPLICA', '\\\\199.131.000.000\\TNFRef\\GISData\\Activities.gdb', 'Activities_1WayRO2NAS', 'FULL', 'PARENT_DATA_SENDER', 'ALL_ROWS', '', '', '', 'DO_NOT_USE_ARCHIVING']&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every once in a while I can get this to work but can't find rhyme or reason as to why it works every once in a while. I have tried the output file geodatabase location on my C: drive ('C:\\WorkSpace\\temp\\CreateReplicas\\outputs\\gdbs\\Activities.gdb'), on the external share mapped as UNC path (as above: '\\\\199.131.000.000\\TNFRef\\GISData\\Activities.gdb'), and mapped as a drive letter ('Y:\\GISData\\Activities.gdb'), all with the same results (Error 00582).&lt;/P&gt;&lt;P&gt;[The IP address has been changed to 0s on purpose for posting here, it is the real IP address in the script.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the code block from my script, with inputs being:&lt;/P&gt;&lt;P&gt;parentGDS = Database connection .sde file on C: drive that points to our Workgroup SDE instance for the database in the list of databases (in this case, "Activities")&lt;/P&gt;&lt;P&gt;GDBPath = the output location for the file GDB to be stored. I have tried local C: drive and our NAS drive as UNC and mapped as a drive letter&lt;/P&gt;&lt;P&gt;gdbName = the name of the database in the list. In this case "Activities"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the output geodatabase (in this case Activities.gdb) does not exist, it is created before getting to the create replica part, using:&lt;/P&gt;&lt;P&gt;if not arcpy.Exists(outGDBPath + os.sep + gdbName):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; createTargetGDB(outGDBPath,gdbName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried running it in ArcMap, using the Create Replica tool in Toolbox and got the following:&lt;/P&gt;&lt;P&gt;Executing: CreateReplica Activities.DBO.CoverType_Topology;Activities.DBO.VCU_TMComp_Topology;ActivityPoint;ActivityLine;ProjectArea;Activities.DBO.TMCompartment;CoverType;Activities.DBO.ValueComparisonUnit;ActivityPolygon ONE_WAY_REPLICA C:\WorkSpace\temp\CreateReplicas\outputs\gdbs\Activities.gdb ArcMapToolboxTest FULL PARENT_DATA_SENDER ALL_ROWS DO_NOT_REUSE GET_RELATED # DO_NOT_USE_ARCHIVING&lt;/P&gt;&lt;P&gt;Start Time: Wed Oct 28 15:12:27 2015&lt;/P&gt;&lt;P&gt;Executing CreateReplica...&lt;/P&gt;&lt;P&gt;ERROR 000582: Error occurred during execution.&lt;/P&gt;&lt;P&gt;Failed to execute (CreateReplica).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to tell which input parameter is causing the error? Could this still be a bug in the GP tool? I'm about to go to ArcObjects and write a C#.NET executable to do the replica creation like I used to before I thought Bug NIM-073906 was fixed (&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDczOTA2"&gt;http://support.esri.com/en/bugs/nimbus/TklNMDczOTA2&lt;/A&gt;).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 23:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678840#M52619</guid>
      <dc:creator>ChristalHigdon</dc:creator>
      <dc:date>2015-10-28T23:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678841#M52620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-replica.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Create Replica &lt;/A&gt;tool has more usage footnotes, possibly the most, that I have seen for a tool.&amp;nbsp; Some of the usage notes get into the weeds, e.g., "data that you wish to replicate must be versioned, but not with the option to move edits to base."&amp;nbsp; Given there are 16 notes and sub-notes, it never hurts to go back and double check them all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beyond verifying all of the conditions to run the tool have been met, the specific error (000582) can crop up when the validation process for a tool's parameter values fails.&amp;nbsp; Let's look at one of your calls to the tool:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#include parameter names and requirement status as comments
arcpy.CreateReplica_management(featureList,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # in_data (required)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ONE_WAY_REPLICA",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # in_type (required)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outGDB,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # out_geodatabase (required)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replicaName,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # out_name (required)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FULL",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # access_type (optional)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PARENT_DATA_SENDER",&amp;nbsp;&amp;nbsp;&amp;nbsp; # initial_data_sender (optional)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ALL_ROWS",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # expand_feature_classes_and_tables (opt)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # reuse_schema (optional)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # get_related_data (optional)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # geometry_features (optional)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "DO_NOT_USE_ARCHIVING")&amp;nbsp; # archiving (optional ?)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While most geoprocessing tools include the default argument for optional parameters in the syntax table, the Create Replica documentation only provides that information for half of the optional parameters, which is not only unfortunate but a documentation bug in my eyes.&amp;nbsp; What is even more odd, and another documentation bug, is that &lt;SPAN style="font-family: courier new,courier;"&gt;archiving&lt;/SPAN&gt; isn't stated to be optional but yet it is at the end of the parameter list (&lt;EM&gt;required parameters can't come after optional ones)&lt;/EM&gt; and a default argument is stated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Getting back to the example at hand, I strongly discourage passing empty strings to optional parameters.&amp;nbsp; Unless the default argument is an empty string or the documentation states empty strings are handled in a special way, passing an empty string will lead to the code/tool to bypass the default argument and use the empty string instead.&amp;nbsp; It could very well be that passing &lt;SPAN style="font-family: courier new,courier;"&gt;""&lt;/SPAN&gt; to &lt;SPAN style="font-family: courier new,courier;"&gt;reuse_schema&lt;/SPAN&gt; is causing the issue because the two arguments that parameter accepts are &lt;SPAN style="font-family: courier new,courier;"&gt;"DO_NOT_REUSE"&lt;/SPAN&gt; and &lt;SPAN style="font-family: courier new,courier;"&gt;"REUSE"&lt;/SPAN&gt; .&amp;nbsp; Since it looks like you want defaults for the last 4 parameters, what is the result of trying the following:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;#include parameter names and requirement status as comments
arcpy.CreateReplica_management(featureList,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # in_data (required)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ONE_WAY_REPLICA",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # in_type (required)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outGDB,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # out_geodatabase (required)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; replicaName,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # out_name (required)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "FULL",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # access_type (optional)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PARENT_DATA_SENDER",&amp;nbsp;&amp;nbsp;&amp;nbsp; # initial_data_sender (optional)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ALL_ROWS")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # expand_feature_classes_and_tables (opt)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678841#M52620</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T04:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678842#M52621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply and ideas. Unfortunately, the results are the same. I wish it were that easy! I have tried that before and included the archiving because I was going to experiment with using archiving and comparing to not using it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a theory that in trying to reuse the same replica name (after unregistering from both parent and child and deleting the child gdb), that possibly something behind-the-scenes was not getting deleted or cleared properly when the Unregister happened. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I tried it with a brand new, never before used replica name and the above suggestion of taking off the last four parameters, to no avail. I agree that the documentation is far from complete and I wasn't sure if the archiving flag was optional or not. The default is not to use it anyway, so I just left it off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried everything I could think of. Curious that it did work going from our Workgroup SDE server to file geodatabases on my C: Drive using a new replica name, but if I unregister and delete the output/child gdbs and try again, it will fail with ERROR 000582. Also, I just tried with a new and unique replica name from our Workgroup SDE to the external NAS drive (connected as UNC path with admin credentials) and got the same ERROR 000582. It seems like I have tried every possible thing that could be the issue and am no closer to figuring out what is causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a way to tell why it's failing at this point?:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 800, in CreateReplica&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retval = convertArcObjectToPythonObject(gp.CreateReplica_management(*gp_fixargs((in_data, in_type, out_geodatabase, out_name, access_type, initial_data_sender, expand_feature_classes_and_tables, reuse_schema, get_related_data, geometry_features, archiving), True)))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\geoprocessing\_base.py", line 498, in &amp;lt;lambda&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return lambda *args: val(*gp_fixargs(args, True))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 000582: Error occurred during execution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 00:44:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678842#M52621</guid>
      <dc:creator>ChristalHigdon</dc:creator>
      <dc:date>2015-10-31T00:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678843#M52622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Often times, the error messages from doing the replication in ArcMap using the normal GUI tools provide better, or at least different, information.&amp;nbsp; If you try to replicate (no pun intended) your example workflow through the GUI, does it succeed or fail?&amp;nbsp; If it fails, what error messages does it give?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Oct 2015 01:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678843#M52622</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-10-31T01:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create replica problem-produces exception</title>
      <link>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678844#M52623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It fails. The message is Cannot acquire a lock [GDB_Items] and fails. (screen shot attached)&lt;/P&gt;&lt;P&gt;I went back to my script and tested for locks... none of the input datasets or feature classes had locks on them, but the newly created output file geodatabase did, even though when I went into the folder, there were no '.lock' files in there. I have tried creating it through ArcCatalog ahead of time, and then closing Catalog, as well as creating the output gdb in the 'browse to' dialog in the wizard.&lt;/P&gt;&lt;P&gt;I have tried through the Distributed Geodatabase toolbar in ArcMap and gotten the attached error.&lt;/P&gt;&lt;P&gt;I have tried running the CreateReplica tool through ArcToolbox, and gotten error 000582.&lt;/P&gt;&lt;P&gt;I have tried running CreateReplica through the Python window within ArcMap, failed with error 000582.&lt;/P&gt;&lt;P&gt;I have tried running my Python Script through PythonWin (like usual), failed with error 000582.&lt;/P&gt;&lt;P&gt;I have tried running my Python script through the python interpreter via command line, failed with error 000582.&lt;/P&gt;&lt;P&gt;I have tried creating the output geodatabase on our shared NAS drive (ultimately the goal), failed with error 000582.&lt;/P&gt;&lt;P&gt;I have tried creating the output geodatabase on my C: drive, and sometimes get error 000582 and sometimes (when I make a new replica name that has never before been used) it occasionally works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just wondering if anyone else had the same problems going from Workgroup SDE (SQL Server Express 2012) one way to file geodatabase and could possibly offer a solution. I'm about out of ideas to try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 22:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-replica-problem-produces-exception/m-p/678844#M52623</guid>
      <dc:creator>ChristalHigdon</dc:creator>
      <dc:date>2015-11-03T22:57:54Z</dc:date>
    </item>
  </channel>
</rss>

