<?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: Not able to upload attachments in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172520#M1613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. We are indeed&amp;nbsp;trying to edit features (add attachment in this instance) in an offline database. We have synced the feature layer and are trying to&amp;nbsp;upload a photo there. At this stage, our app is licensed for developers use only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Aug 2018 03:06:07 GMT</pubDate>
    <dc:creator>deleted-user-jQabWmRafJc9</dc:creator>
    <dc:date>2018-08-15T03:06:07Z</dc:date>
    <item>
      <title>Not able to upload attachments</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172517#M1610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're using ArcGIS SDK to develop a native mobile application. We have &lt;STRONG&gt;Enabled Attachments&lt;/STRONG&gt; for the feature layer we published to ArcGIS Online. This is what we encounterd when trying to add an attachment using the&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000;"&gt;addAttachment method -&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Error Domain=com.esri.arcgis.runtime.error Code=15 "Cannot call this method in this context" UserInfo={NSLocalizedFailureReason=Unable to edit attachments., NSLocalizedDescription=Cannot call this method in this context, Additional Message=Unable to edit attachments.}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;If we open this feature layer in map viewer on PC, we can add attachments without an issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;Any ideas why we are not able to add attachments programmatically using the SDK?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 10:25:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172517#M1610</guid>
      <dc:creator>deleted-user-jQabWmRafJc9</dc:creator>
      <dc:date>2018-08-14T10:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to upload attachments</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172518#M1611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your app properly licensed for editing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 18:42:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172518#M1611</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2018-08-14T18:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to upload attachments</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172519#M1612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - I realize now you are editing directly against a feature service an not using an offline database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 19:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172519#M1612</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2018-08-14T19:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to upload attachments</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172520#M1613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. We are indeed&amp;nbsp;trying to edit features (add attachment in this instance) in an offline database. We have synced the feature layer and are trying to&amp;nbsp;upload a photo there. At this stage, our app is licensed for developers use only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 03:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172520#M1613</guid>
      <dc:creator>deleted-user-jQabWmRafJc9</dc:creator>
      <dc:date>2018-08-15T03:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to upload attachments</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172521#M1614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a guess, but maybe the feature you're trying to add the attachment to isn't "loaded". We actively prevent edits to features that aren't in the loaded state.&lt;/P&gt;&lt;P&gt;Can you try calling the "load()" method on the feature first, and after it finishes loading see if the addAttachment() call works.&lt;/P&gt;&lt;P&gt;We expect calling asynchronous methods like addAttachment() would internally first load the feature, but maybe it was missed in this particular case&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2018 18:56:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172521#M1614</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2018-08-15T18:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to upload attachments</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172522#M1615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion, Divesh. We have given it a try but was still not able to luck out. addAttachment() still does not work after we have loaded the feature using the load() method.&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 13:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172522#M1615</guid>
      <dc:creator>deleted-user-jQabWmRafJc9</dc:creator>
      <dc:date>2018-08-16T13:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to upload attachments</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172523#M1616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm, i can't think of any. We'll have to debug into your data to see what could be going wrong?&lt;/P&gt;&lt;P&gt;Can you share your .geodatabase file with us and provide some code that shows how you're trying to add an attachment to it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2018 21:18:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/not-able-to-upload-attachments/m-p/172523#M1616</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2018-08-16T21:18:49Z</dc:date>
    </item>
  </channel>
</rss>

