<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding attachments in Map Viewer during feature create fails @ 11.1 in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1538882#M15671</link>
    <description>&lt;P&gt;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.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Sep 2024 13:31:17 GMT</pubDate>
    <dc:creator>AnneMorrisMC</dc:creator>
    <dc:date>2024-09-16T13:31:17Z</dc:date>
    <item>
      <title>Adding attachments in Map Viewer during feature create fails @ 11.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1405466#M14934</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When using the Map Viewer in&amp;nbsp; 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:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FraserHand_0-1712176417454.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99947i90067B693F5C96E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FraserHand_0-1712176417454.png" alt="FraserHand_0-1712176417454.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;or for referenced feature layers with attachments:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FraserHand_1-1712176439626.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99948i966876D6DE838AC2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FraserHand_1-1712176439626.png" alt="FraserHand_1-1712176439626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The error returned by the server is&lt;/P&gt;&lt;P&gt;"JSONObject[\"uploadId\"] is not a string."&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FraserHand_5-1712177055065.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99953iE44F2DDA25110136/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FraserHand_5-1712177055065.gif" alt="FraserHand_5-1712177055065.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FraserHand_2-1712176825724.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99950i060CE52D69818757/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FraserHand_2-1712176825724.png" alt="FraserHand_2-1712176825724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So the insert fails as the uploadid isn't set.&lt;/P&gt;&lt;P&gt;It does work with the Classic Map Viewer and also works with the Map Viewer in 11.2 - the uploadid isn't passed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FraserHand_3-1712176897222.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99951iF4CD3AE048257F05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FraserHand_3-1712176897222.png" alt="FraserHand_3-1712176897222.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can work around it, you can add the feature, then select it and add the attachment this does work ok.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FraserHand_6-1712177097462.gif" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/99954i0ADA656C9E9D43DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FraserHand_6-1712177097462.gif" alt="FraserHand_6-1712177097462.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried playing with the service settings -&amp;nbsp;&lt;SPAN&gt;"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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fraser&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 20:49:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1405466#M14934</guid>
      <dc:creator>FraserHand</dc:creator>
      <dc:date>2024-04-03T20:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding attachments in Map Viewer during feature create fails @ 11.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1405478#M14935</link>
      <description>&lt;P&gt;Same problem here &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 21:11:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1405478#M14935</guid>
      <dc:creator>TrevorH_OPE</dc:creator>
      <dc:date>2024-04-03T21:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding attachments in Map Viewer during feature create fails @ 11.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1477134#M15151</link>
      <description>&lt;P&gt;My Organization is experiencing the same issue. We are trying to use the sidebar instant app and it will throw the same "&lt;SPAN&gt;JSONObject["uploadId"] is not a string" error when trying to create a new feature if an attachment is present.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 17:40:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1477134#M15151</guid>
      <dc:creator>d_dav</dc:creator>
      <dc:date>2024-05-22T17:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding attachments in Map Viewer during feature create fails @ 11.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1492694#M15270</link>
      <description>&lt;P&gt;Having the same issue here with 11.1&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 12:55:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1492694#M15270</guid>
      <dc:creator>Andrew-Bowne</dc:creator>
      <dc:date>2024-06-14T12:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding attachments in Map Viewer during feature create fails @ 11.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1501522#M15349</link>
      <description>&lt;P&gt;Same issues with 11.1&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 13:01:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1501522#M15349</guid>
      <dc:creator>Martin1</dc:creator>
      <dc:date>2024-07-04T13:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding attachments in Map Viewer during feature create fails @ 11.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1538882#M15671</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 13:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/adding-attachments-in-map-viewer-during-feature/m-p/1538882#M15671</guid>
      <dc:creator>AnneMorrisMC</dc:creator>
      <dc:date>2024-09-16T13:31:17Z</dc:date>
    </item>
  </channel>
</rss>

