Solved! Go to Solution.
Unfortunately, this is not possible at this time. If you do not include existing attachments while generating a sync-enabled geodatabse, you cannot later add & sync new attachments.
I encourage you to log an enhancement request for this functionality if it is critical for your workflow. You can contact Esri Support, or use http://ideas.arcgis.com/
I voted on the idea enhancement, but I wanted to mention a few other comments/issues here as well. We want to be able to capture high quality images and make them available offline. The geodatabase eventually reaches a size where it fails to download because its too large. We could filter the data to only sync data by date or something, but that isn't a workable solution for us either. We have data that need to be available to view at any time and ideally with their attachments.
In addition to being able to continue collecting attachments without having the returnAttachments property = NO. It would be really nice if we could filter the attachment table independently of the features. For example, not all of our attachments need to be downloaded but all of the spatial/tabular data does.
Another idea is if we had the ability to select attachment quality during the sync process. I'd like to continue to collect images in high resolution, but there is no need to have a full size image available on a device. If we could only download lower resolution images for viewing on small screens that would drastically reduce the size of the .geodatabase and avoid the issues we've been having with large .geodatabase files not downloading. I realize we could do this on the desktop and swap out/process attachments, but at that point, there really is no benefit to attachments anymore other than handily being included in the sync process. Michael Davis
Thanks,
Matt
I also wanted to mention how important this capability is. The necessity to have to download all existing attachments in order to download new attachments is insane, especially given that replicas fail to create once they reach a certain size. This is going to be non-starter for our clients.
Thanks for all your feedback. At the next release of the SDK, you will be able upload attachments even if you opted to skip them while generating the initial geodatabase. You will also be able to control the behavior sync operations for attachments - whether you want to only upload, both upload and download, or nothing at all.
Hi Divesh,
How can I exclude existing attachments while generating a sync-enabled geodatabse? I'm using SDK 100.13...
Thanks,
Shimin