I am looking for some guidance or confirmation on an error I have been encountering when attempting to sync a workspace that participates in a distributed collaboration between our Orgs. Portal and AGOL sites.
Basically, we are attempting to share Portal feature services (where the data is hosted in our MSSQL Server) to AGOL as hosted feature services; the AGOL hosted feature service would be a "copy" of the Portal feature service.
Some additional background:
When we try to sync the workspace immediately after the feature service is published and shared (same day), the sync completes successfully. When we try to sync the workspace the next day, the sync fails. I am wondering if the nightly replicate / copy routine, where the production instance of the database is replicated / copied and overwrites the publication instance of the database, is breaking/blowing away the "replica" that is created by the collaboration/sync process. Thus when the workspace sync is executed the same day the feature service is published/added to the workspace, the workspace has no issue syncing the content, but when the sync is executed the following day (or any day after) the sync fails due to no reference of the "replica" in the database.
The specific error I am receiving from the Portal Admin logs is: "Failed to obtain sync/replica info for Feature Service item 'ITEMID', URL 'PORTALURL/arcgis/rest/services/FeatureServiceName/FeatureServer' while collecting item list for collaboration workspace id 'WORKSPACEID'. Item exists but will not be synchronized."
Is there a way to confirm that a replica has been created at the database level (in SQL Server)? Is there a way to confirm my theory about the replica being broken/blown away by our nightly SQL replicate/copy routine?
Infrastructure Configuration:
Collaboration & Workspace Configuration:
Portal Feature Service Configuration:
Hi @KevinPiraino2,
It’s been a while since I've worked with branch-versioned data, especially in a distributed collaboration context, but I can offer a few thoughts.
I believe your Version Creation setting should be set to “Create a version for each downloaded map,” even though your workspace is set to Send Only. I believe this setting is required when working with versioned data in distributed collaborations, but I’m not 100% certain. It would be great if someone else could chime in and confirm or provide additional insight. Although your scenario doesn’t exactly match the one in the document below, this document provides some useful guidance on preparing versioned data for distributed collaborations:
Prepare feature layer data for use in a distributed collaboration—ArcGIS Pro | Documentation
If you're trying to confirm your theory about the replica being broken by the nightly replicate/copy routine, here are a few things you could try or gather further information on:
Regards,
Timo
Timo,
A couple answers to your questions and comments:
Unable to sync item '46bb45cb5a0f4086b40bf2e0e4de77e9'. Error retrieving Sync info or replicas for peer 'neJvtQ4PXvnQ86MJ'.
Unfortunately, not too much more I can add. Looking back at your original post, your theory certainly sounds plausible at this stage.
I hope someone else can chime in and provide you with further insight or some sort of SQL query to confirm the replica state at geodatabase level.
Timo,
The only other thing I will add regarding this is that we do not currently have "replica tracking" enabled on the feature datasets/feature classes we are trying to share into the workspace. While I'm not entirely sure that this is the reason for the issue, it is another configuration option I need to look into. Upon initial testing, it didn't appear that not having "replica tracking" enabled mattered, but reading into the ESRI documentation a bit further makes it sound like it may be necessary.
I also found a different ESRI Community post discussing what happens behind the scenes when "replica tracking" is enabled.
Replica Tracking GP tool: https://pro.arcgis.com/en/pro-app/3.4/tool-reference/data-management/enable-replica-tracking.htm
Replica Tracking behind the scenes info: https://community.esri.com/t5/arcgis-pro-questions/enable-replica-tracking/td-p/1382804