Portal Collaboration Failed (Failed to export item 'xxxx' into a replication package)

1032
3
01-09-2018 09:06 AM
Alexwang
Occasional Contributor II

Hello, we set up collaborations between our portals (10.5.1). Although some times i have to manually run the sync to get the contents synced, most times we are pretty happy with it. In the past couple of days, one of our users tried to share an map image layer (map service as the source) and it didn't get through. When I tried manually running the sync, unsharing/resharing it like what i used to do, it still didn't go through. I noticed whenever I ran the sync, the following warning message appeared in the portal log. 

Failed to export item '57116782cc064eca9078cc87c02b9a55' into a replication package

Based on my understanding, data for only hosted feature layers gets replicated during collaboration while for map services, just, just a reference is shared. But why it's trying to replicate the data for this case? Since I couldn't make it work, our user tried republishing the service and re-shared it and it was able to get through. But republishing the service is not a solution for us since it will change the portal item IDs and mess up any existing map/apps using the item. 

Can anyone please help why the sync didn't work? Any workarounds or solutions?

Tags (1)
0 Kudos
3 Replies
AlexandrosTamilos
New Contributor

Hello,

Did you figure this out? I'm having the same issue. I've noticed that it happens when I add hosted features with multiple layers and tables.

 

Thanks!

0 Kudos
KingstonArcGIS_Online
New Contributor II

Having the same issue with only 2 features in my UAT env. One un-versioned (works) and one versioned (which has this error)

0 Kudos
Natalie_Runyan
New Contributor III

no solution here, yet, but I am working on this with tech support.

Same error, in a collaboration between ArcGIS Online (AGOL) and our Enterprise Portal.  Ours started failing without warning on 6/10/2022, after months of syncing fine.  The package fails on all services not just one.  (The only thing that changed around the same time that syncs started failing was generating a portal token - using the Portal REST directory, https://<portal>/<webadaptor>/sharing/rest/GenerateToken - for a specific user, *using our own portal as the referrer*.)

If we delete the destination content (the *copy* created on the host from the portal), the first sync works, but any subsequent ones fail.  Also, it seems to only push a copy of the map services, not the feature services.  

Configuration

Fails on push of portal services-to-AGOL

Task Name:Export replication package
Task Status:failed
  1. We have server federated with enterprise portal at 10.9.1 Windows
  2. Source data in SQL geodatabase registered with the GIS Server
  3. services with Global IDs, and archiving enabled (no versioning), and (both with or without replica tracking enabled)
  4. feature services published with Pro 2.9, with sync enabled
  5. Collaboration set to send and receive, but workspace set to copy only (not reference, and *unchecked create reference if unable to copy*)
  6. all items shared with "public" and the collaboration groups

Fails on push of hosted service in AGOL-to-Portal

Export and download peer replication package
Task Status: failed 
  1. created a hosted service for testing
  2. initial copy is made to the portal, but subsequent updates fail

What we Tried So Far

  1. Deleted the entire collaboration and built a fresh one, using a different geodatabase source; ; sync still fails at the Export Replica step, both ways. -- this seems to point to an issue with the portals instead of the data or the collaboration per se.
  2. Full ReIndex of Portal; still fails; sync still fails at the Export Replica step, both ways.  Even though the index numbers matched, tried this just in case.
  3. In each, Portal and AGOL:  Organization > Settings > Security > Trusted Servers > Added corresponding servers from both sides; sync still fails at the Export Replica step, both ways.
  4. Confirmed could add the feature service to AGOL from portal as a "new item from URL"; works with no issues.  So, AGOL can reach the services in our portal directly.

TIP:  Esri recommended that anytime I force a sync, to do it from the REST API for the Portal (ex. https://<portal>/<portalwebadaptor>/sharing/rest/portals/<portalOrgID>/collaborations/<collaboration... "sync" and then "sync status"

0 Kudos