I'm using an iPad Air running iOS 9.2, and Collector 10.3.6 with a external Arrow 100 GNSS receiver. I have downloaded maps and worked offline in the previous months (October-November) and haven't had any issues. Worked wonderfully! Since then there's been an update to iOS and a new release of Collector, both of which I installed. Now, if I download a map to use offline, and collect a new point (valve or hydrant) and then try to sync that point I get the following error:
An error occurred while trying to synchronizing edits. Unable to synchronize replica. Sync replica error
I don't actually have to gather a point. I still get the same error if I hit the sync button with nothing to sync.
My layers are pretty basic. They are just hosted feature layers on AGOL. They have not been modified from when they were initially uploaded in August. Besides updating the OS and Collector, the only thing that I have tried different was setting up a iPad mini. I downloaded an offline map to use in the field, and when testing it in the office this week I got the error for the first time. I had not tried syncing the existing iPad Air offline after the new updates were installed (iOS and Collector), so I don't know if I would have received the error before I set up the mini or not. I do receive the error on both now. Neither are logged in at the same time. I have noticed that even though I get the error, the collected feature does make it to AGOL. I'm not sure if it's every time or not. I'll have to check. I currently have no issues collecting data if I'm connected to internet service in the field.
Anyone else having the same issue or any thoughts as to what might be causing this?
Solved! Go to Solution.
Unregister Replica is the operation to delete it.
I can reproduce the issue using only "Repair" layer from your feature service. But when I try to use your feature service as the template and create a new one, I can't reproduce it in newly created service.
You can try creating a new "Repiar" service and add to your map. Then you can continue with your work. But do you mind keeping the orignal "Repiar" layer?
I don't mind keeping it, but if it remains, so does my error, correct? I tried unsharing it with the organization, but kept it shared with the esri group. But it still shows up in the field map for the organization. I'll see what I can do.
Sent from my iPhone
I just need Repair service. You can create a new Repair service and use it for your webmap.
My colleague looked at this issue. It looks like somehow enable sync failed on this particular service “Repair”. Can you try to disable/enable sync on this service via the admin API? If that does not work, you can try to republish the service.
Here are the detailed steps of how to disable/enable sync on this service via the admin API
1. Unregister all existing replicas you find here: http://services.arcgis.com/I6MwRSmdA9fof9PW/arcgis/rest/services/REPAIR/FeatureServer/replicas
2. Via update definition: http://resources.arcgis.com/en/help/arcgis-rest-api/#/Update_Definition_Feature_Layer/02r30000022p00... change the capabilities of the service.
a. Remove sync: {"capabilities" : "Create,Delete,Query,Update,Editing"}
3. Via update definition, add sync capability: {"capabilities" : "Create,Delete,Query,Update,Editing,Sync"}
Miaogeng,
I believe I got accomplished Item 1 in your message.
Item 2, however, I get this error below if I have entered it correctly: http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services/REPAIR/FeatureServer/0/updateDefinition
Am I leaving something off the URL at the end? You have the word capabilities in quotes in your message like it’s a command or special word. I have no experience in what you are asking me to do.
Thanks Miaogeng,
Travis
ArcGIS REST Services Directory
Home<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services> > services<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services> > REPAIR (FeatureServer)<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services/REPAIR/FeatureServer> > REPAIR<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services/REPAIR/FeatureServer/0> > updateDefinition<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services/REPAIR/FeatureServer/0/updateDefinition>
API Reference<http://resources.arcgis.com/en/help/arcgis-rest-api/>
JSON<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services/REPAIR/FeatureServer/0/updateDefinition?f=pjson>
Error: Feature (ID: updateDefinition) not found
Unable to retrieve feature.
Travis Anderson, P.E.
Engineer
Le-Ax Water District
PO Box 97
The Plains, Ohio 45780
TEL: 740-594-0123
FAX: 740-593-8294
For #2. This is the correct doc: ArcGIS REST API
Url for this service: http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services/REPAIR/FeatureServer/updateDefiniti...
Dhrumil,
I’m not sure I understand what to do here.
After I login to ArcGIS online, I add the following link to the browser:
http://services.arcgis.com/I6MwRSmdA9fof9PW/arcgis/rest/services/REPAIR/FeatureServer/updateDefinition
After I hit enter and get the following:
ArcGIS REST Services Directory
Home<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services> > services<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services> > REPAIR (FeatureServer)<http://services.arcgis.com/I6MwRSmdA9fof9PW/ArcGIS/rest/services/REPAIR/FeatureServer>
API Reference<http://resources.arcgis.com/en/help/arcgis-rest-api/>
JSON<http://services.arcgis.com/I6MwRSmdA9fof9PW/arcgis/rest/services/REPAIR/FeatureServer/updateDefinition?f=pjson>
The requested layer (layerId: updateDefinition) was not found.
I’m probably just going to delete the entire layer so I can move on. That layer still shows up on our iPad we use for offline collection even though I only have it “shared” with the ESRI Collector group. I don’t know why that is, but I need to be able to download a offline map, and until I get rid of that layer I’m going to keep getting my sync error.
Thanks for your help.
Travis Anderson, P.E.
Engineer
Le-Ax Water District
PO Box 97
The Plains, Ohio 45780
TEL: 740-594-0123
FAX: 740-593-8294
My bad, wrong url
This is the correct one:
Thanks,
Dhrumil
Yes, that seems to have gotten me to the correct spot.
So within this window of code, I am to delete the word “sync” from the following line of code. I find two instances of this piece of code within the Update Service Definition window.
"capabilities" : "Create,Delete,Query,Update,Editing,Sync",
Once I delete those two instances, I hit the Update Service Definition button I assume. After I did that I went back to the same URL as below to add the word “sync” back in. But, the word “sync” is already back in the code as if it wasn’t deleted. It doesn’t seem like anything occurred.
http://services.arcgis.com/I6MwRSmdA9fof9PW/arcgis/rest/admin/services/REPAIR/FeatureServer/updateDefinition<https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgis.com%2FI6MwRSmdA9fof9PW%2Farcgis%2Frest%2Fadmin%2Fservices%2FREPAIR%2FFeatureServer%2FupdateDefinition>
Update Service Definition - REPAIR
Note: This operation is only supported via POST
Update Service Definition:
ASync:
True False
Format:
Travis Anderson
Delete all the text in update service definition text box. You only need this.
{"capabilities" : "Create,Delete,Query,Update,Editing"}
Once you hit update definition, sync capability should go away.
And then delete all text in update service definition, and enable sync with this:
{"capabilities" : "Create,Delete,Query,Update,Editing,Sync"}
If this does not work, need to delete the republish the service.
Thanks,
Dhrumil