I need help resolving this error:
Map download failed, Unable to download map. The operation couldn't be completed. Failed to create replica. Failed to create replica.
I have a number of feature classes in an SDE which I am using to produce layers in a feature layer in portal. This layer is used in a Collector map for offline use. I have previously had this offline map working fine, I have been able to sync offline edits back to the database.
It does not use versioning. All feature classes have globalIDs, archiving and editor tracking enabled.
Today I enabled attachments, however, on these feature classes. I have checked the relationship class properties between attachment tables and feature classes, all have GlobalIDs as the origin primary key and REL_GlobalID as the origin foreign key.
There are no issues editing these layers in the online version of the Collector map, including adding attachments. Those edits upload immediately without issue. I get the above failure to create replica, issue, however, when trying to take the map with the same feature classes offline.
Hello,
If you are using Collector 18.1.0 (iOS) or newer I would recommend enabling logging through developer tools.
If I understand correctly the error messages states that the create replica operation fails. I suggest attempting to perform the create replica operation at REST on the same feature service used in Collector.
You can access the create replica operation from the feature service REST endpoint.
Example URL: https://<host>/<site>/rest/services/<folder>/<serviceName>/<serviceType>/createReplica
ArcGIS RES API - Create Replica
If I remembered correctly I've listed the only required fields below with examples.
Replica Name: Test
Layers: 0
Geometry: geometryType=esriGeometryEnvelope&geometry={xmin: -104, ymin: 35.6, xmax: -94.32, ymax: 41}
I hope you find these suggestions helpful.
Thanks,
Thomas.
Thanks. This was solved simply by publishing again.