Often in our Field Maps mobile projects, we have a need to include non-editable reference data in the web map. Sometimes this reference data changes fairly frequently, and the hosted feature layer needs to be updated. In some instances, we've found the easiest/most reliable way to do this is to schedule an ArcGIS Notebook to do the update for us.
However, in order to take a Field Maps project web map offline, all layers in the map need to have sync enabled, regardless of whether or not they are editable. Sync can be enabled/disabled on hosted feature layers using the ArcGIS API for Python, which is required in order to make updates to the data, however, sync can not be toggled off if the hosted feature layer has any outstanding replicas.
So all that said, I am trying to figure out the best workflow to make automated updates to a hosted feature layer that has sync enabled, and may often have outstanding replicas as users check out the data for their offline Field Maps projects.
I know I can unregister replicas via the python API, however I'm wondering how that may affect other layers in the offline web map when the user later tries to sync. Since the service I'm unregistering would not be editable regardless, would this essentially have no affect on the user when they go to sync their projects? Or is syncing an all or nothing process, where other editable layers in their offline project with changes will fail to sync because their replica for a reference layer was unregistered? Hope that makes sense. Appreciate any help.
If nobody knows, I'll eventually try to set up a test and report back, but hoping someone else already knows the answer and can save me the trouble of setting that up.