<?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: SDE compression and One way replication in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536731#M30413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot advise on deleting system versions without investigation. I forgot to mention a possible workaround at 9.3.1: after you've synchronized your changes (even with python), can you try synchronizing again, with no additional edits. This should clear out the system versions that are no longer needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also after upgrading to 10, synchronizing with 10 will also clear the accumulated sync versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Mar 2011 20:29:37 GMT</pubDate>
    <dc:creator>CherylCleghorn</dc:creator>
    <dc:date>2011-03-23T20:29:37Z</dc:date>
    <item>
      <title>SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536721#M30403</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;BR /&gt;&lt;SPAN&gt;I'm having a problem compressing an SDE database that is setup for one way replication.&amp;nbsp; I have a script that is setup to edit a business table in sql on a nightly basis and then update a dissolved feature class from a spatial view that uses that business table, it follows the proper versioned/replication workflow.&amp;nbsp; All replicated data is registered as versioned and has globalids&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The workflow is performed in these steps in a batch file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. - kill all connections to the database&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. - create multiversioned view on the replicated business table and replicated dissolved feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. - Run SQL script to load a csv file containing the new business table data as external table in oracle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. - Run SQL script to&amp;nbsp; create a new version(mvedits) in database, set it as current version, open it for editing, delete records in business table, insert new records from external table, commit edits and close edit session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. - Run Python script to dissolve the spatial view that uses the business table and produce a temporary dissolved feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. - Run SQL script to open the edit version for editing, delete records in replicated dissolve feature class, insert new records from temp dissolve feature class, commit edits and close edit session.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. - Delete both multiversioned views, external table and temp dissolve feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. - Run python script to reconcile the edit version to the default version and post changes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9. - Run python script to synchronize the replica to the child database (which is supposed to synchronize to the child, delete the replica and create a new one based on the new default version of the database)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10. - Update dbms stats on edited tables and sde tables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11. - compress database&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;12. - Update dbms stats on edited table and sde tables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13. - Delete the edit version created in step 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have followed the workflow for versioning right out of the help and followed the workflow for compressing a database with one-way replication found here &lt;/SPAN&gt;&lt;A href="http://downloads2.esri.com/support/whitepapers/ao_/J9842_GDB_Compress_With_Replicas.pdf"&gt;http://downloads2.esri.com/support/whitepapers/ao_/J9842_GDB_Compress_With_Replicas.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of the edits get pushed to the child database during the synchronization and the tables in that database show up properly.&amp;nbsp; The problem is that I cannot compress the state tree back to 0 in the parent database which means that the spatial view that is based off of the buisness table that gets edited does not reflect the proper data (still the old data before the edit).&amp;nbsp; It seems that the replica synchronization process is not actually deleting the replica and recreating it as it should because if I unregister it manually and recreate it, I can then compress the state tree to 0.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get this to work properly??!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 21:03:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536721#M30403</guid>
      <dc:creator>CharlesHarris</dc:creator>
      <dc:date>2011-03-16T21:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536722#M30404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It sounds like you need acknowledgements from your child replica. Until you get those, the state tree would be pinned with those internal synch versions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 22:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536722#M30404</guid>
      <dc:creator>VishalPahuja</dc:creator>
      <dc:date>2011-03-16T22:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536723#M30405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It sounds like you need acknowledgements from your child replica. Until you get those, the state tree would be pinned with those internal synch versions.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought when performing connected replication that the acknowledgement happened automatically?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 13:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536723#M30405</guid>
      <dc:creator>CharlesHarris</dc:creator>
      <dc:date>2011-03-17T13:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536724#M30406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;9. - Run python script to synchronize the replica to the child database (which is supposed to synchronize to the child, delete the replica and create a new one based on the new default version of the database)&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you describe this step more? Is this your own custom synchronize or are you using the Synchronize Changes gp tool?&amp;nbsp; If the latter, the Synchronize Changes gp tool does not drop and recreate the replica as part of the synchronization.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 19:10:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536724#M30406</guid>
      <dc:creator>HeatherMcCracken</dc:creator>
      <dc:date>2011-03-17T19:10:58Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536725#M30407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can you describe this step more? Is this your own custom synchronize or are you using the Synchronize Changes gp tool?&amp;nbsp; If the latter, the Synchronize Changes gp tool does not drop and recreate the replica as part of the synchronization.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using the Synchronize Changes gp tool.&amp;nbsp; I was under the understanding that it removed the existing system replica version and created a new one based on this verbage found on page 6(10 in pdf) of the white paper referenced above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Next, Replica1 is synchronized where changes are sent from this parent geodatabase to the relative replica geodatabase.The synchronization process sends edit 1 and edit 3 to the relative replica, since these changes were applied to the replica version (DEFAULT) after the replica was created. In this example, a connected synchronization is performed where an acknowledgment is automatically applied after the relative replica receives the changes. Upon receiving the acknowledgment message, the existing system version is removed and a new one is created from DEFAULT."&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 20:59:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536725#M30407</guid>
      <dc:creator>CharlesHarris</dc:creator>
      <dc:date>2011-03-17T20:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536726#M30408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wonder if you could be running into Nim039250?&amp;nbsp; Are you working with ArcGIS 9.3?&amp;nbsp; If so, installing 9.3 SP1 will fix this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the KB article which discusses this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/content/kbase?fa=articleShow&amp;amp;d=35652"&gt;http://resources.arcgis.com/content/kbase?fa=articleShow&amp;amp;d=35652&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, just for clarification of terms - the compression paper describes that it's the replica &lt;/SPAN&gt;&lt;STRONG&gt;system version&lt;/STRONG&gt;&lt;SPAN&gt; which is deleted and recreated, not the replica itself.&amp;nbsp; The replica itself does not get recreated with each sync.&amp;nbsp; This is why I got confused.&amp;nbsp; So your original statement would be more accurate if it included the words "system version" in it... as below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;9. - Run python script to synchronize the replica to the child database (which is supposed to synchronize to the child, delete the replica &lt;STRONG&gt;system version &lt;/STRONG&gt;and create a new one based on the new default version of the database) &lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know if you have any follow up questions on the differences between replica system versions and the replica itself - or need any clarification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible you are running into Nim039250?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Heather&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 15:40:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536726#M30408</guid>
      <dc:creator>HeatherMcCracken</dc:creator>
      <dc:date>2011-03-21T15:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536727#M30409</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;BR /&gt;&lt;SPAN&gt;The problem may be another issue which we've recently discovered where the system sync version is not being deleted when synchronizing with Python script. Can you please let us know what your system configurarion is (i.e. database and ArcGIS/ArcSDE versions)? Would you be able to log an incident with esri support services so that we can investigate if this is what you are encountering?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2011 22:50:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536727#M30409</guid>
      <dc:creator>CherylCleghorn</dc:creator>
      <dc:date>2011-03-21T22:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536728#M30410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, I'm sorry Heather.&amp;nbsp; It seems I overlooked the proper terminology in my haste.&amp;nbsp; I understand the difference and appreciate you clearing that up for me.&amp;nbsp; I can use the Export data changes gp tool to get all versions to the same state and then compress to 0 but it does not delete the "old" system version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;The problem may be another issue which we've recently discovered where the system sync version is not being deleted when synchronizing with Python script. Can you please let us know what your system configurarion is (i.e. database and ArcGIS/ArcSDE versions)? Would you be able to log an incident with esri support services so that we can investigate if this is what you are encountering?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Cheryl&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply Cheryl.&amp;nbsp; I've found out that, the problem is just that...the system sync version isn not being deleted which poses a problem.&amp;nbsp; We are able to write some basic sql to go in and delete it from the SDE.VERSIONS table after the replication but before the compression which enables us to compress to State 0.&amp;nbsp; However, It's cumbersome and poses problems when trying to edit/sync/replicate/compress in a manual fashion.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do not have a support contract setup, so if that is required to setup an incident report, we may not directly be able to setup an incident report.&amp;nbsp; However, our client does have a support contract so we may be able to have them setup an incident report.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using Oracle 11g dbms with ArcSDE 9.3.1 sp1 installed&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2011 20:31:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536728#M30410</guid>
      <dc:creator>CharlesHarris</dc:creator>
      <dc:date>2011-03-22T20:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536729#M30411</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;BR /&gt;&lt;SPAN&gt;Some of the system versions are required for the replica to continue to function properly, so writing a script to manually delete them would be risky. Determining what can be deleted depends on the generation numbers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We tested the issue with versions 9.3.1 and 10; the problem described has been resolved at version 10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 13:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536729#M30411</guid>
      <dc:creator>CherylCleghorn</dc:creator>
      <dc:date>2011-03-23T13:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536730#M30412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi&lt;BR /&gt;&lt;BR /&gt;Some of the system versions are required for the replica to continue to function properly, so writing a script to manually delete them would be risky. Determining what can be deleted depends on the generation numbers.&lt;BR /&gt;We tested the issue with versions 9.3.1 and 10; the problem described has been resolved at version 10.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Cheryl&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So since our client is still at 9.3.1 it seems that our options are as I've stated above, correct?&amp;nbsp; Those options would be use the Export Data Change Messages tool and then compress to state 0 while leaving the "old" system version in the SDE.VERSIONS table, which will give us an increasing number of orphaned records in that table as we continue to replicate, or run the replication, query the table to determine which of our system versions that is owned by the replica owner still references state 0, delete that system version and then compress all other versions to state 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we decide to use the gp tool and leave the orphaned records in the table, when our client upgrades it's SDE database to version 10 will those records be deleted the first time we replicate and compress?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 15:05:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536730#M30412</guid>
      <dc:creator>CharlesHarris</dc:creator>
      <dc:date>2011-03-23T15:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536731#M30413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I cannot advise on deleting system versions without investigation. I forgot to mention a possible workaround at 9.3.1: after you've synchronized your changes (even with python), can you try synchronizing again, with no additional edits. This should clear out the system versions that are no longer needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also after upgrading to 10, synchronizing with 10 will also clear the accumulated sync versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 20:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536731#M30413</guid>
      <dc:creator>CherylCleghorn</dc:creator>
      <dc:date>2011-03-23T20:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536732#M30414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for the delay...the extra synchronization did not work for us.&amp;nbsp; We have noticed that the pattern that seems to develop in the SDE.VERSIONS table during the synchronization process is as follows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*Replica is created -&amp;gt; system version SEND_SYNC_X_0 is created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*Replica is synchronized (1st time) -&amp;gt; SEND_SYNC_X_0 is deleted &amp;amp; SEND_SYNC_X_1 is created and remains after the synchronization (it references the same state as default which is the only other version present and therefore the database can be compressed to state 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*Replica is synchronized (any other time than the first) -&amp;gt; SEND_SYNC_X_1 is not deleted, SEND_SYNC_X_2 &amp;amp; SEND_SYNC_X_3 are created and remain after synchronization.&amp;nbsp; So there three versions that remain after synchronization, we run the Export Data Change Messages gp tool and are able to get SEND_SYNC_X_2 AND SEND_SYNC_X_3 to reference the same state as the default version.&amp;nbsp; However, we are not able to get SEND_SYNC_X_1 to reference the same state as the others (it still reference state 0 from the last compression) and therefore cannot compress to state 0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only viable option that we've found is to use the Export Data Change Messages gp tool to align the states of the two new versions and the default version then implement a bit of sql that checks to see if there are more than 3 records is the SDE.VERSIONS table and deletes the one that references state_id 0 and has a parent_version_id of 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using this workflow we are able to compress to state 0 successfully.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Mar 2011 14:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536732#M30414</guid>
      <dc:creator>CharlesHarris</dc:creator>
      <dc:date>2011-03-30T14:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536733#M30415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;With One way replication this is a known problem in 10.1 we are in contact with ESRI to resolve it but nothing yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Until they do here is a &lt;/SPAN&gt;&lt;A href="http://www.husseinnasser.com/2013/06/the-unorthodox-way-to-compress.html"&gt;workaround &lt;/A&gt;&lt;SPAN&gt; this seems to compress the tree to state 0 and move all delta edits to the base tables. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do this workaround on a weekly basis&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2013 07:27:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536733#M30415</guid>
      <dc:creator>HusseinNasser</dc:creator>
      <dc:date>2013-07-01T07:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536734#M30416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;With One way replication this is a known problem in 10.1 we are in contact with ESRI to resolve it but nothing yet.&lt;BR /&gt;&lt;BR /&gt;Until they do here is a &lt;A href="http://www.husseinnasser.com/2013/06/the-unorthodox-way-to-compress.html"&gt;workaround &lt;/A&gt; this seems to compress the tree to state 0 and move all delta edits to the base tables. &lt;BR /&gt;&lt;BR /&gt;We do this workaround on a weekly basis&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any luck finding a solutions to this problem?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 18:28:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536734#M30416</guid>
      <dc:creator>JessicaKirby</dc:creator>
      <dc:date>2013-08-20T18:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: SDE compression and One way replication</title>
      <link>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536735#M30417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;With One way replication this is a known problem in 10.1 we are in contact with ESRI to resolve it but nothing yet.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hussein,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have the bug number for this issue?&amp;nbsp; Any idea if it's been resolved in 10.2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 23:29:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sde-compression-and-one-way-replication/m-p/536735#M30417</guid>
      <dc:creator>DanMcCoy</dc:creator>
      <dc:date>2013-08-23T23:29:35Z</dc:date>
    </item>
  </channel>
</rss>

