Collector with Attachments will not synch: I finally got a collector app working in the following configuration:
Point Feature Class with attachments enabled published on ArcGIS Server 10.2.2 with sync enabled;
Webmap in Portal for ArcGIS (also 10.2.2);
I can access the map and create an offline copy on a variety of Android and IoS devices.
I can create new, and update point features and sync them (most of the time).
When I create or update a point feature AND attach a photograph to it, sync fails every time with "Illegal start of token [<]".
Since this works when I'm adding or updating features with no attachments, I'm pretty sure that the service and Portal is configured correctly. Why would collector stop working when attachments are added to the mix? Unfortunately, due to IT policy, we won't be able to "upgrade" to 10.3 which, at great cost, involves dozens of servers and thousands of desktop clients.
Is there a fix for this in the 10.x suite?
Same here - I have an open call with Esri(UK) regarding this.
I had similar problem, but with AGOL only. Do you have activated GDB versioning or editors changes tracking? Try make GDB without these services.
GDB Versioning is enabled, as per the ESRI documentation, which suggests that it will not work otherwise, No track editor changes. Are you saying that disabling archiving makes feature attachements work? Why would a plain old feature service work with versioning enabled (per the documentation), but adding attachements (also with versioning) fail to sync in collector?
I can collect points and sync all day long in collector, even on the FS with the attachments. As soon as I add an attachment (small > 1 mb photo)....sync fails.
I forgot a one more problem. Dont You have the problematic feature class/service in two or more various maps? First, try to use your feature class/service in just one web map. If you need it to use in more maps, you must create copies and then append it together. Sometimes helps only create new map and with new feature class/service to solve sync problem.
If it will not help, try to turn off versioning, too.
Just to clarify, how are the attachments added? Via "Take Photo" or via "Choose From Library"? Are you able to successfully sync the edits if attachments are added via "Take Photo"?
OK two points here - my reading of the set up is that versioning should be DISABLED ArcGIS Help (10.2, 10.2.1, and 10.2.2) - earlier versions of this help page made it clearer that versioning should not be enabled.
And for me, the mere presence of the ability to add attachments is enough to break this, not the actual adding of attachments. Also, to answer the question as a bog has been raised**, when I do add an attachment it is direct from Collector.
**BUG-000084227 : Collector for ArcGIS on iOS fails to sync edits to a feature service added as an item with stored credentials in ArcGIS.com if at least one of the features has a picture attachment made from photo library.
We don't have this service tied to credentials, so that is not the issue. Have also tried with photo from library, photo from camera, and just adding a text file. All the same error.
My investigation with Esri(UK) has revealed a mixed result - sometimes it works, sometimes not. When it fails I get this in the server logs.
Did you figure out how to fix this issue ?
We are getting the same error.