Hi,
When using the Map Viewer in ArcGIS Enterprise 11.,1 if I add a hosted feature layer and create a new feature - if I add an attachment and try to insert the feature it fails with:
or for referenced feature layers with attachments:
The error returned by the server is
"JSONObject[\"uploadId\"] is not a string."
When looking at the payload for the apply edits you can see the uploadid is null, and the attachment is encoded as part of the data
So the insert fails as the uploadid isn't set.
It does work with the Classic Map Viewer and also works with the Map Viewer in 11.2 - the uploadid isn't passed.
You can work around it, you can add the feature, then select it and add the attachment this does work ok.
I have tried playing with the service settings - "supportsAttachmentsByUploadId" looked promising but changing this to false seems to be ignored - it is still returned as true when querying the layer. Removing the Uploads capability also doesn't help.
Is this an issue with 11.1? Is there a fix other than the identified work around? Is there a service setting I've missed?
Thanks
Fraser
Same problem here 😞