Non-editable replicas

222
5
01-11-2022 04:46 PM
SandraDalton
New Contributor III

I notice that while I can add un-editable layers into a FieldMaps map for offline use, when a user takes that map offline and creates a replica on the un-editable layer, the replica has the same drawbacks as replicas on editable datasets -- they ruin the ability to update the hosted layer while the replica persists. 

For un-editable datasets when an append-type workflow is not feasible, why must a replica break the ability to update the layer? It's not like the user replica is going to feed back changes to the layer. 

Is there a way that this can be modified or fixed? Anyone know of a workaround that doesn't involve changing the standard update workflow to the un-editable layer when there is a replica taken out on it?

For context: The un-editable layers that need to be updated are done so multiple times a week, and contain hundreds of thousands of records pushing into a million plus. The un-editable layers are used in offline maps with other editable layers. I have over a hundred users spread across Australia and North America at a dozen different sites, working in multiple time zones.

5 Replies
DougBrowning
MVP Notable Contributor

From the service URL page there is a Unregister replica page.  If you give that page a * it will remove all replicas.  You could program this in I think.  So your script removes the replicas then publishes.  This will of course break any sync ability of the user and they would have to take a new replica offline to start sync again (I know no edits but sync also is used to bring in new adds from the service).

DougBrowning_0-1642001193186.png

DougBrowning_1-1642001256014.png

DougBrowning_2-1642001307991.png

 

Replicas is how the whole offline system works so I do not think you can stop that part.

Hope that helps

0 Kudos
SandraDalton
New Contributor III

Hi Doug, 

Thanks for that, yes I am aware of the ability to unregister replicas. Unfortunately it is not an option in this scenario as it will break the sync back process when users are trying to push their edits to the editable layers on the same offline map back up to AGOL.

0 Kudos
rzufelt
Occasional Contributor

I ran into this also.  Would be nice if the un-editable layers could be a "snapshot" when taking it offline instead of having sync capabilities on it also.

Depending on how much and what kind of data you are refering to.

One options is to move the un-editable layers to the basemap so they are not part of the replica/sync process.

Of course, depending on how you are using basemaps, when you update the layer(s), you will need to re-generate the offline areas, or sideload updated basemap to the device(s).

R_

0 Kudos
SandraDalton
New Contributor III

Hi rzufelt,

I appreciate your suggestion. For smaller layers that are not editable, the append process is sufficient to update layers while there are replicas out and it is not an issue. The datasets I am running into an issue with are large to the point that trying to append as the update mechanism is too slow to be feasible (the processing time is longer than the update periodicity -- for example it would take 3 days to append updates, but I need to update the layer every 2 days). 

I like the idea of moving the data into a basemap, but having to then regenerate the basemaps and sideload them on all company devices at the layer update schedule is untenable. 

0 Kudos
mpc
by
Occasional Contributor II

Have a read of this threadHow to update sync data on ArcGIS Online as others are grappling with the same issue. Unfortunately there are no easy options.

0 Kudos