I think I might have encountered a bug related to attachments for a hosted feature layer.
So I have a point layer with attachments, if I delete the feature I would assume that the attachment references are cascade deleted as well. Exporting the data to a file geodatabase confirms that.
BUT... if I now add a new point with the same GlobalID as the one deleted, there seems to be some ghost attachment references - it looks like there are attachments, and the REST api queryAttachments confirms that, but they all return 500 server error.
Removing any attachments before deletion of the feature is a workaround.
We have a workflow where we have a in-house geodatabase that periodically syncs with AGOL, and only features that are "active" should be accessible in the AGOL layer, so features are added and deleted and we want to preserve the GlobalID's so that the match the in-house egdb.
Hi @Nordpil, we appreciate you sharing a potential bug with the broader Esri Community; however, Esri does not actively track software defects posted here. The official channel for investigating and validating bugs is Esri Technical Support. All customers experiencing a potential software bug should leverage technical support to report and investigate the issue.
By reporting bugs through technical support, Esri can better track the scope and impact of the issue across all our customers and better prioritize it with our product teams. Our teams can also investigate the issue more thoroughly to see if there is a solution, workaround, or patch to get you back up and running as soon as possible.
As a reminder, Esri Community is primarily a self-service support platform where Esri users can ask or answer each other’s questions, share feature requests, and collaborate to solve problems with GIS.
*Note that this is a scripted message prompted when posts allude to a potential product bug.
I have submitted the case to our local reseller, they have reproduced and confirmed it and passed it on to ESRI.