Select to view content in your preferred language

Adding attachments in Map Viewer during feature create fails @ 11.1

332
3
04-03-2024 01:48 PM
FraserHand
Occasional Contributor III

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

 

 

 

 

3 Replies
Trevor_Hart
Occasional Contributor

Same problem here 😞

0 Kudos
d_dav
by
New Contributor

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. 

0 Kudos
AndrewBowne
Regular Contributor

Having the same issue here with 11.1

0 Kudos