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:
FraserHand_0-1712176417454.png
or for referenced feature layers with attachments:
FraserHand_1-1712176439626.png
The error returned by the server is
"JSONObject[\"uploadId\"] is not a string."
FraserHand_5-1712177055065.gif
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
FraserHand_2-1712176825724.png
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.
FraserHand_3-1712176897222.png
You can work around it, you can add the feature, then select it and add the attachment this does work ok.
FraserHand_6-1712177097462.gif
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
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.