<?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 Error Syncing Offline Attachment to arcGIS 10.2 in iOS in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-syncing-offline-attachment-to-arcgis-10-2-in/m-p/744536#M6706</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am working on a product which requires attachment to be synced to the offline ArcGIS server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for this i am using the &amp;lt;AGSFeatureLayerEditingDelegate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Constructing the AgsFeature Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;agsFeature = [[AGSFeatureLayer alloc] initWithURL:[NSURL URLWithString:url] mode:AGSFeatureLayerModeOnDemand credential:[[DataManager sharedManager] getArcGISCredentials]];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Assigning the delegate to self&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;agsFeature.editingDelegate = self;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Performing the addAttachment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSOperation *op = [agsFeature addAttachment:attachment.form.uId data:attachment.imageData filename:attachment.name];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the problem here is that the NSopertion *op is returning 'nil'. and hence the callback to delegate is not happenening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am just stuck on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help suggestion would be of great help..! Thanks.!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 07:50:43 GMT</pubDate>
    <dc:creator>PranovKumar</dc:creator>
    <dc:date>2014-06-26T07:50:43Z</dc:date>
    <item>
      <title>Error Syncing Offline Attachment to arcGIS 10.2 in iOS</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-syncing-offline-attachment-to-arcgis-10-2-in/m-p/744536#M6706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am working on a product which requires attachment to be synced to the offline ArcGIS server.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for this i am using the &amp;lt;AGSFeatureLayerEditingDelegate&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Constructing the AgsFeature Object&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;agsFeature = [[AGSFeatureLayer alloc] initWithURL:[NSURL URLWithString:url] mode:AGSFeatureLayerModeOnDemand credential:[[DataManager sharedManager] getArcGISCredentials]];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Assigning the delegate to self&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;agsFeature.editingDelegate = self;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Performing the addAttachment&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSOperation *op = [agsFeature addAttachment:attachment.form.uId data:attachment.imageData filename:attachment.name];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the problem here is that the NSopertion *op is returning 'nil'. and hence the callback to delegate is not happenening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am just stuck on it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help suggestion would be of great help..! Thanks.!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 07:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-syncing-offline-attachment-to-arcgis-10-2-in/m-p/744536#M6706</guid>
      <dc:creator>PranovKumar</dc:creator>
      <dc:date>2014-06-26T07:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error Syncing Offline Attachment to arcGIS 10.2 in iOS</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-syncing-offline-attachment-to-arcgis-10-2-in/m-p/744537#M6707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Make sure you feature layer (agsFeature) is assigned to a strong property on the VC, otherwise it may get deallocated before the operation completes and the delegate won't be notified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a doc that describes how you can simplify the code for performing attachment operations on an AGSFeatureLayer using the AGSAttachmentManager class - &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://developers.arcgis.com/ios/guide/working-with-the-attachment-manager.htm" rel="nofollow" target="_blank"&gt;https://developers.arcgis.com/ios/guide/working-with-the-attachment-manager.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 16:47:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-syncing-offline-attachment-to-arcgis-10-2-in/m-p/744537#M6707</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2014-06-27T16:47:23Z</dc:date>
    </item>
  </channel>
</rss>

