state_id
191938
This table is the sde.sde.SDE_states in our production database. For some reason we cannot seem to compress away those states. Ive kicked everyone off the database including myself so that all state locks will be released and then compress but they just wont go away! We compress nightly and always drop back to these same states. Its a 10.1 EGDB on SQL Server 2008R2 without the SDE application server. Is there anything I can do from SSMS instead of Catalog to solve this?
I was searching for something else and this knowledge base article came up. I had 6 hidden versions from old replications that were unregistered that are just sitting out there in sde.SDE_versions. Their dates and state_ids were the same as the ones in the sde.SDE_states that wouldn't compress away. I used the Delete Version tool to drop them from this table safely. I did it in reverse chronological order to on the versions create date on a whim because it seemed safest, compressed, and BOOM! errant states gone. I'm hoping this will resolve some other issues I've been having. Please back up your geodatabase before you do this in case something goes haywire. None of my users have noticed anything amiss on the client end since this was done last Friday.
The table below shows the comparison of the two tables. Rows in green are versions/replicas that are current, rows in red are versions/replicas that should have been dropped but weren't. You can see that while they still appeared in sde.SDE_versions they had already been removed from sde.GDB_ITEMS. Item ID is in the name of the replica version.
sde.SDE_versions
sde.GDB_ITEMS
name
ID
Replica Name
DEFAULT
205718
SYNC_SEND_3_0
0
SYNC_SEND_5910_1
118506
SYNC_SEND_7110_0
118621
SYNC_SEND_8312_1
118869
SYNC_SEND_8312_2
119777
SYNC_SEND_5910_2
163687
ParcelEditing
205712
SYNC_SEND_20028_5
205591
20028
SYNC_SEND_19649_4
19649
SYNC_SEND_9919_162
9919
SYNC_SEND_18851_7
18851
SYNC_SEND_18848_11
18848
SYNC_SEND_20450_2
20450
SYNC_SEND_20453_1
20453
How many versions are there in that geodatabase?
Do you reconcile/post all versions, delete the Versions and then perform compress?
Do you have replicas in that geodatabase?
enterprise gis sdecompressdata managementsde administration
Managing Data Geodatabase Move this thread to any of these groups for better response.
I agree with Asrujit. We always delete versions before compressing, otherwise we get this error. Give it a try.
We have very few editors here so all edits are done to the base version,
We do have replicas, all one-way going out from this database.
Have the replicas been synchronized before compressing?
Yes. A script runs nightly that syncs all of the replicas and then compresses and runs stats on the geodatabase.
Ok Ill try that early tomorrow morning. When I kick all users I am switching to refuse new connections so no one can get back on before Im done. There isnt a Server site on the production server but I can stop the ones on our publication and fail over machines.
Hi, we frequently have similar problems with compress mysteriously refusing to get rid of states, and mostly it's either state locks (through logged in users or services) or replica versions that don't show up in the GUI. What I find helpful:
Martin
Martin Ameskamp just in case you would like to get the GDBT working with 10.1 or later release
Using our favourite GDBT toolset with Desktop 10.1 or later release
Great, this is very helpful!
Von: Asrujit SenGupta
Gesendet: Montag, 22. September 2014 10:42
An: Ameskamp, Dr. Martin
Betreff: Re: - Enterprise geodatabase states will not compress.
GeoNet <http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo8h7SGfRSMkw-2FpvHGF9-2FW3rK-2Bvs1kL9-2FnG6jjf2NZhrLDz0M-2BrY-2By9IaziQEKVk3Hg-3D-3D_GjRFCNGdMNqdt7rSVIqdH0qHqDDgIeyIXpkS4jn6U-2Fr3fh9mo7Hp47Cmfn-2FKfkYVPSbbPhU0zRTPicqVCMlD7FbwMUYhqnW58oFK-2FGfuLhjFbREYhbLeVp97-2B4OPuop5QgN17AAVrl2OKR7ZLJc3RRKwoiuyXv-2FDV3ASGHdfGW1rb8EUJLWA0ge16kurRh3X5J-2BAFJAmD-2FBolms5qX8vH8UxKou0BP2ubOOT3yZiHq2RRYAJHAGjPZPlgAqZZ61E6-2Fulolax4O736Itd6vVxEPHFR4fN69r1gBJk8gjVR1pLorcDiIpehvZu-2BjDl-2B9THY8ed4MMtHstfZ67Wd0FUqA-3D-3D>
Enterprise geodatabase states will not compress.
reply from Asrujit SenGupta<http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo7A4BXwO9PY1WvQ5cXCtK48Jctg75Ycpj-2BRd4g0XdHaw-2FhL5Iztn268OrIjUiJNX1xN5Fi76SF6y469H2YweiWWwsEST8EAvfskpoJIOD98-2B_GjRFCNGdMNqdt7rSVIqdH0qHqDDgIeyIXpkS4jn6U-2Fr3fh9mo7Hp47Cmfn-2FKfkYVPSbbPhU0zRTPicqVCMlD7FbwMUYhqnW58oFK-2FGfuLhjFbREYhbLeVp97-2B4OPuop5QgN17AAVrl2OKR7ZLJc3RfBfkAYzmWn1F2y3DmROOaxyiRlKG71G-2FqdMlIdqArgCdM5RkZLF7iNjsm8xBVQvtoC1SBoSSq5L7iDF7IMfAER5O7ybk79-2F0ehG5oRj3-2FCRMrViSbvEW2CaqGge267FEdOpIr4qRfkE56H0B459fGAybcHh0ob3FW8FjOCHpYUvIBufNPGyX0bNMGfcPxjFoQ-3D-3D> in Chris Mathers - View the full discussion<http://jiveon.jivesoftware.com/wf/click?upn=Dg1s4x8le7Lmxv8KWGaqo0VQjeJBYpG9HGC8QZBT-2FEycHS0jXhbpD4TgIoOkWpQ-2BwpTkmy8L6-2BlAImfOIYLQqJQ-2FFx4hDR4Z9w1V60v0bAI-3D_GjRFCNGdMNqdt7rSVIqdH0qHqDDgIeyIXpkS4jn6U-2Fr3fh9mo7Hp47Cmfn-2FKfkYVPSbbPhU0zRTPicqVCMlD7FbwMUYhqnW58oFK-2FGfuLhjFbREYhbLeVp97-2B4OPuop5QgN17AAVrl2OKR7ZLJc3RcRmHbT838tUZDOoRm0Z7msSkejIofGMULr8jd9fj2ch0wIzP9KM Z69fNIrZiluS4HwELiyiDZUtAAX2gCAXo9hDYWEd-2B12IBmuve0YCD5zy936SyK3avB2Q0mzZQ0bWwzer360wj9-2BORK3-2FIe83TRUImVR7rvIRe6g9z-2Bl1ftk2vhc70wa3L5qE-2BxXtNIRRag-3D-3D>
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.