|
POST
|
ELI5 (for you redditors): I have an environment where we have a single production database and two publication databases which make up our AGS Site. The two publication servers are children of the production environment with one way replication only. The minimal web based editing is done directly to the production environment. While there are mechanisms to pass a schema change from parent to child, new feature classes have to either go into a new replication or the existing one has to be dropped and rebuilt which is annoying with a lot of tables. We keep running into situations where "register existing data", even when a feature class has been manually equalized by deleting the data in the child and appending from the parent immediately before setup, fails to register the data and changes in the parent result in problem records in the child. This happens on both publication servers with several feature classes every time the replications are recreated. Because no changes are made to the data in the publication environment its not clear why its not recommended to use SQL replication instead of esri replication. I understand that if editing was happening in both places there could be conflicting OID created which would cause problems with network datasets, annotation, etc. which used the OID field to connect records. I know its a highly developed system but the in built geodatabase replication always seems cumbersome to deal with. Being that we have a single production database, which we are unlikely to grow out of anytime soon, we won't be in a situation where a single child is subscribed to multiple parents and we would have to deal with setting up identity ranges and such. All of our normal schema management, adding/dropping fields/tables, happens in ArcCatalog so there wouldnt be any conflict with table and field registration tables in the geodatabase.
... View more
02-10-2017
02:39 PM
|
0
|
2
|
2491
|
|
POST
|
I have had this work regularly before but for some reason, since the update to 10.5 I think but I cant say for sure, the UploadServiceDefinition tool isn't working consistently when I want to send something to AGOL. I haven't changed anything in the code and everything runs fine until that last step. I have tried logging in to AGOL in ArcMap and saving the map docs, signing in and leaving ArcMap open, and even running the script from within ArcMap while signed in. I just checked help(arcpy.UploadServiceDefinition_server) to make sure the docs didn't change at 10.5 without me noticing. server_type is set to 'MY_HOSTED_SERVICES' when creating the draft definition. It worked a couple weeks ago but now isnt.. Any ideas? arcpy.UploadServiceDefinition_server(in_sd_file = finalSD,
in_server = "My Hosted Services",
in_service_name = mapDoc,
in_cluster = "",
in_folder_type = "EXISTING",
in_folder = "OpenData") Gives me an error: Failed to execute. Parameters are not valid.
ERROR 000732: Server: Dataset My Hosted Services does not exist or is not supported
Failed to execute (UploadServiceDefinition).
... View more
02-06-2017
10:28 AM
|
2
|
0
|
690
|
|
POST
|
I have a simple app I have put together for a department to use in the field. They want to be able to identify on a point and get a report they can print sometimes of the attributes. I put together a nice little bootstrap page with an inset ArcGIS JS map but I need to authenticate the page to make a query against our REST endpoint. This page would be hosted on a local webserver and be querying a local ArcGIS Server. My idea was to have a link in the popup which passes the OID of the feature as a URL parameter. That goes into a request URL to the service and the JSON response is parsed out. That part is easy. I cant figure out how to authenticate it though. It could ask for a password at each page load but I would rather not since that would be irritating if they needed to print several in a row. Alternative solutions gladly welcome.
... View more
01-24-2017
12:50 PM
|
0
|
0
|
946
|
|
POST
|
Yesterday I implemented the JS tree version by bixb0012 posted earlier in this thread with python getting the state information. I barely used the other GDBT functions so this meets my needs. Its actually much faster when there are a lot of states as well.
... View more
10-12-2016
05:46 AM
|
1
|
0
|
1967
|
|
POST
|
It works but Im not keen on a registry hack if I dont need to.
... View more
10-10-2016
07:46 AM
|
0
|
2
|
1967
|
|
IDEA
|
It would be great if they added this to System Monitor. I would predicate that however on making System Monitor free again. Its technically still free except that if you want the new version you have to have a full day of consultation about your system with Professional Services first.
... View more
10-10-2016
07:44 AM
|
0
|
0
|
1773
|
|
POST
|
The compression that runs at midnight each night is a script that kicks all users, blocks new connections, and syncs before compressing. Does deleting those hidden sync versions not affect the replications? I have 7 replications currently off this database so the version table is holding onto 7 SYNC_SEND versions and states. I say 7 states but in reality all 7 have the same state ID.
... View more
10-10-2016
07:20 AM
|
0
|
5
|
1016
|
|
POST
|
Thats what I assume. Once those two rows were deleted the two corresponding states in SDE_States compressed away and everything went back to normal.
... View more
10-07-2016
10:31 AM
|
0
|
7
|
2003
|
|
POST
|
Yes. Both were one way and they were removed from the child databases fine.
... View more
10-07-2016
10:19 AM
|
0
|
9
|
2000
|
|
POST
|
Yes we replicate before compressing. In this case the replicas are no longer registered but the entry for them was not dropped from SDE_Versions when they were removed. The compress couldn't get past those two states and the versions couldn't be replicated because they did not exist anymore. The entry for them was not in GDB_Items anymore, just SDE_Versions.
... View more
10-07-2016
10:06 AM
|
0
|
11
|
2000
|
|
POST
|
First time was with a 10.1 geodatabase, this time was after upgrading it to 10.3.1. MSSQL 2008 R2.
... View more
10-07-2016
10:02 AM
|
0
|
0
|
2000
|
|
POST
|
For the second time when investigating why our primary production database is slow I found that the edit tables are not compressing. The version tree from GDBTools is showing a pretty good compression each time but those edits still remain. It turns out that once again when I removed two replications they are taken out of all database tables except SDE_Versions. These two versions are acting as blocking states keeping 2 months worth of edits from compressing. The only way I've found to fix this is to back up the database and delete the rows from the table directly. I deleted them in descending order of creation date compressing between deletes. After the last compress all the edit tables were clean and empty and the database had updated all the state lineage numbers automatically. No edits were lost as far as we have been able to tell. I don't know if its just our database but DBA's may want to keep this in mind.
... View more
10-07-2016
08:13 AM
|
1
|
15
|
4287
|
|
POST
|
Yeah not sure whats going on with it but everything is working so I'm not very worried about it, just a little concerned. After a sync and compress 2 of the 6 now have new IDs but they are once again duplicate. name owner version_id status state_id SYNC_SEND_34522_45 SDE 3049 16777216 601500 SYNC_SEND_34559_45 SDE 3050 16777216 601500 SYNC_SEND_29256_471 SDE 3053 16777216 601500 SYNC_SEND_30056_475 SDE 3054 16777216 601500 SYNC_SEND_34512_107 SDE 3058 16777216 601529 SYNC_SEND_34516_105 SDE 3059 16777216 601529
... View more
09-27-2016
11:36 AM
|
0
|
0
|
1967
|
|
POST
|
Wow this works great. What query are you using to get your state list? Mine is causing an error to throw in the JS from a duplicate value it doesn't like. I don't have PHP installed anywhere so I'm going to use python to execute the query, put the files in a CSV, and launch the webpage. Edit: Actually its not my query thats a problem. For some reason the database is giving 7 replications the same State ID, Parent ID, and Lineage ID.
... View more
09-27-2016
08:56 AM
|
0
|
2
|
1967
|
|
POST
|
I got a new computer which means a completely fresh install of Desktop at 10.4.1 which means no more rolling GDBTools forward. I really liked being able to visualize the state tree and want to try to replicate it using python. I'm grabbing the state list using use sde
select sde.sde_states.state_id, parent_state_id, lineage_name, name
from sde.SDE_states
left join sde.SDE_versions
on sde.sde_states.state_id
= sde.sde_versions.state_id
order by state_id; but I'm having trouble sorting the states into their branches however. Anyone at esri have some advice?
... View more
09-27-2016
06:04 AM
|
0
|
10
|
3733
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-06-2020 09:37 AM | |
| 3 | 02-28-2018 01:53 PM | |
| 1 | 02-13-2017 12:19 PM | |
| 1 | 06-22-2020 05:52 AM | |
| 8 | 01-23-2019 11:02 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-13-2021
10:23 AM
|