Problem with Collector not syncing

11353
11
04-07-2015 09:15 AM
DanWakefield1
New Contributor II

Hello,

We have an issue with the Collector periodically not being able to download for offline or sync edits. Sometimes it works greats, but other times we have very frustrating problems.

For a little background, we are using the Collector to update records on a hosted feature layer on ArcGIS Online. When I go to the Feature Layer details on AGOL, it says the size is 1 KB. The Service Definition is 3 MB, and the Web Map is 10 KB. The size of the hosted feature layer appears to be incorrect, the data should be larger than 1KB. As a test, I downloaded the data to my phone, and it created a folder in storage/ArcGIS_Collector/offline_data that is about 54 megabytes. I'm using a basemap already on the device, so that was not included. It took about 10 minutes to download the files. Is 10 minutes a reasonable download time for 54 megs?

Our problem is with the intermittent sync issues we're having. We copied a new basemap (tpk) onto the device yesterday, then made changes to attributes on 5 different lines (all part of the same feature). The guy testing the Collector app hit "Sync" before he left the office yesterday evening at 5 PM. When he came in this morning, the progress bar had reached (what looks like) 100%, but it did not complete. He thought it might be an issue with the office wifi, so he cancelled the sync and then took the device into the field with him. He hit sync in the field when it was on a cell connection, and it is continuing to not sync.

The device is a Nexus 6. The packaged features seem to only be 54 megs, and there were only 5 records that were updated, so it seems like it would be a quick sync. He's the only one who made changes before he hit sync, so I would have expected it to complete pretty quick. This isn't the first time we've had these kinds of problems. We've had it take hours to download the data for offline use the first time, and over 30 minutes to do a sync. Since we're using hosted feature layers, is there any kind of debugging information we can get out of the Collector?

Thanks,

Dan

0 Kudos
11 Replies
NicolasGIS
Occasional Contributor III

Finally, I found the solution to my problem.

The thing I could not understand is that when I was browsing to a REST API of my ArcGIS Server 10.3.1 from Safari, I had the mentionned problem.

But  :

- when browsing to an ArcGIS Server 10.0 no problem.

- when browsing to an ArcGIS Server 10.3 following error message : "The 'Proxy-Connection' must be modified using the appropriate property or method. Parameter name : name"

- when browsing to an ArcGIS Server 10.3.1 the mentionned above error message.

And indeed, hopefully 10.3 is more talkative than 10.3.1 because when removing parameter "Proxy-Connection: keep-alive"  from the header in Fiddler, it works.

So I added the following rule in fiddler :

"oSession.oRequest.headers.Remove("Proxy-Connection");"

And now I can finally get the POST parameters sent by Collector.

Now, I have to find the problem with my replica not synchronizing which is another story ...

Hope it helps,

Nicolas

0 Kudos
FlavioFelix
New Contributor III

Hey Dan,

I've also had problem with the synchronizing but didn't find solution, and yesterday the problem has repeated again. Not knowing what to do, I just cleaned the cache accumulated in the dispositive and the synchronizing worked very well.
I hoppe it work for you too.

Felix