Have had an issue lately with creating local copies of our organization's services to edit in ArcMap. We are using ArcGIS Enterprise 10.7.1 and we have a field team using Collector and Survey123. The layers in question are optimized for Offline use, with Sync and Editing enabled. Essentially every time I create a local copy for editing in ArcMap of a Feature Service, the geographic data copies correctly, but the photo attachments are missing
To sum up my workflow and issues I have:
This presents a huge issue because if I were to republish and overwrite the original service with important edits that were made, critical attachments would be missing, and the originals removed.
Has anyone has any similar issues or has a solution/workaround? Is there something wrong with the configuration of my service? I have read elsewhere that attachments do not always copy correctly when editing and sync is enabled. I could disable those features but it would cause a disruption to our active field crew and the replicas of the service they may be using.
I believe the features I am attempting to pull down to create local copies of are Offline Hosted Features services. When looking at their path in REST Service Directory they are under a Hosted folder, whereas the enterprise geodatabase layers are in a different folder. Apologies if this is a silly question, but do you the best way to differentiate between what is referenced from an enterprise geodatabase vs. what is not, either via Portal Administrator or Server Manager? I'm working with several layers that were created before I came on into this position.
We would expect the "Create Local Copy for Editing" workflow to work for hosted feature layers with attachments. Is the layer you are working with fairly large? Have you tried using the same workflow on a hosted feature layer containing just a few attachments and compared the behavior?
As for your other point, if the service is in the Hosted folder, then it is considered a hosted feature service. For other services, the easiest way to check how they were published is by exploring the Services Workspace property from Server Manager: Review service workspaces in Server Manager—ArcGIS Server | Documentation for ArcGIS Enterprise
The attachments can be large photos at times and the layer takes several minutes to download completely when initially making a local copy for editing.
I have tried the same steps with several of the smaller layers with the same results. I will create a fresh hosted service with a few attachments to test it further.
Thanks for the tip!
So I've tried this same process with a number of other layers added from Portal to ArcMap and every time I create local copies to edit, the attachments do not copy as well. Regardless of size, regardless of my geoprocessing environment set to maintain attachments.
Wanted to update and mention that, after contacting tech support, this appears to be an established bug between ArcMap and ArcGIS Online.
Reference BUG-000104720: https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEwNDcyMA==
Not sure when it will be fixed or not, but there it is.