<?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: IGeoDataServer.CreateReplica How to download directly to a file geodatabase in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/igeodataserver-createreplica-how-to-download/m-p/241440#M6241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;EM&gt;IGeoDataServer.CreateReplica(...)&lt;/EM&gt; if you need to do replication in a "disconnected environment", where your parent database can make NO connection to your replica database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to replicate your data DIRECTLY into a replica (file) geodatabase you need to switch to a "connected environment". In that case you have to make use of the &lt;EM&gt;IReplicationAgent&lt;/EM&gt; Interface from the &lt;EM&gt;ESRI.ArcGIS.GeoDatabaseDistributed&lt;/EM&gt; module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IGeoDataServer parentGeoDataServer = ...&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IWorkspace myFileGdbWorkspace = ...&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IGeoDataServer childGeoDataServer = ... // init from myFileGdbWorkspace ...&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IReplicationAgent replicationAgent = new ReplicationAgentClass();&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IGPReplicaOptions replicaOptions = ...&lt;BR /&gt;replicationAgent.CreateReplica(&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; parentGeoDataServer.DefaultWorkingVersion,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; parentGeoDataServer,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; childGeoDataServer, ...&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2017 07:17:12 GMT</pubDate>
    <dc:creator>KarlHuber</dc:creator>
    <dc:date>2017-04-20T07:17:12Z</dc:date>
    <item>
      <title>IGeoDataServer.CreateReplica How to download directly to a file geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/igeodataserver-createreplica-how-to-download/m-p/241439#M6240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a disconnected checkout replica using CreateReplica&amp;nbsp;on my PARENT Geodataserver, then Importing into a CHILD geodatabase. &amp;nbsp;My customers will be replicating from my PARENT Geodatabase to locations worldwide and I was wondering if there is a more efficient way of doing this. &amp;nbsp;I have went through every option available for CreateReplica and cannot find a more efficient way then this below. &amp;nbsp;It seems to take forever for the import to happen. &amp;nbsp;It takes me over a minute and I am located in the same space as the server itself. &amp;nbsp;I have had one user timeout at ten minutes, so I thought I would take another look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;//Create the Replica on the Server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;IGDSData gsdata = ParentGeoDataServer.CreateReplica("", ReplicaName.ToUpper(), gpReplicaDesc, replicaOptions, replicaExportOptions, esriGDSTransportType.esriGDSTransportTypeEmbedded);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #99cc00;"&gt;//Import the Replica&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;ChildGeoDataServer.ImportData(gsdata, esriGDSImportFormat.esriGDSImportFormatFileGDB);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to perform this action in the Help for&amp;nbsp;IGeoDataServer.CreateReplica Method. &amp;nbsp;I have searched the ENTIRE internet trying to do this documentation here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;"For check-out replicas, you can also choose to replicate directly to a&amp;nbsp;file geodatabase&amp;nbsp;or personal&amp;nbsp;geodatabase.&amp;nbsp;Here the output is the replica geodatabase and therefore no import&amp;nbsp;is required."&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I could just skip the import if somehow I could cast the IGDSData object to my ChildGeoDataServer (File GDB) and not have to do that long import process.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Apr 2017 21:22:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/igeodataserver-createreplica-how-to-download/m-p/241439#M6240</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2017-04-18T21:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: IGeoDataServer.CreateReplica How to download directly to a file geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/igeodataserver-createreplica-how-to-download/m-p/241440#M6241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use &lt;EM&gt;IGeoDataServer.CreateReplica(...)&lt;/EM&gt; if you need to do replication in a "disconnected environment", where your parent database can make NO connection to your replica database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to replicate your data DIRECTLY into a replica (file) geodatabase you need to switch to a "connected environment". In that case you have to make use of the &lt;EM&gt;IReplicationAgent&lt;/EM&gt; Interface from the &lt;EM&gt;ESRI.ArcGIS.GeoDatabaseDistributed&lt;/EM&gt; module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IGeoDataServer parentGeoDataServer = ...&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IWorkspace myFileGdbWorkspace = ...&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IGeoDataServer childGeoDataServer = ... // init from myFileGdbWorkspace ...&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IReplicationAgent replicationAgent = new ReplicationAgentClass();&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;IGPReplicaOptions replicaOptions = ...&lt;BR /&gt;replicationAgent.CreateReplica(&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; parentGeoDataServer.DefaultWorkingVersion,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; parentGeoDataServer,&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;&amp;nbsp; childGeoDataServer, ...&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 07:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/igeodataserver-createreplica-how-to-download/m-p/241440#M6241</guid>
      <dc:creator>KarlHuber</dc:creator>
      <dc:date>2017-04-20T07:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: IGeoDataServer.CreateReplica How to download directly to a file geodatabase</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/igeodataserver-createreplica-how-to-download/m-p/241441#M6242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karl,&lt;/P&gt;&lt;P&gt;We originally did use the ReplicationAgent in the connected environment but ran into a number of issues with the connectivity and with the processes basically failing during transfer. &amp;nbsp;We think the replication agent was also slower than the "disconnected download and import". &amp;nbsp;I am downloading a Replica with about 14 feature classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I can't directly download to my Child File Geodatabase like I want, &lt;SPAN style="color: #0000ff;"&gt;is there a way to do download and import each feauture class of the parent replica to my File Geodatabase individually instead of collectively&lt;/SPAN&gt;. &amp;nbsp;I have noticed that when I take a subset of my replica the speed is greatly improved. &amp;nbsp;I feel that the Import function itself is taking so long to initiate the import. &amp;nbsp;I say this because the ReplicaLog always shows the initial Feature class taking a very long time, and the subsequent Feature Classes of the Replica import rather quickly. &amp;nbsp;Here is the first couple lines of my ReplicaLog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ReplicaMsg time='4/14/2017 10:54:55 AM' type='LOG_MESSAGE_TYPE_INFO3' code='102010' elapsed='&lt;SPAN style="color: #ff0000;"&gt;311.767000 seconds&lt;/SPAN&gt;'&amp;lt;/ReplicaMsg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ReplicaMsg time='4/14/2017 10:54:55 AM' type='LOG_MESSAGE_TYPE_INFO3' code='102011' elapsed='&lt;SPAN style="color: #00ff00;"&gt;0.022000 seconds&lt;/SPAN&gt;'&amp;lt;/ReplicaMsg&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;ReplicaMsg time='4/14/2017 10:54:56 AM' type='LOG_MESSAGE_TYPE_INFO3' code='102010' elapsed='&lt;SPAN style="color: #00ff00;"&gt;0.691000 seconds&lt;/SPAN&gt;'&amp;lt;/ReplicaMsg&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be great. &amp;nbsp;We are starting up my Addin in some worldwide locations and I feel the import speed could be a problem for us. &amp;nbsp;I don't know if there is any ESRI TCP/IP Recommendations that our network guys might be able to employ for this GEODataServiceURL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2017 18:08:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/igeodataserver-createreplica-how-to-download/m-p/241441#M6242</guid>
      <dc:creator>MKa</dc:creator>
      <dc:date>2017-04-20T18:08:28Z</dc:date>
    </item>
  </channel>
</rss>

