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 😞
My Organization is experiencing the same issue. We are trying to use the sidebar instant app and it will throw the same "JSONObject["uploadId"] is not a string" error when trying to create a new feature if an attachment is present.
Having the same issue here with 11.1
Same issues with 11.1
Hi, did anyone find a solution? We have the same issue and don't plan to upgrade to 11.3 so we went to AGO as a temporary workaround. I'd like to move the project back to enterprise.