<?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 arcpy.CreateReplica_management in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-createreplica-management/m-p/744710#M24454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm doing a script to automate the creation of replicas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I do it in the model builder working properly which is reasonable as it works on an open mxd and references to layers are easier to handle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to run the same with python from the command line I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 708, in CreateReplica&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&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;file attached &lt;/SPAN&gt;&lt;STRONG&gt;createReplica_v1.0.py&lt;/STRONG&gt;&lt;SPAN&gt; with the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem would be in the parameter "tratamiento" (is a layer) of "arcpy.CreateReplica_management"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even the selection of the "location " have verified that all is well.&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, 05 Apr 2011 00:11:45 GMT</pubDate>
    <dc:creator>AlvaroMoreno</dc:creator>
    <dc:date>2011-04-05T00:11:45Z</dc:date>
    <item>
      <title>arcpy.CreateReplica_management</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-createreplica-management/m-p/744710#M24454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm doing a script to automate the creation of replicas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I do it in the model builder working properly which is reasonable as it works on an open mxd and references to layers are easier to handle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to run the same with python from the command line I get the following error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.0\arcpy\arcpy\management.py", line 708, in CreateReplica&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&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;file attached &lt;/SPAN&gt;&lt;STRONG&gt;createReplica_v1.0.py&lt;/STRONG&gt;&lt;SPAN&gt; with the code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem would be in the parameter "tratamiento" (is a layer) of "arcpy.CreateReplica_management"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Even the selection of the "location " have verified that all is well.&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, 05 Apr 2011 00:11:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-createreplica-management/m-p/744710#M24454</guid>
      <dc:creator>AlvaroMoreno</dc:creator>
      <dc:date>2011-04-05T00:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateReplica_management</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-createreplica-management/m-p/744711#M24455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe that the problem you are encountering is because of this line in your script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;DB__VERSION_DBO_DEFAULT___2_ = "C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\DB.mdf"&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;In your script you are specifying the SQL Server data file for your geodatabase. This will not work in ArcGIS.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When specifying the output geodatabase you need to use the database server connection or the database connection to your geodatabase usually this will be something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Database Server:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;r'Database Servers\RUSSELL_SQLEXPRESS.gds\QADatabase (VERSION:DBO.DEFAULT)'&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Database Connection:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;r'Database Connections\production.sde'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 14:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-createreplica-management/m-p/744711#M24455</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2011-04-05T14:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.CreateReplica_management</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/arcpy-createreplica-management/m-p/744712#M24456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks for your answer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;change this line:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;DB__VERSION_DBO_DEFAULT___2_ = "C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\DB.mdf"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;to&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;DB__VERSION_DBO_DEFAULT___2_ = "Database Servers\\PC11443_SQLEXPRESS.gds\\DB (VERSION:DBO.DEFAULT)"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and get the folowing error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-24550: signal received: Unhandled exception: Code=c0000005 Flags=0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_kpedbg_dmp_stack()+231&amp;lt;-_kpeDbgCrash()+51&amp;lt;-_kpeDbgSignalHandler()+130&amp;lt;-_skgesig_Win_UnhandledExceptionFilter()+140&amp;lt;-76A50045&amp;lt;-773B21D5&amp;lt;-77379EA0&amp;lt;-00000000&amp;lt;-5B3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AEB97&amp;lt;-5B3ACF6B&amp;lt;-6AC00363&amp;lt;-695636D3&amp;lt;-6955AC10&amp;lt;-6E3E36F0&amp;lt;-6EE6A83E&amp;lt;-566E6633&amp;lt;-1E012C7B&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 15:38:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/arcpy-createreplica-management/m-p/744712#M24456</guid>
      <dc:creator>AlvaroMoreno</dc:creator>
      <dc:date>2011-04-05T15:38:24Z</dc:date>
    </item>
  </channel>
</rss>

